Odd, I was supposed to reboot after patching on Saturday morning, but I haven't gotten around to it yet.
Code:
$ uptime
17:06:51 up 26 days, 8:13,
I have a few snaps, but I control when they are allowed to update - only on Saturdays, which usually means a little after midnight local time. If I could, I'd prevent all automatic snap updates from happening. I prefer for updates not to happen when they are inconvenient to me or users. That means never during a weekday. I've disabled all alerts/nags.
You don't need to reboot until you are ready. If you don't like the nags, disable them. Get into the habit of patching only 1 day a week, when it is most convenient for you and your workflows. Nothing prevents that.
Code:
# ##############################################
# Prevent 4x a day snap update checks.
sudo snap set system refresh.timer=sat
Much more snap update and retention is here:
Https://snapcraft.io/docs/keeping-snaps-up-to-date
Keep only 2 copies of a snap, not 3 or more
Code:
# Keep only the current and last version of a snap # snapd v2.34
sudo snap set system refresh.retain=2
Https://www.linuxuprising.com/2019/04/how-to-remove-old-snap-versions-to-free.html
If you want to prevent a specific snap from updating,
Code:
$ snap refresh --hold firefox
I've tried this with some big, complex, server snap packages and it doesn't seem to work, but perhaps that's a problem on my side. IDK.
To old all snaps from updating ...
Code:
$ snap refresh --hold
I need to see if this actually works.
Code:
$ snap refresh --unhold
to allow updates. It could be the answer to my snap i-want-to-update-all-the-time problem.
Those notes might be helpful to you as well.
Bookmarks