Include:Upgrading to latest release
When Alpine Linux is installed to hard drive, upgrading to a newer stable version is straightforward.
To begin, you need to update your /etc/apk/repositories file. Here are some shortcuts for doing so:
- Launch /etc/apk/repositories. Change the version number by hand. Enter to edit
- Or, edit the file in place. This is how you'd change v2.5 to v2.6:
Or you could do this manually: Edit the /etc/apk/repositories file using an editor ( for instance) and if necessary, add references to the Alpine package repositories. In the example below, the reference to the Alpine CD is maintained, so that if the requested package is available on the local media, it will be obtained from there instead of being downloaded from the remote repository:
Another example: upgrading from version 3.3 to 3.4 simply change:
Thus, the file will now look like this:
Only one repository is shown above; however, you may also replace
http://dl-3.alpinelinux.org/alpine/ with any of the mirrors from:
After updating the repositories file, obtain the latest index of available packages:
If you're upgrading from a version of Alpine before 2.3.0_rc1, ensure you have the latest available version of the Alpine Linux Package Manager first before upgrading anything else:
Next, upgrade all your packages:
--available switch is used to force all packages to be upgraded, even if they have the same version numbers. Sometimes changes in uClibc require doing this.