Upgrading to latest release: Difference between revisions

From Alpine Linux
(Created page with "An upgrade of a running Alpine Linux from a previous version to the latest stable version can be done in a few simple steps. Update the ''/etc/apk/repositories'' file :* Launch...")
 
No edit summary
Line 8: Line 8:
:* 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}}
:* 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  
: or  
:*just edit the file in-place (replace <var>v2.4</var> with your release): {{Cmd|sed -i -e 's/<var>v2.4</var>/edge/g' /etc/apk/repositories}}
:*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}}
Upgrade all packages in one shot: {{Cmd|apk upgrade -a -U}}

Revision as of 20:14, 4 May 2012

An upgrade of a running Alpine Linux from a previous version to the latest stable version can be done in a few simple steps.

Update the /etc/apk/repositories file

  • Launch

    setup-apkrepos

  • Press 'e' to edit your /etc/apk/repositories file
  • Change the version number to match the latest version by hand
or
or
  • just edit the file in-place (replace v2.4 with your release):

    sed -i -e 's/v2.3/v2.4/g' /etc/apk/repositories

Upgrade all packages in one shot:

apk upgrade -a -U