Snap Package Manager on Ubuntu

Snap is a package management system and software deployment. Generally, these packages are termed as the snaps. The tool for using snaps is termed as the snapd. Snaps are app packages for cloud, IoT and desktop that are easy to install, cross-platform. Snaps works across all the Linux distributions so it activates the utilities and latest apps for the cloud, desktop, and servers, etc.
snapd is a daemon or process which manages the full environment of snap. The snap tool of this process is used for interacting with snaps. It keeps a track of all the installed apps.

Steps to Install snap on Ubuntu

Step 1: Use the below command to update the package

$ sudo apt update 

updating-the-pakcages-on-ubuntu



Step 2: Install snapd using the below command

$ sudo apt install snapd

installing snapd on ubuntu

Checking if snap is Installed or not?

Step 1: Run the below command to test whether snap is installed or not. This command will give some output which is shown in the below image.

$ sudo snap install hello-world

checking-for-snap-installation

Step 2: Execute the below command and check the output

$ hello-world

hello-world-snap-command

Snap Commands Options

1. Search application

$ snap find app_name

Search-Application-Snap-Command

2. Information about applications

$ snap info app_name

Information-about-applications



3. List all Installed Applications

$ snap list

List-of-Installed-applications-snap-package-manager

4. Updating Applications

$ sudo snap refresh app_name

5. Revert updated applications

$ sudo snap revert app_name

Revert-Updated-Applications-Snap-Package-Manager
6. Disabling applications

$ sudo snap disable app_name

Disabling-Applications-snap-package-manager

7. Enable Applications

$ sudo snap enable app_name

enabling-applications-snap-package-manager

8. Removing application

$ sudo snap remove app_name

Removing-Applications-Snap-Package-Manager

Note: Replace app_name with specific application’s name like postman, vlc, spotify, eclipse –classic etc., in all above commands.




My Personal Notes arrow_drop_up


If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :

3


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.