How To Install libzip on Rocky Linux 8

In this tutorial we learn how to install libzip on Rocky Linux 8. libzip is C library for reading, creating, and modifying zip archives

Introduction

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

What is libzip

libzip is a C library for reading, creating, and modifying zip archives. Files can be added from data buffers, files, or compressed data copied directly from other zip archives. Changes made without closing the archive can be reverted. The API is documented by man pages.

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

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

sudo dnf -y install libzip

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

sudo yum -y install libzip

How To Uninstall libzip on Rocky Linux 8

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

sudo dnf remove libzip

libzip Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/b9
/usr/lib/.build-id/b9/10342e2904c88f4c63c9668efae6832741c889
/usr/lib64/libzip.so.5
/usr/lib64/libzip.so.5.0
/usr/share/licenses/libzip
/usr/share/licenses/libzip/LICENSE

References

Summary

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