Three steps in sys mode — edit the repositories file, refresh the index, upgrade everything; in-branch security updates are separate. Back up and read the release notes first.
Point at the new branch
| |
e opens it in vi; or in one line, moving 3.22 to 3.23:
| |
| |
latest-stable avoids editing the file each release:
| |
⚠️
latest-stablealso means an unexpected release upgrade can begin on its own — the trade for never editing the file again.
Upgrade
| |
Upgrading apk-tools first costs nothing and is sometimes required; --available upgrades every package even at matching versions, as musl changes occasionally require.
-U / --update-cache equals apk update just before it, but refreshes only a stale index; apk upgrade -U is shorthand.
Restart services after upgrade; a kernel upgrade needs a reboot:
| |
Moving to edge
Same procedure, every entry on edge:
| |
Downgrading from edge is unsupported: the documented order is apk fix, apk update, apk upgrade, apk upgrade -a, apk upgrade -al; a package may then need removing and reinstalling by hand.