How To Install bzip2 on Rocky Linux 8

In this tutorial we learn how to install bzip2 on Rocky Linux 8. bzip2 is A file compression utility

Introduction

In this tutorial we learn how to install bzip2 on Rocky Linux 8.

What is bzip2

Bzip2 is a freely available, patent-free, high quality data compressor. Bzip2 compresses files to within 10 to 15 percent of the capabilities of the best techniques available. However, bzip2 has the added benefit of being approximately two times faster at compression and six times faster at decompression than those techniques. Bzip2 is not the fastest compression utility, but it does strike a balance between speed and compression capability. Install bzip2 if you need a compression utility.

We can use yum or dnf to install bzip2 on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install bzip2.

Install bzip2 on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install bzip2

Install bzip2 on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install bzip2

How To Uninstall bzip2 on Rocky Linux 8

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

sudo dnf remove bzip2

bzip2 Package Contents on Rocky Linux 8

/usr/bin/bunzip2
/usr/bin/bzcat
/usr/bin/bzcmp
/usr/bin/bzdiff
/usr/bin/bzegrep
/usr/bin/bzfgrep
/usr/bin/bzgrep
/usr/bin/bzip2
/usr/bin/bzip2recover
/usr/bin/bzless
/usr/bin/bzmore
/usr/lib/.build-id
/usr/lib/.build-id/ac
/usr/lib/.build-id/ac/aee634e4fa0f8c9fad3cb47c24e48139957519
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/a5a9a5961cecc6286db7aa6b2fdfa8c1cb625f
/usr/share/doc/bzip2
/usr/share/doc/bzip2/CHANGES
/usr/share/doc/bzip2/LICENSE
/usr/share/doc/bzip2/README
/usr/share/licenses/bzip2
/usr/share/licenses/bzip2/LICENSE
/usr/share/man/man1/bunzip2.1.gz
/usr/share/man/man1/bzcat.1.gz
/usr/share/man/man1/bzcmp.1.gz
/usr/share/man/man1/bzdiff.1.gz
/usr/share/man/man1/bzegrep.1.gz
/usr/share/man/man1/bzfgrep.1.gz
/usr/share/man/man1/bzgrep.1.gz
/usr/share/man/man1/bzip2.1.gz
/usr/share/man/man1/bzip2recover.1.gz
/usr/share/man/man1/bzless.1.gz
/usr/share/man/man1/bzmore.1.gz

References

Summary

In this tutorial we learn how to install bzip2 on Rocky Linux 8 using yum and dnf.