Upgrading to latest release: Difference between revisions

From Alpine Linux
No edit summary
m (fixed the redirect link)
Tag: Redirect target changed
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
An upgrade of a running Alpine Linux from a previous version to the latest stable version can be done in a few simple steps.
#REDIRECT [[Upgrading Alpine Linux to a new release branch]]
 
Update the ''/etc/apk/repositories'' file
:* Launch {{Cmd|setup-apkrepos}}
:* Press 'e' to edit your ''/etc/apk/repositories'' file
:* Change the version number to match the latest version by hand
: or
:* Add the latest release repository to ''/etc/apk/repositories'': {{Cmd|echo http://dl-3.alpinelinux.org/alpine/<var>v2.4</var>/main >> /etc/apk/repositories}}
: or
:*just edit the file in-place (replace <var>v2.4</var> with your release): {{Cmd|sed -i -e 's/<var>v2.3</var>/<var>v2.4</var>/g' /etc/apk/repositories}}
 
Upgrade all packages in one shot: {{Cmd|apk upgrade -a -U}}
 
[[Category:Package Manager]]
[[Category:Installation]]

Latest revision as of 03:01, 12 June 2025