About disabling snap automatic updates

Hi,

I had to disable automatic updates of snap packages since at least one of them is running all the time while the system is up and I wouldn’t like to see it getting updated while it’s active.

I disabled it, or so I thought, by using this command:

snap refresh --hold
Auto-refresh of all snaps held indefinitely.

The command seemed to do its job since I wasn’t getting any log entries concerning snap updates from that point on. At some point though, I ran snap refresh in order to do a manual update. There were no new updates so I kept working. Some time later though, I saw this entry in the journal:

May 07 20:39:24 TurboX snapd[1250]: storehelpers.go:916: cannot refresh: snap has no updates available: "bare", "core18", "core20", "gnome-3-28-1804", "gtk-common-themes", "snapd"

It was obvious that the automatic updates were not “held” anymore.

Does snap refresh cancel the snap refresh --hold command given previously? Do I have to re-issue the snap refresh --hold command every time I do manual updates so that the automatic updates are “held” again?

Thank you.

Why use an unsupported thing like snap ?

Because the vpn I’m using offers only a snap app for Linux. I don’t like using snap either. I had to install it. :disappointed:

Unless you have the strong reason to believe this is openSUSE-specific issue, snapcraft forum looks like a better place to ask. I doubt there are many users of snapd here.