How To Install libzip on CentOS 7

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

Introduction

In this tutorial we learn how to install libzip on CentOS 7.

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

Install libzip on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install libzip

Install libzip on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install libzip

How To Uninstall libzip on CentOS 7

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

sudo dnf remove libzip

References

Summary

In this tutorial we learn how to install libzip on CentOS 7 using yum and dnf.