How To Install bzip2 on Fedora 34

bzip2 is A file compression utility

Introduction

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

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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install bzip2.

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

sudo dnf -y install bzip2

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

sudo yum -y install bzip2

How To Uninstall bzip2 on Fedora 34

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

sudo dnf remove bzip2

bzip2 Package Contents on Fedora 34

/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/19
/usr/lib/.build-id/19/8fd24095437f6dedb43a44b741981d9e04c085
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/b8aefb969684625cec86bf5fd7d8136ac54974
/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 Fedora 34 using yum and dnf.