Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aelkz/fb59c140645c52a148676ce499897022 to your computer and use it in GitHub Desktop.
Save aelkz/fb59c140645c52a148676ce499897022 to your computer and use it in GitHub Desktop.
Install Spotify on Fedora 64-bit
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:
Using unofficial repositories like the negativo17 repository.
Using Flatpaks
Flatpak
To install it using Flatpak one needs to get the source files required to build it, then build it and add it to one's Flatpak remote and install it. This can be done using the following set of commands:
-----
sudo dnf install flatpak flatpak-builder git make ostree -y
flatpak remote-add --from gnome https://sdk.gnome.org/gnome.flatpakrepo
flatpak install gnome org.freedesktop.Platform 1.4
flatpak install gnome org.freedesktop.Sdk 1.4
git clone https://github.com/alexlarsson/spotify-app
cd spotify-app
make
flatpak --user remote-add --no-gpg-verify local-spotify repo
flatpak --user install local-spotify com.spotify.Client
-----
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
-----
Installation on Fedora 29:
$ 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 approve spotify-client
$ sudo -u pkg-build lpf build spotify-client
$ sudo dnf install /var/lib/lpf/rpms/spotify-client/spotify-client-*.rpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment