Installing the daemon

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 :penguin: is 1:1 binary compatible with RHEL® and pre-Stream CentOS, so snap installs the same way as it does on RHEL. :arrows_counterclockwise:

The snap packages for AlmaLinux can be found in the Extra Packages for Enterprise Linux 2 (EPEL) repository. :package:

Enable EPEL repo :minidisc:

If you haven’t done it yet, enable the EPEL repository for your AlmaLinux system:

sudo dnf install epel-release
sudo dnf upgrade

Install :hammer_and_wrench:

:information_source: 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: :inbox_tray:

sudo dnf install snapd

Set up :gear:

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 :checkered_flag:

To make sure the paths for snap are updated correctly, you just need to re-login. Reboot will work too. :arrows_counterclockwise:

Congratulations, snap is now installed and fully operational! :tada:

Optional: for Desktop Users :desktop_computer:

If you’re operating on a desktop environment, consider installing the Snap Store app (Installing the Snap Store app) :shopping_bags: