Installing snap on openSUSE

Snap can be installed from the command line on openSUSE Leap 42.3, Leap 15 and Tumbleweed.

Add the repository

You first need to first add the snappy repository. Leap 15 users, for example, can do this with the following command:

$ sudo zypper addrepo --refresh https://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_15.0 snappy
...
Repository 'snappy' successfully added

Swap out openSUSE_Leap_15.0 for either openSUSE_Leap_42.3 or openSUSE_Tumbleweed if you’re using a different version of openSUSE.

With the repository added, import its GPG key:

$ sudo zypper --gpg-auto-import-keys refresh

Finally, upgrade the package cache to include the new snappy repository:

$ sudo zypper dup --from snappy

Install snapd

Snap can now be installed with the following:

$ sudo zypper install snapd

You then need to either reboot, logout/login or source /etc/profile to have /snap/bin added to PATH.

Additionally, enable and start the snapd service with the following commands:

$ sudo systemctl enable snapd
$ sudo systemctl start snapd   

You now have snapd installed and ready to go:

$ snap version
snap           2.36-lp150.1.1
snapd          2.36-lp150.1.1
series         16
opensuse-leap  15.0
kernel         4.12.14-lp150.11-default

Troubleshooting

If you don’t see the snapd update on your system, make sure the repository is refreshing correctly. If it’s not, remove and re-add the repository with the following command (–refresh is important):

sudo zypper removerepo snappy
sudo zypper addrepo --refresh https://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_15.0 snappy

As above, replace openSUSE_Leap_15.0 with your specific version of openSUSE.

Last updated 26 days ago. Help improve this document in the forum.