snap — Ubuntu packages
cheat sheet · Ubuntu 24.04 · snapd https://lab.dimsanych.ru/en/wiki/snap/Cheat sheet
-
snap listinstalled packages -
sudo snap install nginxinstall a package -
sudo snap refreshupdate all packages -
sudo snap refresh --hold nginxpause auto-updates for a package -
sudo snap revert nginxroll back to the previous version -
snap servicesservices of all snap packages -
sudo snap remove --purge nginxremove along with its data
Options
A package is installed inside a sandbox (confinement): access to files
outside $HOME and to devices must be granted explicitly through
interfaces (plug/slot), otherwise snap can't see them even if the
process runs as root. --classic removes the sandbox entirely — use it
only for packages that ask for it themselves (IDEs, build tools), never by
default.