Learn how to Set up Spotify on Linux

Spotify is one of the largest music streaming services out there. It has native clients for both mobile (Android and iOS) and desktop devices (Mac and Windows).

Unfortunately, Linux only gets one unsupported Spotify client. So if you want to use Spotify on Linux, you can either install the unsupported desktop client or use the Spotify web player.

In our opinion, using the desktop client – albeit unsupported – is still a better choice as it gives you access to all of Spotify's features not otherwise available on the web. Follow us as we demonstrate the steps to install Spotify on Linux.

Install Spotify on Debian / Ubuntu

Installing Spotify on Debian-based Linux distributions is easiest thanks to the APT package manager. So, if you are running Debian, Ubuntu, Linux Mint, or the like on your computer, you can install Spotify with a few simple steps.

First, start the Terminal app. Then run the following commands to add the GPG key and configure the PPA for Spotify on your system:

curl -sS https://download.spotify.com/debian/pubkey_5E3C45D7B312C643.gpg | sudo add apt-key –
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list

Next, run the following commands to update your system's repository list and download the Spotify client:

sudo apt-get update
sudo apt-get install spotify-client

When prompted for confirmation, enter y / yes and hit Enter.

If you want to uninstall Spotify from your computer, you can always do so as follows:

sudo apt-get Remove Spotify client

If you are not familiar with the command line approach, you can also use the GUI method to install Spotify. To do this, go to the application menu on your system and open the integrated package manager / storage.

Here, click the search box and search for Spotify or Spotify client.

In the results returned, check the box next to Spotify client to mark it for installation.

Finally hit that Use Button to install the selected package on your computer. For some graphical package managers, you can simply look it up Spotify client and hit the To install Button to install it.

How to install Spotify on other Linux distributions

As usual, installing a program on other Linux distributions is not very easy, especially if the official package managers don't natively offer a package for this program.

However, thanks to third-party package formats like Snap and Flatpak, you can install such programs quite easily. For the uninitiated, snaps or flatpaks are self-contained applications that run in a sandbox with limited access to the host system.

So, if you have a Linux computer running Fedora or an Arch-based distribution, you can install Spotify using one of the package formats as shown below.

Note that you can also install Spotify on Arch Linux with an AUR helper. For this guide, we'll use yay:

yay -S spotify

Install Spotify via Snap

To install Spotify through Snap, make sure Snap is installed on your system. You can do this by running the following command in a terminal:

snap

If a version number is returned, Snap is available on your computer and you can move on to the next step. However, if it doesn't, you will need to install Snap first.

Once you've set up and running Snap, install Spotify by doing the following:

sudo snap install Spotify

Similarly, if for any reason you want to uninstall Spotify, do the following:

sudo snap remove spotify

By default, Snap is set to check for updates four times a day. However, if you want to check for an update right away, you can do so by using:

Sudo Snap Refresh Spotify

If an update is available for the package, it will be automatically downloaded and installed on your system.

Install Spotify via Flatpak

Similar to installing Spotify via Snap, Flatpak also requires you to first check that Flatpak is present on your computer. To do this, run the following command in a terminal:

Flatpak

If the command returns a Flatpak version, the program should be installed on your system. If it doesn't, you'll need to install Flatpak before you can continue.

After you've installed and set up Flatpak, open a new terminal instance and run the following command to install the Spotify client on your computer:

Install flatpak flathub com.spotify.Client

If you want to remove Spotify from your device, here's how you can do it:

Uninstall flatpak flathub com.spotify.Client

Starting Spotify for the first time

Once the Spotify client is successfully installed on your computer, there are several ways you can run it. You can either find Spotify in the application menu and run it from there, or just type in Spotify in a terminal window to launch it.

When the home screen appears, click the log in and enter your Spotify credentials to log into your account.

You can also sign in with your Google, Facebook, or Apple account by selecting the appropriate option on the screen. Or, if you're new to Spotify, just click that Register to create a new Spotify account and continue.

After you sign up, your entire Spotify library (albums, songs with likes, playlists, and even podcasts) will be synced to your new device. You can then play your songs or download them for offline access. In addition, you also have the option to add your local storage as a music source and import songs from there to play on Spotify.

Over time, if you want to check Spotify's installation or version number – in case there's ever a new update – open up Terminal and do the following:

spotify –version

Successful running of the Spotify client on Linux

If you followed the directions in this guide correctly, the Spotify client should be running on your Linux computer. And in the future, you should be able to use it and enjoy all of the Spotify desktop features just like you would if you installed it on a Mac or Windows PC.

Note, however, that Spotify for Linux, as it comes from its engineers as a side project out of love for Spotify and Linux, is not regularly maintained or actively supported / updated. Hence, you shouldn't expect the latest Spotify feature update version for Linux when you encounter the clients on other desktop platforms.

If you are just starting out with Spotify, learning a few Spotify tricks will help you get more out of the platform and maximize your experience with it.

10 Useful Spotify Playlist Tips and Tricks You Should Know

Here are some tips and tricks to help you manage your Spotify playlists, including duplicating Spotify playlists and more.

Continue reading

About the author

Yash Wate
(32 published articles)

Yash is Staff Writer at MUO for DIY, Linux, programming and security. Before he discovered his passion for writing, he developed for the web and iOS. You can also find his writing on TechPP where he covers other industries. In addition to technology, he likes to talk about astronomy, Formula 1 and clocks.

More
By Yash Wate

Subscribe to our newsletter

Subscribe to our newsletter for tech tips, reviews, free e-books, and exclusive offers!

Click here to subscribe

Leave a Reply

Your email address will not be published. Required fields are marked *