How To Install zip on Rocky Linux 8

In this tutorial we learn how to install zip on Rocky Linux 8. zip is A file compression and packaging utility compatible with PKZIP

Introduction

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

What is zip

The zip program is a compression and file packaging utility. Zip is analogous to a combination of the UNIX tar and compress commands and is compatible with PKZIP (a compression and file packaging utility for MS-DOS systems). Install the zip package if you need to compress files using the zip program.

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

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

sudo dnf -y install zip

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

sudo yum -y install zip

How To Uninstall zip on Rocky Linux 8

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

sudo dnf remove zip

zip Package Contents on Rocky Linux 8

/usr/bin/zip
/usr/bin/zipcloak
/usr/bin/zipnote
/usr/bin/zipsplit
/usr/lib/.build-id
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/4100d983513d422de529b0ca9bfaa7e9d0320f
/usr/lib/.build-id/24
/usr/lib/.build-id/24/d3a0f54f01babe41577fdba43c7bdbe5c2da2e
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/281161eaac87679a1047d8d9f62de523cca0f5
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/3695e3440005f4c6be45631583b8ebb4b25f40
/usr/share/doc/zip
/usr/share/doc/zip/CHANGES
/usr/share/doc/zip/README
/usr/share/doc/zip/README.CR
/usr/share/doc/zip/TODO
/usr/share/doc/zip/WHATSNEW
/usr/share/doc/zip/WHERE
/usr/share/doc/zip/algorith.txt
/usr/share/licenses/zip
/usr/share/licenses/zip/LICENSE
/usr/share/man/man1/zip.1.gz
/usr/share/man/man1/zipcloak.1.gz
/usr/share/man/man1/zipnote.1.gz
/usr/share/man/man1/zipsplit.1.gz

References

Summary

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