Even though snap-packs are normaly installed on Ubuntu-Systems, they are available for Alma Linux as well. In this article I will explain how to install it.
Enable EPEL Repository
The EPEL Repository is a community-driven repository without the support of Red Hat. That normaly means, it contains new versions and more packages.
You don't need to edit the repository file on your system, since there is a rpm-package in the Base-Repo that does it for you.
[tux@server]$ sudo dnf install epel-release
Install the Packages
First you need to install the snapd package to be able to use snap.
You will need to install the kernel-modules as well. Otherwise you will get an error with the squashfs filesystemtype.
[tux@server]$ sudo dnf install snapd kernel-modules
Activate the Daemon
Next you need to activate the snap-daemon
[tux@server]$sudo systemctl enable --now snapd.socket
Link directory for classic-snaps
If you want to use snap-packages that interact with other resources of your system and are not enclosed in their container, you will need to create an additional Symlink.
[tux@server]$sudo ln -s /var/lib/snapd/snap /snap
Now you can use snap just like on an Ubuntu-System.