How to Install Snap & Snap-Store on Rocky Linux 9

As any Linux user knows, there are a variety of package managers available, each with its advantages and disadvantages. While some package managers are more popular, they all have benefits and drawbacks. One relatively new package manager is Snap. Snap can be installed and, for the most part, work with most packages on Rocky Linux-based systems that are currently actively supported. There are a few conflicts with specific packages. The issue with Snaps VS DNF package manager is that Snaps are self-contained, which results in an increased .snap due to having all its dependencies included along with various degrees of slight performance degradation when compared to running the same package from DNF. However, the benefits of Snap’s self-containment may outweigh these performance concerns for some users. In addition, Snap is designed to be more secure than other package managers, making it an attractive option for users who prioritize security. Snap is a promising new package manager with unique advantages that may make it the right choice for some Linux users.

In the following tutorial, you will learn how to install Snapd on Rocky Linux 9 with the terminal and GUI methods with basic tips on how to launch or install/remove packages with Snapcraft.

Update Rocky Linux

First, update your system to ensure all existing packages are up to date.

sudo dnf upgrade --refresh -y

Import EPEL Repository

The first task is to install the (EPEL) repository, which stands for (Extra Packages for Enterprise Linux). For newer users of Rocky Linux and similar distributions based on RHEL, EPEL contains the most commonly used software packages for Enterprise Linux.

First, enable the CRB.

sudo dnf config-manager --set-enabled crb

Next, install EPEL using the following (dnf) terminal command.

sudo dnf install \ \

Install Required Packages

Before you proceed with the installation, run the following command to install the following packages.

sudo dnf install fuse squashfuse -y

Install Snapcraft – Snapd Terminal

Snapcraft, also known as Snap or Snapd, is available to be installed from appstream for users that wish to only install the terminal version of Snapcraft with the package named snapd.

Begin the Snap installation, and run the following command.

sudo dnf install snapd -y

Next, before you continue any further, it is highly advised to reboot your system. Failure to do this may result in errors in the following steps; reboot if you skip and encounter any issues.

You can quickly reboot while in the terminal by using the following command.

sudo reboot

Now enable Snapd service as follows.

sudo systemctl enable snapd --now

Next, some packages come in classic, so you must create a symlink to enable classic snap support.

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

When installing Snap for the first time, it is advised to install the core files to avoid conflicting issues:

sudo snap install core

Next, verify the Snapd service is running by using the systemctl command:

systemctl status snapd


How to Install Snap & Snap-Store on Rocky Linux 9

Install a Package

Now that Snap is installed, you can quickly test installing a package, which can be anything; however, for the tutorial, the Discord application will be the example.

sudo snap install discord

Update Packages

For the future, to update Discord and any other packages installed by Snap, run the following command:

sudo snap refresh

Remove Packages

If you no longer need to have Discord installed, remove it using the Snap remove command.

sudo snap remove discord

Install Snap-Store – Snap GUI

After installing Snapd on your system, Desktop users can install the Snapcraft store, which uses a graphical UI that can be more appealing and make it easier to search for packages. This is entirely optional, but if you want to install it, run the following command:

sudo snap install snap-store

With the install complete, you can run Snap Store in a few different ways.

First, while you are in your terminal, you can use the following command:

snap run snap-store

Most desktop users would use the following path to open.

Activities > Show Applications > Snap Store.


How to Install Snap & Snap-Store on Rocky Linux 9

Once open the first time, and on cache updates, it may take a minute or two for the latest packages to be pulled from Snapcrafts server. Once done, you can begin searching and installing packages from Snap using the GUI.


How to Install Snap & Snap-Store on Rocky Linux 9

How to Remove Snapcraft – Snapd & Snap-Store

Removing Snap from your system is an easy process. This will also remove all packages during the installation.

sudo dnf remove snapd -y

This will remove Snap and any additional packages installed and dependencies. For example, if you installed Snap Store and did not remove it prior, this package and any others installed by Snap fully.


How to Install Snap & Snap-Store on Rocky Linux 9

As you can see above, you do not need to go through and remove each package before removing Snapd, and it will do it for you.

Comments and Conclusion

In the end, it seems that Snaps have a polarizing effect on users. Most sysadmins and power users avoid them because of the perceived added complexity and lack of control. In contrast, most desktop and casual users appreciate the ease of installation and having updated packages without worrying about dependencies. For SSD hard drives these days, the difference is pretty minor unless you have limited resources such as a production server. Nevertheless, if you want to use Snaps in your environment, be prepared for the backlash from more tech-savvy users who prefer package management through traditional channels.

Not what you were looking for? Try searching for additional tutorials.

Leave a Comment