Snaps are Linux app packages for desktop, cloud and IoT that are simple to install, secure, cross-platform, and dependency-free.
They update automatically and typically run within a confined and transaction-based environment. Security and robustness are their key features, alongside being easy to install, easy to maintain and easy to upgrade.
This is all from canonical (Ubuntu), now lets get this up and running on a Raspberry Pi
Installation
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.
Enter the following into the terminal, iy may take some time to do this
$ sudo apt update $ sudo apt install snapd
You will need to reboot your device. Type this in on the command line.
$ sudo reboot
After this, install the core snap in order to get the latest snapd.
$ sudo snap install core
To test your system, install the hello-world snap and make sure it runs correctly:
$ snap install hello-world
List installed snaps
First lets show how you can list installed snaps
$ snap list
This is what I saw
user@raspberrypi:~ $ snap list Name Version Rev Tracking Publisher Notes core 16-2.60.4 16204 latest/stable canonical✓ core
Search for a snap
There are snaps for many popular applications
The best way to find new snaps is to use the online Snap Store, link at the bottom
To search for snaps with ‘youtube’ in either their names or descriptions, type snap find “youtube” into your terminal:
user@raspberrypi:~ $ snap find "youtube" Name Version Publisher Notes Summary youtube-dl 2021.12.17+git01bf89e joeborg - Download videos from youtube.com or other video platforms youtube-live-streamer 879f2c2 rsatom - Stream video from IP Cam to YouTube Live youtube-dl-casept 2019.05.11 casept - YouTube Downloader youtubedr 2.7.10 digineo - Youtube video downloader audiotube 23.08.2 kde✓ - Convergent YouTube Music client haruna 0.11.3 kde✓ - Open source media player built with Qt/QML and libmpv subtitlecomposer 0.8.0 kde✓ - Video subtitle editor that supports basic and advanced editing operations yt-dlp 2023.11.14 degville - A fork of youtube-dl with additional features and patches podcast-dl-gael 3.0-20231012 gael-legoff - A simple script to download podcasts from YouTube and RSS feeds podpublish 0.0.5-0cbd84b flexiondotorg - A tool for encoding and publishing podcast content and assets freetube 0.19.1 capecrusader-121 - An Open Source YouTube app for privacy. video-downloader 0.12.10 unrud - Download videos from websites like YouTube and many others word-by-word-game 3.1.1+44 xsoulspace - Simple, fun and self-educative game to write word after word, based on last 3 letters of last word monophony 2.4.0 soumyadghosh - Stream music from YouTube growx 1.1 mauringo - GrowX: the Opensource Greenhouse monitoring App yt-subs-snap 0+git.52c9131 sgt.scriptkiddy - youtube-subs-server http yt-dl-server 0.0.1 mkg20001 - Yet another YouTube-Dl Server go-yt 0.1.0 harrybrwn - Command line YouTube video and audio downloader. pldl 0.0.2 addq1eax - Playlist-dl snap
Install the snap
Type snap install
followed by the name of the snap to install the snap:
sudo snap install youtube-dl
Run apps and commands from snap
The vast majority of snap-installed applications will run from command line or from the desktop launcher.
If executing a command directly doesn’t work, use the snap run
command:
snap run youtube-dl
Remove a snap
To remove a snap from your system use the remove command:
$ sudo snap remove youtube-dl