How to Install Spotify on Linux Distributions

install Spotify on Linux

Spotify is a free music streaming service that offers additional premium content at a minimal subscription fee. It's a widely successful music service with several million users and millions of songs at your fingertips. With Spotify, you can listen to your favorite artists, the latest hits, exclusives, and new discoveries on the go. Spotify is available on Windows, macOS, Linux (Debian), along with Android, iOS, and Windows Phone smartphones and tablets.

In this tutorial, we learn how to install Spotify on Linux distributions such as Ubuntu, Mint, and Fedora.

Install Spotify on Linux

The simplest way to install Spotify on Linux is using snap. Snap is now preinstalled on most Linux distributions. Snap brings impressive improvements in its compression algorithm to launch applications faster.

In case snap is not installed you can install snap using:

$ sudo apt update
$ sudo apt install snapd -y

Install Spotify on Ubuntu/Mint

Spotify is available on snap store and the official repository. Let's first check how to install using snap which is the easiest way.

Now, you can install Spotify in Linux using the following command:

$ sudo snap install spotify

You can find it installed at /snap/bin/spotify.

To manually update the Spotify package, run:

$ sudo snap refresh spotify

From official repository

To install Spotify from the official repository, first, you need to import the signing key and add the repository.

$ wget -O- https://download.spotify.com/debian/pubkey.gpg | sudo apt-key add -
$ sudo add-apt-repository "deb http://repository.spotify.com stable non-free"

Now, using apt install Spotify, type:

$ sudo apt install spotify-client

The snap binary would be located at/usr/bin/spotify.

Once installed you can run Spotify using the following command in the terminal:

$ spotify
Spotify login
Spotify login

Install Spotify on Fedora

You can install Spotify on Fedora using the official repository and from the snap store.

Using Snap store

To install Spotify from the Snap store first you have to update your system and install snapd package.

$ sudo dnf update -y  && sudo dnf install snapd -y

Now, you can install Spotify using the following command,

$ sudo snap install spotify

Once installed you can run Spotify using the following command in the terminal,

$ spotify

Using Flatpak

You can also use Flatpak repository to install Spotify. To do this first install flatpak in your fedora system.

$ sudo dnf install flatpak -y

Now install Spotify using flatpak command,

$ sudo flatpak install -y --from https://flathub.org/repo/appstream/com.spotify.Client.flatpakref

Once it is installed you can run it just by typing,

$ sudo flatpak run com.spotify.client

Check Spotify version

To check the Spotify version run the following command,

$ spotify --version
Spotify version

How to Uninstall Spotify on Linux

If you have installed from snap store, remove using the following command:

$ sudo snap remove spotify

Similarly, if you have installed it from its official repository ( in Ubuntu and Mint ) remove it using:

$ sudo apt remove spotify-client

If you have installed it from flatpak, run the following command to uninstall.

$ sudo flatpak uninstall com.spotify.client

Conclusion

It's worth trying out ncspot and Tizonia which lets stream music from Spotify via terminal.

In this tutorial, we learned how to install Spotify in three different Linux distribution. You can enjoy streaming your music.

Leave a Comment