Package Management

snap

Install and manage snap packages — self-contained, auto-updating applications.

Synopsis

syntax
snap [COMMAND] [OPTION]... [SNAP]...

Examples

Install VS Code
sudo snap install code --classic
List installed snaps
snap list
Update all snaps
sudo snap refresh
Search snap store for music apps
snap find music

Common options

FlagDescription
installInstall a snap
removeRemove a snap
listList installed snaps
refreshUpdate snaps
findSearch snap store

About snap

The `snap` command install and manage snap packages — self-contained, auto-updating applications. Package management commands install, update, and remove software on Linux distributions.

Each distribution family has its own package manager — apt for Debian/Ubuntu, yum/dnf for RHEL/Fedora, pacman for Arch, and so on. Understanding your distro's package manager is one of the first steps in Linux administration.

The command accepts 5 commonly used flags shown above, though the full set of options is available in the man page (`man snap`). The 4 examples on this page cover typical real-world usage patterns that you can copy and adapt for your own workflows.

Related commands

More Package Management Commands

Other commands in the Package Management category

Related tools