[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 | sudo apt update |
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 | snap install 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
[3] Teach, Learn, and Make with Raspberry Pi - https://www.raspberrypi.org/