How To Install playerctl on Fedora 34
Introduction
In this tutorial we learn how to install playerctl
on Fedora 34.
What is playerctl
Playerctl is a command-line utility and library for controlling media players that implement the MPRIS D-Bus Interface Specification. Playerctl makes it easy to bind player actions, such as play and pause, to media keys. You can also get metadata about the playing track such as the artist and title for integration into statusline generators or other command-line tools. For more advanced users, Playerctl provides an introspectable library available in your favorite scripting language that allows more detailed control like the ability to subscribe to media player events or get metadata such as artist and title for the playing track. Examples of players implementing the MPRIS D-Bus Interface Specification include spotify, vlc, audacious, bmp, cmus, and others. playerctl 2.3.1 2.fc34 x86_64 44 k playerctl-2.3.1-2.fc34.src.rpm fedora Command-line MPRIS-compatible Media Player Controller https LGPLv3+ Playerctl is a command-line utility and library for controlling media players that implement the MPRIS D-Bus Interface Specification. Playerctl makes it easy to bind player actions, such as play and pause, to media keys. You can also get metadata about the playing track such as the artist and title for integration into statusline generators or other command-line tools. For more advanced users, Playerctl provides an introspectable library available in your favorite scripting language that allows more detailed control like the ability to subscribe to media player events or get metadata such as artist and title for the playing track. Examples of players implementing the MPRIS D-Bus Interface Specification include spotify, vlc, audacious, bmp, cmus, and others.
We can use yum
or dnf
to install playerctl
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install playerctl.
Install playerctl on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install playerctl
using dnf
by running the following command:
sudo dnf -y install playerctl
Install playerctl on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install playerctl
using yum
by running the following command:
sudo yum -y install playerctl
How To Uninstall playerctl on Fedora 34
To uninstall only the playerctl
package we can use the following command:
sudo dnf remove playerctl
playerctl Package Contents on Fedora 34
/usr/bin/playerctl
/usr/bin/playerctld
/usr/lib/.build-id
/usr/lib/.build-id/39
/usr/lib/.build-id/39/8af7957acd457004ef579e5c9df7c39f43d92a
/usr/lib/.build-id/ec
/usr/lib/.build-id/ec/b315ff72fd0e58b994a1bbe3fb878ee1c1a3b4
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/playerctl.bash
/usr/share/dbus-1/services/org.mpris.MediaPlayer2.playerctld.service
/usr/share/licenses/playerctl
/usr/share/licenses/playerctl/COPYING
/usr/share/man/man1/playerctl.1.gz
/usr/share/zsh
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_playerctl
/usr/bin/playerctl
/usr/bin/playerctld
/usr/lib/.build-id
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/1dc0cc933995a64fefa2549b263cf579d8a160
/usr/lib/.build-id/90
/usr/lib/.build-id/90/56aa9e7c578ba23fe438fe07f026e6e238c39a
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/playerctl.bash
/usr/share/dbus-1/services/org.mpris.MediaPlayer2.playerctld.service
/usr/share/licenses/playerctl
/usr/share/licenses/playerctl/COPYING
/usr/share/man/man1/playerctl.1.gz
/usr/share/zsh
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_playerctl
References
- [playerctl website](https://github.com/acrisci/playerctl https://github.com/acrisci/playerctl)
Summary
In this tutorial we learn how to install playerctl
on Fedora 34 using yum and dnf.