brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: snap refresh --hold pauses one snap without turning updates off

Snap
~/tips/tip-ubuntu-snap-refresh-hold

sudo snap refresh --hold=72h firefox

Pauses automatic updates of one snap for a set time, or forever, and can be undone.

Snaps update themselves in the background. That is fine until you are in the middle of something and the browser restarts to update.

You can hold one snap for a while without disabling the whole system:

sudo snap refresh --hold=72h firefox
sudo snap refresh --unhold firefox

The docs say durations go in seconds, minutes or hours, or a mix, so 1h30m is fine. Leave the duration out and the hold defaults to forever. Leave the snap name out and the hold covers every snap.

I like the timed version. It expires on its own, so I cannot forget it for a year. A forever hold is only for something that really must not move, and then I want a note somewhere.

Most of the time I leave automatic updates alone and hold only on days when a restart would be a bad idea.

Caveat: the hold postpones automatic refreshes. A manual snap refresh of that snap can still update it, so do not run it out of habit. Holds also need a reasonably recent snapd, which is not a problem on Ubuntu 24.04.

Further reading: Snapcraft: Managing updates, On this site: snap revert puts a snap back on its previous version

More Snap tips snap refresh --list sudo snap save lxd snap services sudo snap stop --disable lxd.daemon sudo snap alias vlc my-vlc All Snap tips (14) All topics

Link