Skip to content

Instantly share code, notes, and snippets.

@fredjoseph
Last active June 22, 2022 07:26
Show Gist options
  • Select an option

  • Save fredjoseph/67f2d0ca4e16a4b9eb587d0a732dd2f2 to your computer and use it in GitHub Desktop.

Select an option

Save fredjoseph/67f2d0ca4e16a4b9eb587d0a732dd2f2 to your computer and use it in GitHub Desktop.
Snap App - CheatSheet
  • Search Snap app snap find vlc

  • Show App info snap info vlc

  • Install App sudo snap install vlc

  • List all apps snap list

  • Refresh a snap app sudo snap refresh vlc

  • List pending updates sudo snap refresh --list

  • List all app revisions snap list --all vlc

  • Revert to previous snap version sudo snap revert vlc

This operation will revert both the snap revision and the data associated with the software. If the previously used revision of the snap is from a different channel, that snap will be installed but the channel being tracked won’t change. A snap won’t automatically update to a version previously reverted from, and the output from snap refresh will continue to state All snaps up to date. A reverted snap will be automatically updated when a new and different revision is made available by the publisher. However, explicitly adding the snap name to snap refresh will update the snap, regardless of whether the latest revision was previously reverted from or not

  • Enable/Disable a snap app sudo snap disable vlc and sudo snap enable vlc

If a snaps is temporarily undesired, it can be disabled and later enabled again. This avoids having to remove and reinstall them in the system

  • Remove a snap app sudo snap remove vlc

Uninstall Snap

This goes over how to Disable Snaps and making sure it doesn’t automatically reinstall.

  • First, list and uninstall all snap applications
  • Purge snapd and block reinstall
sudo apt purge snapd
sudo apt-mark hold snapd
  • Verify uninstall
apt list | grep snap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment