Introduction
Snap is a package manager for Linux systems that makes it easy to install and manage applications. It is available for Ubuntu, Debian, Fedora, and other Linux distributions. In this guide, we will show you how to install Snap on Ubuntu. We will also provide some basic commands to help you get started with Snap.
How to Install Snap on Ubuntu
1. Open a terminal window.
2. Update the package list by typing the following command:
sudo apt update
3. Install the snapd package by typing the following command:
sudo apt install snapd
4. Once the installation is complete, you can verify that snap is installed by typing the following command:
snap version
5. You should see the version of snap that is installed on your system.
Introduction
Snap is a tool developed by Canonical for the purpose of package management and software deployment on Linux.
Snaps are packaged applications compiled with libraries and dependencies. Snaps work across a range of Linux distributions, which makes them a distro-agnostic upstream software deployment solution. The snapd daemon is a background service that allows you to manage the snaps on your system.
This tutorial explains how to install and use Snap on Ubuntu.
Prerequisites
- An Ubuntu system
- Access to the command line
- A user account with sudo or root privileges
Note: Learn how the Snap packaging system compares to the APT package manager in Snap vs. APT.
How to Install Snap on Ubuntu
Snap is already installed and available for use on the majority of the latest Ubuntu distributions.
Enter snap version
in the terminal to check if you have Snap installed on your system.
This lists the version of the Snap tool, the snapd daemon, the software series number, the name and release of your Linux distribution, as well as the kernel version.
If you do not have Snap preinstalled, install it via the terminal.
1. Start by updating packages:
sudo apt update
2. Enter the following command:
sudo apt install snapd
How to Install Snap Store on Ubuntu
The Snap Store is a GUI application for finding, installing and managing snaps on Linux.
1. Install the Snap Store using the command below:
sudo snap install snap-store
2. Wait until the download completes and launch it by entering:
snap-store
Note: The Snap Store runs on GNOME and it works best on GTK Ubuntu desktop environments. To err on the safe side and take full advantage of the Snap Store, install a Linux desktop environment that uses GTK, such as GNOME, Mate, or Cinnamon.
Using Snap
To use a snap package on your system, you need to install it first. Use the Snap Store if you prefer the GUI method, or use the terminal.
To install a snap app via the terminal, enter the following command:
sudo snap install [package name]
Wait for the installation to finish.
Search for Snaps
To browse through available snap packages, use the following:
snap find
For example, to search for a web browser, enter:
snap find browser
The output shows a list of apps related to the keyword ‘browser’.
List Installed Snaps
To see a list of all snaps installed on your system, enter the following:
snap list
The output shows snap details such as package name, version, revision, and the publisher.
Run Installed Snaps
Run installed snaps from the terminal by entering the app name:
<package_name>
For example, to open the Opera web browser type opera
in the terminal and the app launches.
Remove Installed Snaps
To remove an installed snap, use the following command:
sudo snap remove <package>
The snap remove
command removes the application code and any services previously declared by the app. The command also cleans up the app’s runtime dependencies and all associated user data.
Conclusion
After reading this tutorial, you should know how to install Snap on Ubuntu and work with Snap packages.
How to Install Snap on Ubuntu
Snap is a package manager for Linux systems that allows users to install and manage applications. It is a great way to keep your system up to date with the latest software. In this tutorial, we will show you how to install Snap on Ubuntu.
Prerequisites
- A system running Ubuntu 16.04 or later.
- A user account with sudo privileges.
Installing Snap
The first step is to update the package index. You can do this by running the following command:
sudo apt update
Once the package index is updated, you can install Snap by running the following command:
sudo apt install snapd
Once the installation is complete, you can verify that Snap is installed by running the following command:
snap --version
You should see output similar to the following:
snap 2.37.1
snapd 2.37.1
series 16
ubuntu 16.04
kernel 4.4.0-142-generic
You have now successfully installed Snap on your Ubuntu system.
Conclusion
You have now learned how to install Snap on Ubuntu. Snap is a great way to keep your system up to date with the latest software. You can now use Snap to install and manage applications on your system.