$linuxjunkies
>

snap(1)

Install, manage, and control snap packages on Linux systems.

UbuntuDebianFedoraArch

Synopsis

snap [OPTION] COMMAND [ARGS]...

Description

Snap is a package management system for Linux that installs self-contained applications called snaps. Snaps are isolated, dependency-free packages that work across different Linux distributions without modification.

The snap command allows you to install, remove, update, and configure snap packages, as well as manage their permissions and services. Snaps include everything needed to run the application, making them portable and secure.

Common options

FlagWhat it does
installInstall a snap package (e.g., snap install package-name)
removeRemove an installed snap package
listList installed snaps with version and size information
refreshUpdate a snap to the latest version, or all snaps if no name given
--classicInstall snap with classic confinement (unrestricted permissions)
--edgeInstall from the unstable edge channel instead of stable
infoDisplay detailed information about a snap package
searchSearch for available snap packages by name or description
servicesList services provided by installed snaps
connectionsList plug and slot connections between snaps
revertRevert a snap to its previous installed version
--dangerousInstall unsigned snap (use with caution)

Examples

Install the VLC media player snap from the stable channel

snap install vlc

Display all installed snaps with their versions and installed sizes

snap list

Update the Firefox snap to the latest available version

snap refresh firefox

Search the Snap Store for packages matching 'text-editor'

snap search text-editor

Install VS Code snap with classic confinement for full system access

snap install --classic code

Show detailed information about the Discord snap including channels and ratings

snap info discord

Uninstall the Telegram Desktop snap package

snap remove telegram-desktop

Roll back Spotify snap to the previously installed version

snap revert spotify

Related commands