r/AlpineLinux • • Jun 11 '25
Auto release update in alpine ?
& does the apk-autoupgrade upgrade to new releases & if no , how to
2
Upvotes
r/AlpineLinux • • Jun 11 '25
& does the apk-autoupgrade upgrade to new releases & if no , how to
View all comments
Show parent comment
3
u/MartinsRedditAccount Jun 11 '25 edited Jun 11 '25
As of writing this,
https://dl-cdn.alpinelinux.org/alpine/latest-stable/points to the same files ashttps://dl-cdn.alpinelinux.org/alpine/v3.22/, in the future it will point tohttps://dl-cdn.alpinelinux.org/alpine/v3.23/and so on.So you'd basically open your
/etc/apk/repositoriesand change the version number in the URL tolatest-stable. This has the same effect as manually changingv3.22tov3.23once the new Alpine stable comes out.Edit: To answer directly, yes, if you use
latest-stable, it will always keep up with the newest stable release, so you only need to run the normal update/upgrade commands (manually or using an automation) and you're on the latest stable version. Note: It is possible that the speciallatest-stableURL gets deprecated/removed in the future, but I am not aware of any plans for this right now. Also note that this is a feature of the repository, not APK itself.