How To Install unzip on CentOS 7

In this tutorial we learn how to install unzip on CentOS 7. unzip is A utility for unpacking zip files

Introduction

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

What is unzip

The unzip utility is used to list, test, or extract files from a zip archive. Zip archives are commonly found on MS-DOS systems. The zip utility, included in the zip package, creates zip archives. Zip and unzip are both compatible with archives created by PKWARE(R)’s PKZIP for MS-DOS, but the programs’ options and default behaviors do differ in some respects. Install the unzip package if you need to list, test or extract files from a zip archive.

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

Install unzip on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install unzip

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

sudo dnf -y install unzip

How To Uninstall unzip on CentOS 7

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

sudo dnf remove unzip

References

Summary

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