AlpineLinux跨版本升级
How to upgrade Alpine Linux
When Alpine Linux is installed to hard drive or cloud server, upgrading to a newer stable version is easy:
- Apply pending updates to existing installation by running:
# apk update
# apk upgrade - Edit the /etc/apk/repositories file, run:
# vi /etc/apk/repositories - Change the version number by hand. For example, Alpine 3.19 to 3.20.
- Save and close the file
- Fetch latest index by running the
# apk update - Upgrade all your Alpine Linux packages:
# apk upgrade --available && sync - Reboot the system, run:
# reboot