How To Install zlib on Fedora 34

zlib is Compression and decompression library Compression and decompression library

Introduction

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

What is zlib

Zlib is a general-purpose, patent-free, lossless data compression library which is used by many different programs. zlib 1.2.11 26.fc34 i686 94 k zlib-1.2.11-26.fc34.src.rpm fedora Compression and decompression library https zlib and Boost Zlib is a general-purpose, patent-free, lossless data compression library which is used by many different programs.

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

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

sudo dnf -y install zlib

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

sudo yum -y install zlib

How To Uninstall zlib on Fedora 34

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

sudo dnf remove zlib

zlib Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/eb78966ea120c548463446f9c4ef56600e815f
/usr/lib64/libz.so.1
/usr/lib64/libz.so.1.2.11
/usr/share/doc/zlib
/usr/share/doc/zlib/ChangeLog
/usr/share/doc/zlib/FAQ
/usr/share/licenses/zlib
/usr/share/licenses/zlib/README
/usr/lib/.build-id
/usr/lib/.build-id/db
/usr/lib/.build-id/db/eed0a4648b75a09d697768d72d2d95ecebeae9
/usr/lib/libz.so.1
/usr/lib/libz.so.1.2.11
/usr/share/doc/zlib
/usr/share/doc/zlib/ChangeLog
/usr/share/doc/zlib/FAQ
/usr/share/licenses/zlib
/usr/share/licenses/zlib/README

References

Summary

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