Install Snap in Ubuntu 22.04

In this article, we would discuss how to install Snap in Ubuntu 22.04 release.

Snap is a software packaging utility developed by Canonical Group. It is different from apt (Advanced Package Tool) we generally use. Snap basically take cares of all the dependencies itself. A single build of snap can be run on different Linux distributions. Snap makes apps bundled in a way, which is self contained, cross platform and free of any dependency.

We will discuss its installation steps and then see how we can utilise it to install applications.

Note: Following operations may require you to have superuser privileges. In case you don’t have one then, we advise you to contact your System Administrator for assistance.

Install Snap in Ubuntu 22.04

To check whether you already have snap installed –

snap version

It would return with the version number installed. If its not there, then follow the installation steps below.

If, for some reason, snap isn’t installed on your system. Then, we need to update standard Ubuntu repository first. This we do to make sure we get to have the latest version of the package available. Hence, open a terminal and issue the following –

sudo apt update

To install snap –

sudo apt install snapd

It will install all related dependencies. Lastly, to verify the installation –

snap version

It would return with the version number installed this time around.

snap 2.54.3+git19.g868fc21+22.04
snapd 2.54.3+git19.g868fc21+22.04
series 16
ubuntu 22.04
kernel 5.13.0-19-generic

In conclusion, we have discussed how to install Snap in Ubuntu 22.04 release.

Additional Info –

To install a package through snap, use –

sudo snap install <package_name>

For instance, package – hello-world

sudo snap install hello-world

Now, issue the following in terminal –

hello-world

It would return with the following –

Hello World!

Secondly, to remove a package installed through snap –

sudo snap remove <package_name>

For instance, to remove hello-world –

sudo snap remove hello-world

Similar Posts