TranslateProject/sources/tech/20220804 Install Spotify on Manjaro and Other Arch Linux Based Distros.md

5.4 KiB
Raw Blame History

Install Spotify on Manjaro and Other Arch Linux Based Distros

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 dont 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

Thats one of the many ways of installing Spotify on Arch-based Linux distros like Manjaro, Endeavour OS, Garuda Linux, etc.

In this tutorial, Ill discuss the following methods of installing Spotify:

  • Using pacman (you already saw it above but well 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. Its 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.

Spotify on Arch Linux

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.

Using Pamac to install Spotify

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 dont 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

Conclusion

The Arch package discussed in the first method is developed and maintained by kpcyrd. You can check out the source code for the same here.

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.


via: https://itsfoss.com/install-spotify-arch/

作者:Anuj Sharma 选题:lkxed 译者:译者ID 校对:校对者ID

本文由 LCTT 原创编译,Linux中国 荣誉推出