Sandbox: Difference between revisions
Dubiousjim (talk | contribs) (test #if) |
No edit summary |
||
Line 2: | Line 2: | ||
{{#ifeq:one|one|yes|no}} | {{#ifeq:one|one|yes|no}} | ||
{{Warning|Alpine Linux 3.x is using a different libc implementation compared to previous versions. Musl libc is not ABI compatible with uClibc. Additional steps are required for an upgrade.}} | |||
== Installing statically linked tools == | |||
Statically linked versions of busybox and apk are needed, otherwise they will stop working after libc upgrade. | |||
{{Cmd|apk add busybox-static apk-tools-static}} | |||
== Changing repositories to v3.x == | |||
To begin, you need to update your {{Path|/etc/apk/repositories}} file. Here are some shortcuts for doing so: | |||
:* Launch {{Cmd|setup-apkrepos}} Enter {{Key|e}} to edit {{Path|/etc/apk/repositories}}. Change the version number by hand. | |||
:* Or, edit the file in place. This is how you'd change <var>v2.7</var> to <var>v3.0</var>: {{Cmd|sed -i -e 's/<var>v2\.7</var>/<var>v3.0</var>/g' /etc/apk/repositories}} | |||
== Upgrading system == | |||
Use statically linked version of apk to update content of repository: | |||
{{Cmd|apk.static update}} | |||
Simulating upgrade is recommended in order to detect issues beforehand: | |||
{{Cmd|apk.static upgrade --no-selfupgrade --simulate}} | |||
With no problems encountered or after resolving them, start proper upgrade: | |||
{{Cmd|apk.static upgrade --no-selfupgrade}} |
Revision as of 11:59, 7 August 2014
This is a test area.
yes
Warning: Alpine Linux 3.x is using a different libc implementation compared to previous versions. Musl libc is not ABI compatible with uClibc. Additional steps are required for an upgrade.
Installing statically linked tools
Statically linked versions of busybox and apk are needed, otherwise they will stop working after libc upgrade.
apk add busybox-static apk-tools-static
Changing repositories to v3.x
To begin, you need to update your /etc/apk/repositories file. Here are some shortcuts for doing so:
- Launch
setup-apkrepos
Enter e to edit /etc/apk/repositories. Change the version number by hand. - Or, edit the file in place. This is how you'd change v2.7 to v3.0:
sed -i -e 's/v2\.7/v3.0/g' /etc/apk/repositories
- Launch
Upgrading system
Use statically linked version of apk to update content of repository:
apk.static update
Simulating upgrade is recommended in order to detect issues beforehand:
apk.static upgrade --no-selfupgrade --simulate
With no problems encountered or after resolving them, start proper upgrade:
apk.static upgrade --no-selfupgrade