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 can list the updates that are waiting before it installs them

Snap
~/tips/tip-snap-refresh-list

snap refresh --list

Preview pending snap updates without installing any of them.

Snaps update on their own schedule, so it is easy to be surprised by a new version. I like to look before that happens.

snap refresh --list

It prints the snaps that the next refresh would update, with the version and revision on offer, and it installs nothing. When everything is current you get a short message saying so.

If a browser or database snap shows up in the list, you can decide what to do with it. Update it now by name:

sudo snap refresh firefox

Or leave the schedule to handle it later. Knowing in advance also helps when you plan maintenance: run the list, read the release notes of anything important, and pick a quiet moment.

This fits nicely in a small check script next to apt list --upgradable, so one run tells you what both package systems have waiting.

Keep in mind that the answer is a snapshot of this moment. The store may publish another revision five minutes later, and the automatic refresh takes whatever is newest when it runs. The list also does not tell you what changed between versions, so you have to find that in the project’s own release notes.

Further reading: Snapcraft: Managing updates

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

Link