zipinfo, unzip, zipgrep, Zipinfo, unzipsfx, Funzip Command not Found

zipinfo, unzip, zipgrep, Zipinfo, unzipsfx, Funzip Command not Found, No such file or directory – How to Install zipinfo, unzip, zipgrep, Zipinfo, unzipsfx, Funzip

 
I tried to list the contents of the archive and it shows error “zipinfo: command not found, zipinfo: No such file or directory”. Also all the below commands are not working on my server.
 

[root@server ~]# unzip file.zip
-bash: unzip: command not found
-bash: /usr/bin/unzip: No such file or directory

[root@server ~]# zipgrep stringname file.gz
-bash: zipgrep: command not found
-bash: /usr/bin/zipgrep: No such file or directory

[root@server ~]# zipinfo filename.zip
-bash: zipinfo: command not found
-bash: /usr/bin/zipinfo: No such file or directory

[root@server ~]# cat unzipsfx file.zip > file
-bash: unzipsfx: command not found
-bash: /usr/bin/unzipsfx: No such file or directory

[root@server ~]# funzip test.zip
-bash: funzip: command not found
-bash: /usr/bin/funzip: No such file or directory
[root@server ~]#

 
Do the below steps to install the required package and fix the above error. Use yum provides to find the package required for the above commands to work.

1. Log into Linux server via SSH as ‘root’ user

2. Check whether ‘unzip’ package is installed on your server

Yum provides shows ‘unzip’ package is required for the above commands to work. unzip, zipgrep, zipinfo, unzipsfx and funzip commands are provided by unzip package. Run the below command to check whether unzip package is installed on your linux server.

[root@server /]# rpm -qa | grep unzip
[root@server /]#

unzip is not installed on the above server and that is the reason why you are getting this error. If unzip command is installed then the above command will show the version on unzip package installed.

3. Install unzip package using yum.

Command to Install unzip package : “yum install unzip”
 

[root@server ~]# yum install unzip

Resolving Dependencies
–> Running transaction check
—> Package unzip.x86_64 0:6.0-4.10.amzn1 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================
Installing:
unzip x86_64 6.0-4.10.amzn1 amzn-main 201 k

Transaction Summary
========================================================================================================================================================================
Install 1 Package

Total download size: 201 k
Installed size: 349 k
Is this ok [y/d/N]: y
Downloading packages:
unzip-6.0-4.10.amzn1.x86_64.rpm | 201 kB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : unzip-6.0-4.10.amzn1.x86_64 1/1
Verifying : unzip-6.0-4.10.amzn1.x86_64 1/1

Installed:
unzip.x86_64 0:6.0-4.10.amzn1

Complete!
[root@server ~]#

 
Unzip package version 6.0-4 is installed on the server and the above commands should work.