[Raspberry Pi] Installing Snap on Raspberry Pi OS

Snap

Snap is a software packaging and deployment system developed by Canonical for the operating systems that use the Linux kernel. The packages, called snaps, and the tool for using them, snapd, work across a range of Linux distributions and allow upstream software developers to distribute their applications directly to users. Snaps are self-contained applications running in a sandbox with mediated access to the host system. Snap was originally released for cloud applications but was later ported to work for Internet of Things devices and desktop applications too.

Snap can be installed on a Raspberry Pi running the latest version of Raspberry Pi OS by opening a terminal and typing a couple of commands.

Installation

Enter the following into the terminal:

1
2
$ sudo apt update
$ sudo apt install snapd

You will also need to reboot your device. This can be accomplished from the terminal (and from the desktop), but make sure you save any open documents first:

1
$ sudo reboot

After this, install the core snap in order to get the latest snapd.

1
$ sudo snap install core

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

1
2
3
4
5
$ 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, and snaps can be more readily discovered, installed and managed from the Snap Store desktop app.

The Snap Store app is installed with the following command:

1
$ sudo snap install snap-store

Snap Store can now be launched from your desktop’s default launcher.

References

[1] Installing snap on Raspberry Pi OS | Snapcraft documentation - https://snapcraft.io/docs/installing-snap-on-raspbian

[2] Installing the Snap Store app | Snapcraft documentation - https://snapcraft.io/docs/installing-snap-store-app

[3] Teach, Learn, and Make with Raspberry Pi - https://www.raspberrypi.org/