How To Install perl-Archive-Zip on CentOS 7

In this tutorial we learn how to install perl-Archive-Zip on CentOS 7. perl-Archive-Zip is Perl library for accessing Zip archives

Introduction

In this tutorial we learn how to install perl-Archive-Zip on CentOS 7.

What is perl-Archive-Zip

The Archive manipulate, read, and write Zip archive files. Zip archives can be created, or you can read from existing zip files. Once created, they can be written to files, streams, or strings. Members can be added, removed, extracted, replaced, rearranged, and enumerated. They can also be renamed or have their dates, comments, or other attributes queried or modified. Their data can be compressed or uncompressed as needed. Members can be created from members in existing Zip files, or from existing directories, files, or strings.

We can use yum or dnf to install perl-Archive-Zip on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Archive-Zip.

Install perl-Archive-Zip on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install perl-Archive-Zip using yum by running the following command:

sudo yum -y install perl-Archive-Zip

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

sudo dnf -y install perl-Archive-Zip

How To Uninstall perl-Archive-Zip on CentOS 7

To uninstall only the perl-Archive-Zip package we can use the following command:

sudo dnf remove perl-Archive-Zip

References

Summary

In this tutorial we learn how to install perl-Archive-Zip on CentOS 7 using yum and dnf.