Packages and backups

The snap command

Manages snap packages: applications bundled with their dependencies that update themselves.

Syntax

snap list | snap find texto | snap install paquete | snap remove paqueteTry it in the terminal →

Most useful options

listLists the installed snaps, with their version, revision, channel and publisher.
find <texto>Searches the store for snaps by name or description, without installing anything.
install <paquete>Downloads and installs a snap from the store.
remove <paquete>Removes an installed snap.
refresh [paquete]Updates the named snaps or, with no names, all of them.
info <paquete>Shows the details of a snap, such as its description and channels.

Copy-ready examples

$ snap listsnaps installed on this machine, with their version and channel.
$ snap find editorstore snaps whose name or description mentions the word editor.
$ sudo snap install helloinstalls the example snap hello. It changes the system, so try it only if you want that package.
$ sudo snap remove helloremoves the hello snap. Warning: it stops being available on the machine until you install it again.

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • Snaps usually take more space than an apt package, because they carry their dependencies inside.
  • A snap updates itself. If a specific version matters to you, check what an update does before it happens.
  • Names are the store's names: search first with snap find so you do not install something similar by mistake.

Related commands

FAQ

Why does a snap take so much space?

Because it includes its own libraries and dependencies instead of using the system ones. That makes it portable, at the cost of disk space.

How do I search for a snap without installing it?

With snap find text. It shows the name, version and publisher of each result without touching the machine.

Which version of a snap do I have?

snap list shows the version and revision of each installed snap on its row.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course