From Fedora Project Wiki

(Updated Flatpak instructions, added more detail on RPMFusion repo)
(Added officially supported Snap method)
Line 4: Line 4:
While it is not officially supported on Fedora or any other RPM-based distributions it is possible to get it to work on Fedora. There are two main ways of installing it:
While it is not officially supported on Fedora or any other RPM-based distributions it is possible to get it to work on Fedora. There are two main ways of installing it:


* Using the [https://www.spotify.com/us/download/linux/ officially-supported] [http://snapcraft.io Snap] method.
* Using a [[Flatpak]] hosted by [https://flathub.org/ FlatHub].
* Using a [[Flatpak]] hosted by [https://flathub.org/ FlatHub].
* Using unofficial repositories like the [http://negativo17.org/spotify-client/ negativo17 repository] or the [https://rpmfusion.org RPM Fusion repository].
* Using unofficial repositories like the [http://negativo17.org/spotify-client/ negativo17 repository] or the [https://rpmfusion.org RPM Fusion repository].
=== Snap ===
To install Spotify using Snap enter the following commands in Terminal:
<pre>
sudo dnf install snapd
sudo ln -s /var/lib/snapd/snap /snap
snap install spotify
</pre>
Please consult [https://snapcraft.io/spotify/ Snapcraft] for more information on that repository and Snaps.


=== Flatpak ===
=== Flatpak ===

Revision as of 23:53, 24 December 2017

Spotify is a cross-platform (available for Ubuntu, macOS, and Windows) proprietary music streaming service. It is a freemium product, that is, a free version of it is available, but it has advertisements. To use it without advertisements one needs to pay for Spotify Premium.

Installation

While it is not officially supported on Fedora or any other RPM-based distributions it is possible to get it to work on Fedora. There are two main ways of installing it:

Snap

To install Spotify using Snap enter the following commands in Terminal:

sudo dnf install snapd
sudo ln -s /var/lib/snapd/snap /snap
snap install spotify

Please consult Snapcraft for more information on that repository and Snaps.

Flatpak

To install Spotify using Flatpak enter the following command in Terminal:

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

Please consult FlatHub for more information on that repository and Flatpaks.

Negativo17.org repository

This repository also contains the following packages features:

  • Required libraries for enabling local files playback and file upload to personal playlists
  • Firewalld rules for enabling local service discovery and Spotify Connect (control other devices & output location)

Installation for Fedora:

dnf config-manager --add-repo=http://negativo17.org/repos/fedora-spotify.repo
dnf install spotify

Installation for CentOS/RHEL 7+:

yum-config-manager --add-repo=http://negativo17.org/repos/epel-spotify.repo
yum install spotify

Please consult Negativo17.org for more information on that repository.

RPMFusion repository

Installation for Fedora:

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install lpf-spotify-client
lpf-gui

Installation for CentOS/RHEL 7+:

sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm
sudo yum install lpf-spotify-client
lpf-gui

Please consult RPM Fusion for more information on that repository.