Skip to content

Snap Package Management

Install Snap Service

sudo apt install snapd

Enable & Start the Service

sudo systemctl enable snapd
sudo systemctl start snapd
sudo reboot

Search Snap Packages

snap find <keyword>

List Installed Snap Packages

snap list 

Install Snap Package

sudo snap install <package>

Note:

  • It might install "runtime snaps" (if needed):
    • Base snaps - minimal linux filesystem the package needs (libraries, certificates, etc...)
    • Content snaps (libraries - audio/video stacks, GNOME libraries, etc...)
  • Some snaps do not run inside sandbox (created by snap) but in classic confinement. Such packages can be installed as follows:
sudo snap install obsidian --classic

Update Snap Package

sudo snap refresh <package>

Remove Snap Package

sudo snap remove <package>

Note:

  • Does not remove "runtime snaps" that were installed with the package (see Package connections section)
  • It creates a snapshot with user data (see List Package Snapshots section)

Package Connections

snap connections <package>

Note:

  • You can check which package is dependant on given runtime snap package.

List Package Snapshots

snap saved

Note:

  • You can delete specific snapshot by specifying its ID:
sudo snap forget <ID>

Package Binary Location

which <package>

Note:

  • /snap/bin/<package> if installed with snap
  • /usr/bin/<package> if installed with apt