In this Linux beginner’s tutorial, you will learn about the snap packaging system, which is created by Ubuntu to streamline the development and installation process for both developers and users.

You will also learn the basic commands related to snap package management tools and how to use the snap store for managing snap packages.

In the early days of the Linux operating system, we used to compile and install the applications from the source files. Doing so was very tedious and time-consuming. Additionally, the user itself had to manage the dependencies and some related stuff. Basically, it was not something that can be a daily pie in the current era of computer operating systems.

So to simplify this issue, they started to package the source code in a bundle which is known as a package/application file. As the Linux distributions grew many packaging systems such as .deb, .rpm, .eopkg, etc also came into existence and are being used.

Different package management tools

As the diversity took over the Linux the complication also made their way into developers and users way. Now, we have many package systems and package management tools (apt, zypper, yum, dnf, pacman, etc). As developers have to build and manage so many packaging systems and users have to learn different package management tools for different Linux distributions.

Ubuntu identified these problems and developed ‘snap’ to resolve such issues in Linux desktops, IoT and cloud at once.

A single snap application package file can be installed on any Linux distribution so there is a universal installer file. Along with this, you have ‘snap’ a universal package manager to install and manage the applications.

Basics of snap command line

Snap packages can be managed either by using Ubuntu Snap Store or with the snap package manager.

Ubuntu  snap store

Also read: Installing applications in Linux | Complete guide

Here are some of the useful snap commands to install and manage snap applications in Linux.

Command for installing a snap application

sudo snap install package-name

Command to remove snap application

sudo snap remove package-name

List all the installed snap application(s)

snap list

Result of the above command:

Name                             Version                     Rev   Tracking         Publisher     Notes
bombsquad                        1.4.150                     3     latest/stable    popey         -
canonical-livepatch              9.5.5                       95    latest/stable    canonical*    -
gnome-3-34-1804                  0+git.3009fc7               36    
gtk-common-themes                0.1-36-gc75f853             1506  
orchis-themes                    1.0                         1     latest/stable    gantonayde    -
snap-store                       3.36.0-80-g208fd61          467   latest/stable/…  canonical*    -

Search for an application in snap repository:

sudo snap find package-name

Command to update snap application(s)

sudo snap refresh package-name  // For single application
sudo snap refresh                        // To update all at once

For all the commands list execute ‘snap’ in the terminal and it will output a command usage manual:


Result of the above command:

The snap command lets you install, configure, refresh and remove snaps.

Usage: snap  [...]

Commands can be classified as follows:

         Basics: find, info, install, list, remove
        ...more: refresh, revert, switch, disable, enable
        History: changes, tasks, abort, watch
        Daemons: services, start, stop, restart, logs
       Commands: alias, aliases, unalias, prefer
  Configuration: get, set, unset, wait
        Account: login, logout, whoami
    Permissions: connections, interface, connect, disconnect
      Snapshots: saved, save, check-snapshot, restore, forget
          Other: version, warnings, okay, ack, known, model, create-cohort
    Development: run, pack, try, download, prepare-image

For more information about a command, run 'snap help '.
For a short summary of all commands, run 'snap help --all'.

Watch Video guide on YouTube

Additionally, You can also watch a step-by-step video guide on YouTube to get a better understanding of it.


So that was the complete overview of the snap packaging system and how to use it. Let me know what you think about it in the comment section below and don’t forget to subscribe to the LinuxH2O Youtube channel. Till then, keep enjoying Linux.