How To Install snapd on Fedora 34

snapd is A transactional software package manager

Introduction

In this tutorial we learn how to install snapd on Fedora 34.

What is snapd

Snappy is a modern, cross-distribution, transactional package manager designed for working with self-contained, immutable packages.

We can use yum or dnf to install snapd on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install snapd.

Install snapd on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install snapd using dnf by running the following command:

sudo dnf -y install snapd

Install snapd on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install snapd using yum by running the following command:

sudo yum -y install snapd

How To Uninstall snapd on Fedora 34

To uninstall only the snapd package we can use the following command:

sudo dnf remove snapd

snapd Package Contents on Fedora 34

/etc/profile.d/snapd.sh
/etc/sysconfig/snapd
/etc/xdg/autostart/snap-userd-autostart.desktop
/usr/bin/snap
/usr/bin/snapctl
/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/b939f81b64d21069e28815c3bb2fc97260eb39
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/7f348cc9b3fb9db53802ad88056ff6526fed95
/usr/lib/.build-id/84
/usr/lib/.build-id/84/69d1ed8db7fb446645b9a0c88ad789985637e3
/usr/lib/.build-id/98
/usr/lib/.build-id/98/f952f84419402c4ef7559c3fb57087cda6f72c
/usr/lib/.build-id/9c
/usr/lib/.build-id/9c/3bae25bed13ebfb50b6e263cd6dd34bc8d2a00
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/ec794dfa04dc6c64f3f86d735eb135c285521f
/usr/lib/environment.d/990-snapd.conf
/usr/lib/systemd/system-environment-generators/snapd-env-generator
/usr/lib/systemd/system/snapd.autoimport.service
/usr/lib/systemd/system/snapd.failure.service
/usr/lib/systemd/system/snapd.seeded.service
/usr/lib/systemd/system/snapd.service
/usr/lib/systemd/system/snapd.socket
/usr/lib/systemd/user/snapd.session-agent.service
/usr/lib/systemd/user/snapd.session-agent.socket
/usr/libexec/snapd
/usr/libexec/snapd/complete.sh
/usr/libexec/snapd/etelpmoc.sh
/usr/libexec/snapd/info
/usr/libexec/snapd/snap-exec
/usr/libexec/snapd/snap-failure
/usr/libexec/snapd/snap-mgmt
/usr/libexec/snapd/snap-mgmt-selinux
/usr/libexec/snapd/snapctl
/usr/libexec/snapd/snapd
/usr/libexec/snapd/snapd.run-from-snap
/usr/share/applications/io.snapcraft.SessionAgent.desktop
/usr/share/applications/snap-handle-link.desktop
/usr/share/bash-completion/completions/snap
/usr/share/dbus-1/services/io.snapcraft.Launcher.service
/usr/share/dbus-1/services/io.snapcraft.SessionAgent.service
/usr/share/dbus-1/services/io.snapcraft.Settings.service
/usr/share/dbus-1/session.d/snapd.session-services.conf
/usr/share/dbus-1/system.d/snapd.system-services.conf
/usr/share/doc/snapd
/usr/share/doc/snapd/MOVED.md
/usr/share/doc/snapd/README.md
/usr/share/doc/snapd/error-kinds.go
/usr/share/licenses/snapd
/usr/share/licenses/snapd/COPYING
/usr/share/man/man8/snap.8.gz
/usr/share/man/man8/snapd-env-generator.8.gz
/usr/share/polkit-1/actions/io.snapcraft.snapd.policy
/usr/share/zsh
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_snap
/var/cache/snapd
/var/lib/snapd
/var/lib/snapd/assertions
/var/lib/snapd/cookie
/var/lib/snapd/dbus-1
/var/lib/snapd/dbus-1/services
/var/lib/snapd/dbus-1/system-services
/var/lib/snapd/desktop
/var/lib/snapd/desktop/applications
/var/lib/snapd/device
/var/lib/snapd/hostfs
/var/lib/snapd/inhibit
/var/lib/snapd/lib
/var/lib/snapd/lib/gl
/var/lib/snapd/lib/gl32
/var/lib/snapd/lib/glvnd
/var/lib/snapd/lib/vulkan
/var/lib/snapd/mount
/var/lib/snapd/seccomp
/var/lib/snapd/seccomp/bpf
/var/lib/snapd/snap
/var/lib/snapd/snap/README
/var/lib/snapd/snap/bin
/var/lib/snapd/snaps
/var/lib/snapd/state.json
/var/snap
/etc/profile.d/snapd.sh
/etc/sysconfig/snapd
/etc/xdg/autostart/snap-userd-autostart.desktop
/usr/bin/snap
/usr/bin/snapctl
/usr/lib/.build-id
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/b818334299aec0466ce9adcd5586bacba9ca44
/usr/lib/.build-id/a3
/usr/lib/.build-id/a3/0ae6cff69f0ffd1a64ff627d7513c92481f0e6
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/1bf74142a78881e3f1730fe748d15ac5ab9931
/usr/lib/.build-id/af
/usr/lib/.build-id/af/ef80338816986d09119bf6818720753197e20d
/usr/lib/.build-id/be
/usr/lib/.build-id/be/bca20e97bd82d4cb6079b1b55833df2b8f2936
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/a11a404a0e1efca186c594731d564d0c37fa14
/usr/lib/environment.d/990-snapd.conf
/usr/lib/systemd/system-environment-generators/snapd-env-generator
/usr/lib/systemd/system/snapd.autoimport.service
/usr/lib/systemd/system/snapd.failure.service
/usr/lib/systemd/system/snapd.seeded.service
/usr/lib/systemd/system/snapd.service
/usr/lib/systemd/system/snapd.socket
/usr/lib/systemd/user/snapd.session-agent.service
/usr/lib/systemd/user/snapd.session-agent.socket
/usr/libexec/snapd
/usr/libexec/snapd/complete.sh
/usr/libexec/snapd/etelpmoc.sh
/usr/libexec/snapd/info
/usr/libexec/snapd/snap-exec
/usr/libexec/snapd/snap-failure
/usr/libexec/snapd/snap-mgmt
/usr/libexec/snapd/snap-mgmt-selinux
/usr/libexec/snapd/snapctl
/usr/libexec/snapd/snapd
/usr/libexec/snapd/snapd.run-from-snap
/usr/share/applications/io.snapcraft.SessionAgent.desktop
/usr/share/applications/snap-handle-link.desktop
/usr/share/bash-completion/completions/snap
/usr/share/dbus-1/services/io.snapcraft.Launcher.service
/usr/share/dbus-1/services/io.snapcraft.SessionAgent.service
/usr/share/dbus-1/services/io.snapcraft.Settings.service
/usr/share/dbus-1/session.d/snapd.session-services.conf
/usr/share/dbus-1/system.d/snapd.system-services.conf
/usr/share/doc/snapd
/usr/share/doc/snapd/MOVED.md
/usr/share/doc/snapd/README.md
/usr/share/doc/snapd/error-kinds.go
/usr/share/licenses/snapd
/usr/share/licenses/snapd/COPYING
/usr/share/man/man8/snap.8.gz
/usr/share/man/man8/snapd-env-generator.8.gz
/usr/share/polkit-1/actions/io.snapcraft.snapd.policy
/usr/share/zsh
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_snap
/var/cache/snapd
/var/lib/snapd
/var/lib/snapd/assertions
/var/lib/snapd/cookie
/var/lib/snapd/dbus-1
/var/lib/snapd/dbus-1/services
/var/lib/snapd/dbus-1/system-services
/var/lib/snapd/desktop
/var/lib/snapd/desktop/applications
/var/lib/snapd/device
/var/lib/snapd/hostfs
/var/lib/snapd/inhibit
/var/lib/snapd/lib
/var/lib/snapd/lib/gl
/var/lib/snapd/lib/gl32
/var/lib/snapd/lib/glvnd
/var/lib/snapd/lib/vulkan
/var/lib/snapd/mount
/var/lib/snapd/seccomp
/var/lib/snapd/seccomp/bpf
/var/lib/snapd/snap
/var/lib/snapd/snap/README
/var/lib/snapd/snap/bin
/var/lib/snapd/snaps
/var/lib/snapd/state.json
/var/snap

References

Summary

In this tutorial we learn how to install snapd on Fedora 34 using yum and dnf.