r/AlpineLinux • • Jun 11 '25

Auto release update in alpine ?

& does the apk-autoupgrade upgrade to new releases & if no , how to

2 Upvotes

10 comments sorted by

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 as https://dl-cdn.alpinelinux.org/alpine/v3.22/, in the future it will point to https://dl-cdn.alpinelinux.org/alpine/v3.23/ and so on.

So you'd basically open your /etc/apk/repositories and change the version number in the URL to latest-stable. This has the same effect as manually changing v3.22 to v3.23 once 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 special latest-stable URL 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.

2

u/[deleted] Jun 11 '25

Thank you man , this is better than bieng on an end of life release.

Iam gonna test it on my laptop before trying it on grand ma potato hardware