Skip to content

Instantly share code, notes, and snippets.

@olejon
Last active September 17, 2022 08:34
Show Gist options
  • Star 32 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save olejon/54473554be2d4dbacd03 to your computer and use it in GitHub Desktop.
Save olejon/54473554be2d4dbacd03 to your computer and use it in GitHub Desktop.
Install Spotify 0.9 on Fedora 64-bit
# NOTES
# Spotify 0.9 vs 1.0 is stable, uses less resources overall and works well with Spotify Connect, SpotCommander, Local Files etc
# Tested and works on Fedora 29 64-bit with GNOME, but should work on previous versions as well
# The sources of the Dropbox files, which are hosted by me and the latest and greatest available, are listed above each one
# No system files will be overwritten by these or used by other programs since they depend on the later Fedora versions
# Make sure you copy the whole lines into Terminal
# Each command is on one line and might be long
# START GUIDE
# Open Terminal and become root
sudo -s
# Update system
dnf upgrade
# Enable necessary repositories
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
# Update system again
dnf upgrade
# Install necessary packages
dnf install alien gnome-shell-extension-topicons-plus libcanberra-gtk2 libXScrnSaver qt-x11
# Install necessary libraries
# Source: libssl from https://packages.ubuntu.com/trusty-updates/amd64/libssl1.0.0/download
# Source: libgcrypt from https://packages.ubuntu.com/trusty-updates/amd64/libgcrypt11/download
wget https://www.dropbox.com/s/zuflwxuo96pj0fs/libcrypto.so.1.0.0 -O /usr/lib64/libcrypto.so.1.0.0 && wget https://www.dropbox.com/s/z42el0umfhd70u1/libssl.so.1.0.0 -O /usr/lib64/libssl.so.1.0.0 && wget https://www.dropbox.com/s/7hduiv6sdpi7ilz/libgcrypt.so.11 -O /usr/lib64/libgcrypt.so.11 && ldconfig
# Local Files support (optional)
# Source: spotify-ffmpeg from https://negativo17.org/repos/spotify/fedora-29/x86_64/
wget https://www.dropbox.com/s/q9f83tmc6e6a7q1/libavcodec.so.53 -O /usr/lib64/libavcodec.so.53 && wget https://www.dropbox.com/s/p6dtnzw9ym2w4d3/libavformat.so.53 -O /usr/lib64/libavformat.so.53 && wget https://www.dropbox.com/s/77fbqev1e9e137a/libavutil.so.51 -O /usr/lib64/libavutil.so.51 && ldconfig
# Download latest and last version 0.9
# You can see here for more about this package: https://github.com/olejon/spotcommander/wiki/DowngradeSpotify#64-bit
wget https://www.dropbox.com/s/hx9t83iz0hjaqe0/spotify-client-0.9.17.deb
# Convert deb package to rpm package
alien -rc spotify-client-0.9.17.deb
# Install rpm package
rpm -i --nodeps --force spotify-client-0.9.17-0.9.17.9-2.x86_64.rpm
# Log out
# Log in
# Spotify should now be in the Applicatons menu
# END GUIDE
@dawidbeno
Copy link

Worked!!!

@cryptoquick
Copy link

this guide rocks!

@sarsanaee
Copy link

👍

@burmanh
Copy link

burmanh commented Jul 7, 2016

Almost there for F24 too, did need
$ sudo dnf copr enable red/libgcrypt.so.11
$ sudo dnf install compat-libgcrypt
as well...

@fiercebrake
Copy link

So is it good for Fedora 24?

@Alvarz
Copy link

Alvarz commented Jul 27, 2016

It worked but I cannot log in with facebook, it just open a firefox window (?)

@TheDiemer
Copy link

Ended up having to use this to get the last piece of the puzzle but once I used that I was able to launch it just fine!

@flashimxd
Copy link

Works! tks! I was looking for it!

@GerkinDev
Copy link

This is amazing, thank you

@Tassiotabm
Copy link

Helped a lot! Thanks!

@solutions2016
Copy link

Worked ! Fedora 24.

@NaitYoussef
Copy link

Thank you, Worked for me Fedora 24 !

@Tuxaura
Copy link

Tuxaura commented Nov 29, 2016

It's work for me too Fedora 25!

@asmelian
Copy link

asmelian commented Dec 3, 2016

works for fedora 25! Thanks

@jonasol
Copy link

jonasol commented Jan 4, 2017

Works for Fedora 25, great job! Been trying to get spotify working on Fedora 24 & 25 but alot of bad repos, this one did the job.

@monotok
Copy link

monotok commented Jan 13, 2017

Works on Fedora 25 but after it started I realised it was an older version so downloaded latest from http://repository-origin.spotify.com/pool/non-free/s/spotify-client/ and converted using alien, installed the rpm again. Started and worked perfectly. Thanks

Copy link

ghost commented Jan 14, 2017

Funciona a la perfeccion ! muchisimas gracias. Genial trabajo.
Works for Fedora 25
Saludos !

@olejon
Copy link
Author

olejon commented Feb 8, 2017

@monotok Yes, this is meant for use with SpotCommander. I am sure others would like to see your complete process for Spotify version 1.0. You can create a Gist and paste the URL here.

@aelkz
Copy link

aelkz commented May 22, 2017

Needed to install compat-libgcrypt too.
First, download: https://copr-be.cloud.fedoraproject.org/results/sgallagh/chrome-compat-libgcrypt/fedora-26-x86_64/
then # dnf install ./compat-libgcrypt-1.5.3-2.fc21.2.x86_64.rpm

@olejon
Copy link
Author

olejon commented Jun 9, 2017

@aelkz So the answer to this question is not doing that? Users above have said it works one Fedora 25, but maybe it does not on Fedora 26? It seems you are running it.

The answer is what I have in my guide.

@djx2unv
Copy link

djx2unv commented Sep 29, 2017

Worked out again =) Thank you!

@acesso
Copy link

acesso commented Mar 9, 2018

@olejon
Copy link
Author

olejon commented Jan 3, 2019

@acesso @TheDiemer @aelkz @burmanh

  • Some modifications done
  • No more not-working copr repos for specific Fedora versions - it only needs libgcrypt.so.11 anyway, extracted latest from Ubuntu 14.04 LTS Updates Repository (since Ubuntu does not ship it on later versions either like Fedora)
  • Local Files support with one command, extracted the 3 necessary files from spotify-ffmpeg rpm package here
  • Added URL to sources of libraries for those paranoids
  • The deb package has been re-packaged to work perfectly, see here for details which also makes alien now convert the postinst and prerm scripts perfectly, so no need for extra commands to add the icons and to the applications menu
  • Tested and works on Fedora 29 64-bit with GNOME

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment