Disabling automatic refresh for snap from store

It’s worth mentioning that you can use the tracks functionality with MicroK8S, so that you’d only receive patch/security updates for a specified branch, and that functionality is already in snapd and usable right now, based off of the Github issue you’d use

sudo snap switch microk8s --channel 1.23/stable
1 Like

There’s now an official blog post advertising this functionality.

(The functionality itself is still currently only present in the edge channel and hasn’t yet hit stable).

4 Likes

snapd 2.58 released to the stable channel recently (10/01/23) and with it brings the ability to prevent automatic updates, on either a per snap or all snap basis; for as long as the user desires (i.e, potentially forever).

To E.G prevent Firefox updating for a day

snap refresh --hold=24h firefox

to E.G prevent Firefox updating forever (Please update it manually at least).

snap refresh --hold firefox

To prevent all snaps updating automatically ever (With great power…):

snap refresh --hold

If you haven’t got 2.58 yet, please consider updating your distro packages packages (for distros such as Fedora), rebuilding (e.g AUR) or snap install snapd or snap refresh snapd (for Debian derivatives).

If you run snap refresh, any snaps that have been held explicitly will not be included for updates. If you want to update a snap thats been explicitly specified, you must specify its name, e.g snap refresh firefox.

And finally, you can reverse all of these by using snap refresh --unhold, on a per snap or all snaps basis.

13 Likes

Thank y’all developers so much for this :green_heart: