Installing snap on Fedora

Snap can be installed on Fedora from the command line:

$ sudo dnf install snapd

Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.

To enable classic snap support, enter the following to create a symbolic link between /var/lib/snapd/snap and /snap:

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

Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.

To test your system, install the hello-world snap and make sure it runs correctly:

$ sudo snap install hello-world
hello-world 6.3 from Canonical✓ installed
$ hello-world
Hello World!

Snap is now installed and ready to go! If you’re using a desktop, a great next step is to install the Snap Store app.

Troubleshooting

system does not fully support snapd: cannot mount squashfs image using “squashfs”

Installing your first snap on a cloud image of Fedora may produce an error similar to the following:

error: system does not fully support snapd: cannot mount squashfs image using "squashfs": mount:
       /tmp/sanity-mountpoint-156693269: unknown filesystem type 'squashfs'.

If using a container, install the fuse and squashfuse packages (sudo dnf install fuse squashfuse).

Otherwise install kernel-modules package (sudo dnf install kernel-modules).

Fedora Silverblue prevents symlinking

Fedora Silverblue implements a read-only root filesystem and, consequently, cannot allow the above symbolic link to be created. See the following associated GitHub issue for further details: Make it easier to link in or bind folders to the root directory?

Last updated a month ago. Help improve this document in the forum.