Snap Package Manager on Ubuntu
Last Updated :
10 Jun, 2024
Snap is a package management system and software deployment. Generally, these packages are termed as snaps. The tool for using snaps is termed as theĀ snap. Snaps are app packages for cloud, IoT and desktop that are easy to install, and cross-platform.
Snaps works across all the Linux distributions so it activates the utilities and latest apps for the cloud, desktop, servers, etc. Snapd is a daemon or process that manages the full environment of snap. The snap tool of this process is used for interacting with snaps. It keeps track of all the installed apps.
What is a Snap in Linux?
A Snap in Linux is a self-contained software package that is designed to work across various Linux distributions. It is developed by Canonical, it includes all the dependencies and libraries required for an application to run, ensuring compatibility and easier management. They are installed, updated, and managed through the Snap Store, providing a secure and straightforward method for software distribution.
Why is Ubuntu using Snap?
The following are some of the reasons for using snap in Ubuntu operating system:
- Cross-Distribution Compatibility: It works seamlessly across various Linux distributions acting as cross-platform software.
- Simplified Dependency Management: It comes with containing all the necessary dependencies to resolve the dependency conflicts.
- Easy Updates and Rollbacks: It facilitates with supporting for automatic updates and rollbacks helping users to always have the latest stable software.
- Enhanced Security: It provides security to the applications with defined permissions, and by isolating them from the core system.
How to install Snap on Ubuntu? A Step-By-Step Guide
The following steps guide in how to install the snap on Ubuntu:
Step 1: Use the below command to update the package
$ sudo apt update

Step 2: Install snapd using the below command
$ sudo apt install snapd

Step 3: 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

Step 4: Execute the below command and check the output
$ hello-world

Snap Command Options
The following are the snap command options with their examples.
1. Search application
$ snap find app_name

2. Information about applications
$ snap info app_name

3. List all Installed Applications
$ snap list

4. Updating Applications
$ sudo snap refresh app_name

5. Revert updated applications
$ sudo snap revert app_name

6. Disabling applications
$ sudo snap disable app_name

7. Enable Applications
$ sudo snap enable app_name

8. Removing application
$ sudo snap remove app_name

Note: Replace app_name with specific application's name like postman, vlc, spotify, eclipse --classic etc., in all above commands.
Difference between Snap and Apt
The following are the differences between snap and apt:
Feature
| Snap
| APT
|
---|
Comptability
| It is cross distribution software that works on various linux distributions
| it is specific to debian based distributions only like Ubuntu
|
---|
Dependency Management
| It is self-contained with all the dependencies including in it
| It will relies on the system wide dependencies.
|
---|
Update Mechanism
| It automatically updates with easy rollback options
| It manually make updates through package manager
|
---|
Security
| The applications are sanboxed with defined permissions
| It follows traditional package management with less isolation.
|
---|
Conclusion
Snap offers a versatile package management system for Linux, ensuring cross-platform compatibility and simplified dependency handling. Developed by Canonical, Snaps are easy to install and manage, making them ideal for various applications. With `snapd` and the `snap` command, users can seamlessly handle installation, updates, and maintenance.
Similar Reads
How to Install 9Menu package on Ubuntu? 9Menu produces a window that is made up entirely of a menu. The associated command is carried out when a certain item is selected. With the help of this straightforward software, you may make X menus from the shell, each of which will execute a command. Although 9menu is designed to work with 9wm, i
2 min read
How to Install Menulibre package on Ubuntu? A dynamic menu editor is called MenuLibre. It has an easy-to-use interface that makes it possible to manage and configure the desktop applications you have installed. You may add program launchers to your desktop using Menulibre so that you can access them whenever you want. With MenuLibre, you can:
3 min read
How to Install and Configure Synaptic Package Manager in Ubuntu? Synaptic Package Manager is a GUI based package management tool that uses APT (Advanced Package Tool) to installing, updating or removing packages from the Linux system. Some of the feature given by Synaptic Package Manager are: Allow installing, updating or removing packagesUpgrading whole systemSe
1 min read
Understanding Package Managers and systemctl A package manager is a command-line or graphical tool used to automate the process of installing, updating, and removing software packages on a Linux system. Software packages are collections of files, including executables, libraries, configuration files, and documentation, that are bundled togethe
9 min read
How to install Googler on Ubuntu Googler is the command-line application used to navigate to various URLs, view news, and open various movies. Making Google searches with Googler is a powerful open-source application that also depends on Python, so before installing it, make sure Python is up to date on your operating system. We'll
2 min read
How to uninstall packages from Linux? In this article, we will learn to uninstall the different types of packages from Linux. Let's understand the uninstalling process through some examples: Example 1: Uninstall a package using apt-get In this example, we will remove GIMP, a graphics software that was installed with the help of apt-get.
2 min read
Nix - The Purely Functional Package Manager for Linux Nix is a purely functional package manager for Linux, that serves to provide a purely functional approach to any system's software package management. Due to its functional and declarative approach, it is lauded for its capacity to:Â Support the installation of multiple versions of a given package.En
6 min read
How To Install alpine-pico on Ubuntu Pico is a straightforward text editor based on the Alpine messaging system composer. Commands, like in Alpine, are presented at the bottom of the screen, and context-sensitive help is available. Characters are immediately placed into the text as they are written. Control-key combinations are used to
3 min read
How to Install a New Package Manager in Linux Linux offers several package managers for software installation, updates, and maintenance. In Linux, every distribution comes with a package manager by default. The Debian distribution comes with APT(Advanced Package Tool), Red Hat, and its derivatives such as CentOS and Fedora use YUM package manag
4 min read
How to install Simplenote on Ubuntu? Are you looking to install Simplenote on your Ubuntu system? Simplenote is a popular, easy-to-use note-taking app that helps you stay organized and productive. In this guide, we will provide you with a step-by-step tutorial on how to install Simplenote on Ubuntu. Whether you're a seasoned Linux user
3 min read