Dear Snapcraft Team,
I’m reaching out from AlmaLinux OS Foundation!
We’ve noticed that AlmaLinux isn’t included in the “Distributions without snap pre-installed” section of “Installing snapd” page. We’d like to request adding an AlmaLinux installer guide to this section to assist our users with the installation process.
Thank you for considering our request.
Best regards, Pawel Suchanecki Evangelist @ AlmaLinux.org
P.S. For your reference, an example of what we envision for the AlmaLinux guide is provided below.
AlmaLinux OS is 1:1 binary compatible with RHEL® and pre-Stream CentOS, so snap installs the same way as it does on RHEL.
The snap packages for AlmaLinux can be found in the Extra Packages for Enterprise Linux 2 (EPEL) repository.
Enable EPEL repo
If you haven’t done it yet, enable the EPEL repository for your AlmaLinux system:
sudo dnf install epel-release
sudo dnf upgrade
Install
TIP: Before proceeding with the installation of snap, it’s important to install the kernel-modules package. This package includes SquashFS, a compressed read-only file system for Linux, which is necessary for the snap functionality.
Install the kernel-modules
, using the following command:
sudo dnf install kernel-modules
With the EPEL repository and kernel-modules added to your AlmaLinux installation, you can now install the snapd package:
sudo dnf install snapd
Set up
Next, instruct systemd to enable the unit providing the snap communication socket:
sudo systemctl enable --now snapd.socket
Finally – to enable classic snap support – create a symbolic link it requires:
sudo ln -s /var/lib/snapd/snap /snap
Last installation step
To make sure the paths for snap are updated correctly, you just need to re-login. Reboot will work too.
Congratulations, snap is now installed and fully operational!
Optional: for Desktop Users
If you’re operating on a desktop environment, consider installing the Snap Store app (Installing the Snap Store app)