tips
14 tips Snap
One command, setting or habit at a time about Snap: what it does, the line to copy and a caveat or two.
Snap 8
-
Preview pending snap updates without installing any of them.
snap refresh --list -
Keep a restorable copy of an app's data and settings.
sudo snap save lxd -
Restart a misbehaving snap service by name, after seeing what it runs.
snap services -
Create your own command name for an app installed as a snap.
sudo snap alias vlc my-vlc -
Rolls a snap back to the previously installed revision after a bad update.
sudo snap revert firefox -
Pauses automatic updates of one snap for a set time, or forever, and can be undone.
sudo snap refresh --hold=72h firefox -
Shows the history of snap operations and, with an ID, the steps of one operation.
snap changes -
Shows which channels a snap offers and which one you follow.
snap info lxd
Maintenance 3
-
Skip the automatic snapshot when you are sure the data can go.
snap saved -
Shows the snap update schedule and moves it to a quiet time window.
snap refresh --time -
Finds and removes inactive snap revisions that waste disk space.
snap list --all | awk '/disabled/{print $1, $3}' | while read name rev; do sudo snap remove "$name" --revision="$rev"; done
Access and security 2
-
Turn off a background service while the app itself stays installed.
sudo snap stop --disable lxd.daemon -
Lists the sandbox permissions of a snap and whether each is connected.
snap connections firefox
Logs and diagnostics 1
-
Shows and follows the service logs of an installed snap.
sudo snap logs -f docker
Nothing in this filter yet.