Install Spotify using Flatpak using Command Line
Gregg
If Flatpak is not installed, then install it:
$ sudo dnf install -y flatpak # Fedora$ sudo apt install flatpak # Ubuntu-based$ sudo zypper install flatpak # SUSE$ sudo pacman -S flatpak # Arch-based
Since flathub.org is the most popular flatpak repository we will use the command line to enable it:
$ flatpak remote-add --if-not-exists flathub \https://flathub.org/repo/flathub.flatpakrepo
Go to the Spotify page on Flathub and choose “Install”, or run the installation from the command line:
$ sudo flatpak install flathub com.spotify.Client