AlpineLinux跨版本升级

AlpineLinux跨版本升级

jojo100 9 2024-05-27

How to upgrade Alpine Linux

When Alpine Linux is installed to hard drive or cloud server, upgrading to a newer stable version is easy:

  1. Apply pending updates to existing installation by running:# apk update # apk upgrade

  2. Edit the /etc/apk/repositories file, run:# vi /etc/apk/repositories

  3. Change the version number by hand. For example, Alpine 3.19 to 3.20.

  4. Save and close the file

  5. Fetch latest index by running the# apk update

  6. Upgrade all your Alpine Linux packages:# apk upgrade --available && sync

  7. Reboot the system, run:# reboot