Upgrading Alpine

From Alpine Linux

Jump to: navigation, search
Tango-dialog-warning.png
Warning: Make sure that you have a backup of your important data before continuing to update your system..

Upgrading an Alpine Linux Hard-disk installation

When Alpine Linux is installed to hard drive, upgrading the installation is simple.

Upgrading to latest release

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

Upgrading to Edge

An upgrade of Alpine Linux from a stable version to the rolling development version, edge can be done in a few simple steps.

  1. Add the edge repository to /etc/apk/repositories:

    echo http://dl-3.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories

    or just edit the file in-place (replace v2.4 with your release):

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

  2. Upgrade all packages in one shot:

    apk upgrade -a -U

  3. Check your current release:

    cat /etc/alpine-release

    You will see the build date attached to the release.
Personal tools
Namespaces
Variants
Actions
Welcome
Services
Wiki
Toolbox