Installing snapd


#1

Snaps can be used on all major Linux distributions, including Ubuntu, Linux Mint, Debian and Fedora.

If you’re running Ubuntu 16.04.4 LTS (Xenial Xerus) or later, including the latest Ubuntu 18.04 LTS (Bionic Beaver), you don’t need to do anything. The snap environment is already installed and ready to go.

For other Linux distributions, including older Ubuntu releases, you will need to install the snap environment before snaps can be installed.

Distribution support

Use the links below for specific installation instructions for each distribution.


Building the snap on Linux
Installing snap on Ubuntu
Proposed new documentation outline
Getting started
Testing the snap from Linux
Testing the snap from Mac
Get started with snapcraft
#2

I’d like to suggest the following list:
Ubuntu, Linux Mint, KDE Neon, Debian, Zorin, Elementary, Fedora, Deepin, Manjaro, Arch, GalliumOS, Raspbian, Parrot OS, Solus

These are all distributions where snaps are being used at a reasonable scale.


#3

Thanks! I’ll update…


#4

Something which I think falls under this topic, but I’ve not seen discussed widely, is the requirement for certain kernel features to be enabled (regardless of distribution).

I know that trying to make an exhaustive list of those would be a fool’s errand, but here are a couple that I came across on a recent adventure with a Moxa device:

  • SquashFS support is required in order to mount snaps. This is not always provided out of the box, but can be installed as a module
  • The ptmx device is required (enabled by the CONFIG_DEVPTS_MULTIPLE_INSTANCES kernel option). This is thankfully almost always enabled by default - but if not, requires kernel recompilation.

Not sure what the best way is to capture points like these (and how much detail to go into), but figured I’d throw it out there.

On a somewhat related note, the (soon to be updated?) Debian page https://docs.snapcraft.io/core/install-debian states

Note: Raspbian is currently not supported due to missing features in the kernel shipped.

That’s not necessarily true; I’m currently running snaps on stock Raspbian (stretch), and others are too, with only minor side effects.


#5

Thanks, that’s a great point. I personally think the best way to capture it is in a page for distribution authors (“Bringing snap support to a distro”?) that walks through the kernel and other system requirements for snapd.


#6

The list is currently missing OpenSUSE instructions. There is a really easy process (single click is an option) on the OpenSUSE software site at https://software.opensuse.org/download.html?project=system%3Asnappy&package=snapd. Once installed, it needs sudo systemctl enable snapd and then sudo systemctl start snapd, and then you can use snaps .


#7

@degville I just released 2.36 for openSUSE, could you please create a section for it. Feel free to give it a try on either Leap 42.3 (old stable), Leap 15 (stable) or Tumbleweed (rolling stable).

EDIT: some quick instructions:

sudo zypper addrepo --refresh https://download.opensuse.org/repositories/system:/snappy/openSUSE_Tumbleweed snappy
sudo zypper refresh
sudo zypper install snapd
sudo systemctl enable --now snapd.socket snapd.service

You can replace openSUSE_Tumblweed with one of openSUSE_Leap_43.2 or openSUSE_Leap_15.0


#8

That’s great news, thanks for the update! I’ll give it a go and create the document.


#9

Thanks, I also added a post about the update: openSUSE updated to snapd 2.36


#10

I tested this on both Leap 15 and Tumbleweed, and it all seems to work well. Install doc is here: Installing snap on openSUSE


#11

Super nice, thank you!