How To Install bat on Fedora 36

In this tutorial we learn how to install bat in Fedora 36. bat is Cat(1) clone with wings

Introduction

In this tutorial we learn how to install bat on Fedora 36.

What is bat

Cat(1) clone with wings.

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

Install bat on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install bat using dnf by running the following command:

sudo dnf -y install bat

Install bat on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install bat using yum by running the following command:

sudo yum -y install bat

How To Uninstall bat on Fedora 36

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

sudo dnf remove bat

bat Package Contents on Fedora 36

/usr/bin/bat
/usr/lib/.build-id
/usr/lib/.build-id/31
/usr/lib/.build-id/31/ee588df22b0202e06020c17f12085f32113fe6
/usr/share/doc/bat
/usr/share/doc/bat/CHANGELOG.md
/usr/share/doc/bat/CONTRIBUTING.md
/usr/share/doc/bat/README.md
/usr/share/doc/bat/doc
/usr/share/doc/bat/doc/README-ja.md
/usr/share/doc/bat/doc/README-ko.md
/usr/share/doc/bat/doc/README-ru.md
/usr/share/doc/bat/doc/alternatives.md
/usr/share/doc/bat/doc/assets.md
/usr/share/doc/bat/doc/logo-header.svg
/usr/share/fish
/usr/share/fish/vendor_completions.d
/usr/share/fish/vendor_completions.d/bat.fish
/usr/share/licenses/bat
/usr/share/licenses/bat/LICENSE-APACHE
/usr/share/licenses/bat/LICENSE-MIT
/usr/share/man/man1/bat.1.gz

References

Summary

In this tutorial we learn how to install bat on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).