snap

snap Cheatsheet #

snap is a package management system developed by Canonical for installing, updating, and managing software packages on Linux distributions. Snap packages, or “snaps”, are self-contained and work across different Linux distributions.

Basic Commands #

Command/OptionExampleDescription
snap installsnap install vlcInstall a snap package
snap removesnap remove vlcRemove a snap package
snap refreshsnap refreshUpdate installed snap packages
snap listsnap listList installed snap packages
snap infosnap info vlcDisplay information about a snap package
snap searchsnap search vlcSearch for snaps in the Snap Store
snap runsnap run vlcRun a snap application
snap findsnap find vlcFind snaps available for installation
snap logssnap logs vlcView logs for a snap application

Application Management #

Command/OptionExampleDescription
snap setsnap set vlc volume=50Set configuration options for a snap
snap unsetsnap unset vlc volumeRemove configuration options for a snap
snap servicessnap servicesList all services provided by snap packages
snap connectsnap connect vlc:cameraConnect a snap to a system interface
snap disconnectsnap disconnect vlc:cameraDisconnect a snap from a system interface

Repository Management #

Command/OptionExampleDescription
snap remote-addsnap remote-add myremote http://myremote.comAdd a new remote repository for snaps
snap remote-removesnap remote-remove myremoteRemove a remote repository for snaps
snap remote-listsnap remote-listList all remote repositories for snaps

Advanced Commands #

Command/OptionExampleDescription
snap downloadsnap download vlcDownload a snap package to a local file
snap aliassnap alias vlc.video-player vlcCreate an alias for a snap command
snap versionsnap versionShow the version of the snap tool

Environment Management #

Command/OptionExampleDescription
snap install --classicsnap install code --classicInstall a snap package with classic confinement
snap refresh --channelsnap refresh vlc --channel=betaRefresh a snap package to a specific channel

This cheatsheet covers essential snap commands for managing and configuring snap packages on Linux systems.

snap

Explore our comprehensive cheatsheets to enhance your knowledge and efficiency. Each cheatsheet provides detailed command options, examples, and descriptions to help you master various tools and technologies.