How to Install Snap Package Manager on Rocky Linux 8

Install Snap Package Manager on Rocky Linux 8

In this article, we will have explained the necessary steps to install Snap Package Manager on Rocky Linux 8. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Snap is a modern package manager that allows you to install Snap packages across a wide range of Linux distributions and versions. Snaps address the issue of missing libraries and dependencies during software installation since all requirements are bundled together. snaps are also universal and distribution agnostic.

Install Snap Package Manager on Rocky Linux 8

Step 1. First, before you start installing any package on your Rocky Linux server, we always recommend making sure that all system packages are updated.

sudo dnf install epel-release
sudo dnf update
sudo dnf upgrade

Step 2. Install Snap Package Manager on Rocky Linux.

Installing Snap on your Rocky Linux system is straightforward, Now run the following command below to Snap:

sudo dnf install snapd

Once installed, the systemd a unit that manages the main snap communication socket needs to be enabled:

sudo systemctl enable --now snapd.socket
sudo systemctl start --now snapd.socket

To install classic snaps, we need to enable its support in the existing installation by simply creating a symbolic link:

sudo ln -s /var/lib/snapd/snap /snap

To check the version of snap run the command:

snap --version

Step 3. Install a package with Snap.

For example, to find out the availability of an application as a snap package, run the snap findcommand followed by the name of the application. For example, to find out if VLC is available, run:

snap install vlc

That’s all you need to do to install Snap on Rocky Linux 8. I hope you find this quick tip helpful. For further reading on the Snap Package Manager, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.