Manually editing a existing apkovl: Difference between revisions

From Alpine Linux
(Category:HOWTO)
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{TOC right}}
You might end up in a situation when you find it necessary to edit a apkovl (without having to boot a box using the apkovl itself).
You might end up in a situation when you find it necessary to edit a apkovl (without having to boot a box using the apkovl itself).


== Unpack the apkovl ==
== Unpack the apkovl ==
Unpack the apkovl into a temp dir.
Unpack the apkovl into a temp dir.
mkdir /tmp/testbox
{{Cmd|mkdir /tmp/testbox
  tar -xvzf testbox.apkovl.tar.gz -C /tmp/testbox/
  tar -xvzf testbox.apkovl.tar.gz -C /tmp/testbox/}}


== Make your modifications ==
== Make your modifications ==
Line 15: Line 17:
== Pack the apkovl ==
== Pack the apkovl ==
When your modifications are done you should pack your apkovl
When your modifications are done you should pack your apkovl
cd /tmp/testbox
{{Cmd|cd /tmp/testbox
  tar -czf /tmp/testbox.apkovl.tar.gz *
  tar -czf /tmp/testbox.apkovl.tar.gz *}}


== Replace the original apkovl ==
== Replace the original apkovl ==
Line 22: Line 24:
Replace your original apkovl (on your media) with '/tmp/testbox.apkovl.tar.gz' and boot your Alpine.
Replace your original apkovl (on your media) with '/tmp/testbox.apkovl.tar.gz' and boot your Alpine.


[[Category:HOWTO]]
[[Category:LBU]]

Revision as of 08:12, 31 October 2019

You might end up in a situation when you find it necessary to edit a apkovl (without having to boot a box using the apkovl itself).

Unpack the apkovl

Unpack the apkovl into a temp dir.

mkdir /tmp/testbox tar -xvzf testbox.apkovl.tar.gz -C /tmp/testbox/

Make your modifications

Now do your modifications in '/tmp/testbox/'

  • Edit files/folders
  • Add files/folders
  • Remove files/folders
  • etc.

Pack the apkovl

When your modifications are done you should pack your apkovl

cd /tmp/testbox tar -czf /tmp/testbox.apkovl.tar.gz *

Replace the original apkovl

Now you have a new/modified apkovl.
Replace your original apkovl (on your media) with '/tmp/testbox.apkovl.tar.gz' and boot your Alpine.