Spotify needs no introduction. It is the most popular music streaming service.
You can play Spotify in a web browser, but using the desktop application would be a better option if you use it extensively.
Why? Because you can control the playback with the media key, get notifications for the songs, and don’t need to worry about accidentally closing the browser tab or window. The desktop client gives a wholesome experience.
Spotify provides a repository for Ubuntu and Debian. But what about installing Spotify on Arch Linux?
Actually, it is even simpler to get the Spotify desktop application on Arch Linux. Just use this command:
sudo pacman -Syu spotify-launcher
In this tutorial, I’ll discuss the following methods of installing Spotify:
- Using pacman (you already saw it above but we’ll dig deeper)
- Installing using Pamac (the package manager from Manjaro)
- Installing using Flatpak (the universal packaging format)
- Using Snap (official package by the Spotify team)
Method 1: Install Spotify using pacman
Spotify is available from the Community repository of Arch Linux. It’s actually a Rust implementation of the APT repository provided by Spotify.
Open your terminal and use the pacman command in the following manner:
sudo pacman -Syu spotify-launcher
Once installed, launch it from the Application Menu and log in to start listening.
Enter the following command to remove it along with its dependencies and config files.
sudo pacman -Rns spotify-launcher
Method 2: Install Spotify using Pamac
If you are using Manjaro or have installed Pamac in your system, you can use it to install Spotify graphically.
Open Add/Remove Software from Applications menu. Click on the search icon on the top left and search for Spotify. Then, select the package named
spotify-launcher and click Apply to install as shown below.
You can also deselect the package when installed and click Apply to remove it.
Using Pamac CLI
yes, Pamac also has a command line interface and you can use it in the following manner to get Spotify.
pamac install spotify-launcher
And to remove later, use:
pamac remove spotify-launcher
Method 3: Install Spotify using Flatpak
Many users prefer to install proprietary applications using Flatpak for the sandbox it provides.
Enter the following command in the terminal to update your system and install Flatpak (if you don’t have it already).
sudo pacman -Syu flatpak
Then, enable Flathub repository using the following command.
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
Now, install Spotify by entering the command below.
flatpak install spotify
To remove the Flatpak for Spotify you can use the command below.
flatpak remove spotify
Method 4: Install Spotify using Snap
I understand that many people have a strong dislike for the Snap packaging format for its ‘closed’ nature. However, Spotify provides a Snap package officially. You are getting it from the Spotify developers themselves.
If you have Snap package support on your system, use the following command:
sudo snap install spotify
If you want to remove it later, use this command:
sudo snap remove spotify
Please consider donating to the project if you like Arch Linux and want to support it. All the work is done by the community members, who are unpaid volunteers.
Let me know if you have any issues installing Spotify on Arch.