How to install and enable SNAP on Rocky Linux or AlmaLinux 8

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 / AlmaLinux  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 or AlmaLinux

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

commadn to install snap on Rocky Linux

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

Check status:

sudo systemctl status snapd.socket

Enabel Snap service systemd unit on Rocky Linux 8

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
reboot

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.

Snap Store install on Rocky Linux using command terminal

 

 

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.