October 1, 2020
How to use Linux Snap Packages


How to use Linux Snap Packages

Snap (snappy) is a software program deployment and bundle administration system for Ubuntu and different Linux distributions. It was launched by Canonical since model Ubuntu 16.04 LTS.

Snap software program are self-contained packages with all dependent libraries included that makes set up a lot easier. As packages are containerized, functions are remoted and any modifications will not have an effect on different methods.

The packages are known as ‘snaps’, you may uncover, set up, and handle bundle from snap retailer.

Not like apt and yum bundle, snap packages are up to date mechanically.  When utilizing snap, you all the time set up a brand new model of this system.

This tutorial will present you easy methods to use snap packages in Ubuntu Linux.

Set up snap on Linux

Snap by default put in within the newer model of Ubuntu and different Linux distributions. If it does not include the distribution, then wants to put in manually.

To put in snap on Debian and Ubuntu, run:

$ sudo apt set up snapd

To put in snap on CentOS and RHEL, run:

$ sudo yum set up snapd

Find out how to use snap packages

Utilizing snap instructions we are able to discover, set up, checklist, and management updates of packages. You can too use snap retailer which is GUI desktop software for looking out, putting in, and managing the snap packages.

How to use Linux Snap Packages

On Ubuntu 20.04 LTS snap-store command from terminal launches ‘Ubuntu Software program’ Middle.

Discover snap packages

To seek for a selected snap bundle, run:

$ snap discover

For instance, discovering the snap bundle of the ‘vlc’ program:

How to use Linux Snap Packages

Furthermore, you may get detailed data for the model of an software by working:

$ snap data

How to use Linux Snap Packages

In lots of instances, you need to checklist all snap packages within the steady channel that may be put in in your Ubuntu machine. Let’s run the next command line for functions discovery:

$ snap discover

How to use Linux Snap Packages

Set up snap packages

When you discovered the specified snap bundle, you may merely set up the corresponding software by utilizing ‘snap set up’ command with sudo privilege:

$ sudo snap set up

For instance, to put in docker, run:

$ sudo snap set up docker

How to use Linux Snap Packages

After the snap packages have been put in in your Ubuntu machine, you may checklist the entire put in recordsdata in ‘/var/lib/snapd/snaps/’. Snaps recordsdata are archive squashfs recordsdata with .snap file extension.

To checklist put in snap recordsdata, run:

$ ls /var/lib/snapd/snaps/

How to use Linux Snap Packages

Record Put in snap packages

To checklist all of the snap packages which have been put in, run:

$ snap checklist

How to use Linux Snap Packages

Uninstall snap packages

When a snap bundle is now not being utilized by the Linux person, it may be eliminated by working the next command:

$ sudo snap take away

For instance, with a purpose to take away the ‘docker’, you may merely sort:

$ sudo snap take away docker

How to use Linux Snap Packages

Controlling Snap Updates

Snap packages are all the time up to date mechanically. By default, the ‘snapd’ checks for updates 4 occasions per day. The replace test is called a ‘refresh’.

You may replace the snap packages manually. For instance, to replace all put in snap functions, run:

$ sudo snap refresh

How to use Linux Snap Packages

If you wish to replace a selected snap bundle, let’s run the ‘snap refresh’ command together with the bundle identify. For instance:

$ sudo snap refresh vlc

In an effort to see the schedule of ‘refresh’, run:

$ snap refresh –time

How to use Linux Snap Packages

You may management the snap updates by specifying 4 ‘refresh’ choices:

refresh.timer – outline when and the way steadily the snap packages are refreshed

refresh.maintain – postpone the snap packages refresh till the outlined time

refresh.metered – pause the snap packages refresh when community connection is metered

refresh.retain – set the utmost variety of a snap bundle refresh revisions


On this tutorial, we realized easy methods to handle snap packages on Ubuntu. Snap is a extremely highly effective software program packaging administration software for any Ubuntu person.

Thanks for studying and please go away your suggestion within the beneath remark part.

snap store,snap remove package,snap list installed packages,snap commands,snap install,linux apps,linux app download,ubuntu snap vs apt

About Author