Guides 11792 Published by

The guide walks you through enabling EPEL, installing snapd, and activating its socket so that the “snap install” command works on Rocky Linux 8. After pulling in the snap packages you should enable the system‑wide snapd.socket, optionally create a symlink to support classic confinement, then reboot or log out for user directories to initialize. Once logged back in, running “snap version” verifies that snapd is correctly configured and lets you install applications like GIMP without error. The article also highlights common pitfalls such as confusing snapd.service with the socket and forgetting the symlink for classic snaps, reminding users that a quick reboot often resolves most hiccups.




How to Install Snap on Rocky Linux 8

If you’re looking to pull in the latest snaps on a Rockylinux 8 box, this is your quick‑fire guide. We’ll walk through enabling the right repos, installing snapd, and getting it running so that the “snap install …” command actually works.

Why Snap Matters on Rocky Linux

Snap packages bundle dependencies with their applications, making them portable across many distros—including RHEL‑based ones like Rocky. I’ve seen users complain that a snap they need for a workflow just won’t start because the service isn’t running. That’s why you’ll want to make sure snapd is fully enabled before hitting install.

Step 1: Enable EPEL (Extra Packages for Enterprise Linux)

Rocky doesn’t ship snapd in its default repos, so the first move is to turn on EPEL.

sudo dnf install epel-release -y

EPEL contains the latest snapd build that works with Rocky 8’s kernel and system libraries.

Step 2: Install Snapd

Now pull down snapd itself.

sudo dnf install snapd -y

This pulls in all the necessary binaries, including snap, snapd, and a helper daemon.

Step 3: Enable the System‑Wide Snap Service

Snapd ships as a systemd unit that needs to be started and enabled.

sudo systemctl enable --now snapd.socket

The socket activation trick means the snap daemon starts on demand, keeping your system lean until you actually use a snap.

Step 4: Create a Symlink for Classic Snaps (Optional)

If you want to run classic confinement snaps—those that need full access to /usr and /var—add a symlink.

sudo ln -s /var/lib/snapd/snap /snap

Without this link, classic snaps will complain about missing paths.

Step 5: Log Out or Reboot

Because snap creates its own user‑specific directories under your home folder, you need a fresh login for the changes to take effect.

sudo reboot
Step 6: Test Your Setup

After you’re back in, verify everything is wired up.

snap version

You should see something like:

Snap version: 2.58.1 (stable)
Snap store:   https://store.snapcraft.io
Snapd version: 2.58.1-0ubuntu1~20.04.4
OS ID:        rocky
OS Release:   8
Kernel:       5.14.0-1013.el8_6.x86_64

Now try installing a real snap, e.g., the latest version of GIMP:

sudo snap install gimp

If it pulls down without error, you’re good to go.

Common Gotchas
  • snapd.service vs snapd.socket – Only the socket is needed for on‑demand launch. Forgetting to enable it will leave you with “snap command not found” or “service not running” errors.
  • Classic confinement – Some snaps, like hello-world, require classic support. If you skip the symlink step, they’ll refuse to run.
Final Thought

Snap on Rocky 8 is surprisingly painless once you get past the EPEL enablement. Give it a spin; you might discover a snappy tool that fits your workflow better than any rpm out there. Cheers!