How To Install polybar on Fedora 34

polybar is Fast and easy-to-use status bar

Introduction

In this tutorial we learn how to install polybar on Fedora 34.

What is polybar

Polybar aims to help users build beautiful and highly customizable status bars for their desktop environment, without the need of having a black belt in shell scripting.

We can use yum or dnf to install polybar on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install polybar.

Install polybar 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 polybar using dnf by running the following command:

sudo dnf -y install polybar

Install polybar 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 polybar using yum by running the following command:

sudo yum -y install polybar

How To Uninstall polybar on Fedora 34

To uninstall only the polybar package we can use the following command:

sudo dnf remove polybar

polybar Package Contents on Fedora 34

/usr/bin/polybar
/usr/bin/polybar-msg
/usr/lib/.build-id
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/77d41c8aef5e87189b1b8608e882360c6cf427
/usr/lib/.build-id/46
/usr/lib/.build-id/46/2b2366d49c638c8a4e431f358e8d0c22d7b582
/usr/share/bash-completion/completions/polybar
/usr/share/doc/polybar
/usr/share/doc/polybar/README.md
/usr/share/doc/polybar/SUPPORT.md
/usr/share/doc/polybar/config
/usr/share/licenses/polybar
/usr/share/licenses/polybar/LICENSE
/usr/share/man/man1/polybar.1.gz
/usr/share/zsh
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_polybar
/usr/share/zsh/site-functions/_polybar_msg
/usr/bin/polybar
/usr/bin/polybar-msg
/usr/lib/.build-id
/usr/lib/.build-id/5e
/usr/lib/.build-id/5e/5fe4e60caa9c5535022d66f0fd02c0473f00ee
/usr/lib/.build-id/b4
/usr/lib/.build-id/b4/0b548bfc83aff648485ec66cc921142b89393b
/usr/share/bash-completion/completions/polybar
/usr/share/doc/polybar
/usr/share/doc/polybar/README.md
/usr/share/doc/polybar/SUPPORT.md
/usr/share/doc/polybar/config
/usr/share/licenses/polybar
/usr/share/licenses/polybar/LICENSE
/usr/share/man/man1/polybar.1.gz
/usr/share/zsh
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_polybar
/usr/share/zsh/site-functions/_polybar_msg

References

Summary

In this tutorial we learn how to install polybar on Fedora 34 using yum and dnf.