How To Install unzip on CentOS 8
Introduction
In this tutorial we learn how to install unzip
on CentOS 8.
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 8. In this tutorial we discuss both methods but you only need to choose one of method to install unzip.
Install unzip on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install unzip
using dnf
by running the following command:
sudo dnf -y install unzip
Install unzip on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install unzip
using yum
by running the following command:
sudo yum -y install unzip
How To Uninstall unzip on CentOS 8
To uninstall only the unzip
package we can use the following command:
sudo dnf remove unzip
unzip Package Contents on CentOS 8
/usr/bin/funzip
/usr/bin/unzip
/usr/bin/unzipsfx
/usr/bin/zipgrep
/usr/bin/zipinfo
/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/92d4efe706546c816c7bc5bc0e188d5c28ef26
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/ac767034c61083c4f2d98516b6411a17e5a041
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/6f71cd3263a281593b0b795a2545d84ee47351
/usr/lib/.build-id/6e/6f71cd3263a281593b0b795a2545d84ee47351.1
/usr/share/doc/unzip
/usr/share/doc/unzip/BUGS
/usr/share/doc/unzip/README
/usr/share/licenses/unzip
/usr/share/licenses/unzip/COPYING.OLD
/usr/share/licenses/unzip/LICENSE
/usr/share/man/man1/funzip.1.gz
/usr/share/man/man1/unzip.1.gz
/usr/share/man/man1/unzipsfx.1.gz
/usr/share/man/man1/zipgrep.1.gz
/usr/share/man/man1/zipinfo.1.gz
/usr/bin/funzip
/usr/bin/unzip
/usr/bin/unzipsfx
/usr/bin/zipgrep
/usr/bin/zipinfo
/usr/lib/.build-id
/usr/lib/.build-id/03
/usr/lib/.build-id/03/d9ee0c483317f51a63bb5810c234d38e5fae1e
/usr/lib/.build-id/03/d9ee0c483317f51a63bb5810c234d38e5fae1e.1
/usr/lib/.build-id/4d
/usr/lib/.build-id/4d/2d0968fc48864f85f830e4f996578bf70d6bc3
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/ff7f99f732f061aedbfe1e488536ee7491aa93
/usr/share/doc/unzip
/usr/share/doc/unzip/BUGS
/usr/share/doc/unzip/README
/usr/share/licenses/unzip
/usr/share/licenses/unzip/COPYING.OLD
/usr/share/licenses/unzip/LICENSE
/usr/share/man/man1/funzip.1.gz
/usr/share/man/man1/unzip.1.gz
/usr/share/man/man1/unzipsfx.1.gz
/usr/share/man/man1/zipgrep.1.gz
/usr/share/man/man1/zipinfo.1.gz
References
Summary
In this tutorial we learn how to install unzip
on CentOS 8 using yum and dnf.