How to install Snap on Arch Linux

Endrit Qerreti

Endrit Qerreti

Snap allows developers to pack their app and dependencies into a single file called snap, which then allows you to run the same app on different linux distros without having to download any dependencies manually.

Now in order to be able to run the same app on multiple different Linux distros, you need to have snap installed on the system where you want to run the app.

In this tutorial, you will learn how to install Snap on Arch Linux.

Step 1 - Download Snap repository

In this tutorial, we are going to install Snap by building snap source. First , you need to download Snap repository on your machine.

To download Snap source, you can simply clone the repository that is available in the AUR repositories.

Run the command below to do this.

git clone https://aur.archlinux.org/snapd.git

Step 2 - Change directory to Snapd

Once you have downloaded Snap source on your machine, proceed to change the directory to Snapd, to do this simply use the cd command

cd snapd

Step 3 - Install Snap

Once you are in the Snapd directory, you can now install Snap. To install Snap, you need to build the source.

To build Snap source, run the command below

makepkg -si

Once the build process is completed, you should be able to use Snap. However, before being able to use Snap, you must restart or logout from your current session on your machine.

Step 4 - Enable Snapd socket

Snap process will not start automatically by default, to make snap process start automatically on boot, you need to enable snapd socket.

To enable snapd socket, run the following command

sudo systemctl enable --now snapd.socket

Conclusion

In this tutorial, you learned how to install Snap on Arch Linux. Now you should be able to run any snap app on your system.

To find snaps that you can install on your system, you can do so by browsing on the snap store Snapcraft.io