Snap are packages that are developed to install on Linux systems regardless of what is their base. I mean it doesn’t matter whether you are on Ubuntu, Debian Rocky Linux, Centos, OpenSUSE, etc. The command to install any SNAP package will be the same for all. Basically, Snaps have their own isolated environment that’s why it doesn’t matter which Linux distro we are using.
Here we will learn how to install Snap and Snap-store on Rocky Linux 8
Enable EPEL repository
There are few packages that we require to install Snapd on Rocky Linux via EPEL. Thus, for that first, we have to enable it on our system and the command is-
sudo dnf install epel-release
Install snapd on Rocky Linux 8
Next is the running of the main command that will download and install packages required by SNAP to run properly.
sudo yum install snapd
Note: In case you get some dependencies issues then run the below two commands-
sudo dnf clean all sudo dnf update
Enable & start Snapd service
Once the installation is completed, we need to enable and start the Snapd daemon, it is essential for installing various packages available in the Snapcraft repository.
sudo systemctl enable --now snapd.socket sudo systemctl start --now snapd.socket
sudo systemctl status snapd.socket
Enable Classic support
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
Snap-Store installation (optional)
In case you are using the Graphical user interface of Rocky Linux then we can also install Snap store GUI on it to install its packages using the graphical interface rather command line.
sudo snap install snap-store
With the completion of the above installation, go to Applications and search for Snap Store. When its icon appears, click to run it. You can also search and see what are packages available in SnapCraft either using the installed store or by checking out the official website.