JRehkemper.de

Install Snap on AlmaLinux

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

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

That’s it

Now you can use snap just like on an Ubuntu-System.

profile picture of the author

Jannik Rehkemper

I'm an professional Linux Administrator and Hobby Programmer. My training as an IT-Professional started in 2019 and ended in 2022. Since 2023 I'm working as an Linux Administrator.