Occasionally, when I need an application on Arch Linux that either isn’t available or is poorly maintained, I often find its available as a snapcraft/snaps package. Snaps packages are provides by Canonical and are intended as a more universal way of installing apps across distributions without modification. My preference is always to use the AUR where possible, however a handful of apps just work better from the snapstore. As usual, I’m using Manjaro i3 Community Edition but this applies to Arch Linux also.
The Official Way
The official way according to their site is to manually download the git repository from github.
[[email protected] ~]$ git clone https://aur.archlinux.org/snapd.git [[email protected] ~]$ cd snapd [[email protected] snapd]$
Then issue the make command.
[[email protected] snapd]$ makepkg -si
And then enable the service.
$ sudo systemctl enable --now snapd.socket
And create the following symbolic link.
sudo ln -s /var/lib/snapd/snap /snap
You should now be able to use the snapstore to install snaps.
However the easier method seems to be to simply install it using
pamac. You can search for it with.
[[email protected] ~]$ pamac search snapd snapd-glib 1.54-1 extra Library to allow GLib/Qt based applications access to snapd, the daemon that controls Snaps snapd 2.51.3-2 extra Service and tools for management of snap packages.
And install it with.
[[email protected] ~]$ pamac install snapd
You still need to enable and start the
snapd.service. You can do both with the following.
[[email protected] ~]$ sudo systemctl enable --now snapd.socket
You will also need to create the symbolic link.
[[email protected] ~]$ sudo ln -s /var/lib/snapd/snap /snap [[email protected] ~]$ ls -la /snap lrwxrwxrwx 1 root root 19 Nov 10 11:49 /snap -> /var/lib/snapd/snap
That should be it – you’re ready to try installing an app!
Check the version with.
[[email protected] ~]$ snap version snap 2.51.3-2 snapd 2.51.3-2 series 16 manjaro - kernel 5.13.19-2-MANJARO
Check to see if anything is installed.
[[email protected] ~]$ snap list No snaps are installed yet. Try 'snap install hello-world'.
Everything looks good! If you know what you want to install, try it out. For example, to install spotify, run:
[[email protected] ~]$ sudo snap install spotify
See this article for more information on how to use snap package manager.
Be the first to comment