unzip is needed by zip

unzip is needed by zip

I got the below error while installing zip package on my CentOS server.

error: Failed dependencies:
unzip is needed by zip-3.0-23.el8.x86_64

Do the below steps to install unzip dependency on your centOS server.

1. Log into your CentOS server as ‘root’ user

2 Run the command ‘yum install unzip’ to install unzip package

3. Try installing the zip rpm after installing unzip package

# yum install unzip
# rpm -Uvh zip-3.0-23.el8.x86_64.rpm


How to install unzip rpm on your CentOS server

1. Log into your CentOS server as ‘root’ user

2. Download unzip rpm file from CentOS website using wget command

3. Install unzip package using rpm command

On CentOS 8 server :

cd /usr/local/src

wget http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/unzip-6.0-43.el8.x86_64.rpm

rpm -Uvh unzip-6.0-43.el8.x86_64.rpm

On CentOS 7 server :

cd /usr/local/src

wget http://mirror.centos.org/centos/7/os/x86_64/Packages/unzip-6.0-21.el7.x86_64.rpm

rpm -Uvh unzip-6.0-21.el7.x86_64.rpm

On CentOS 6 server :

cd /usr/local/src

wget http://mirror.centos.org/centos/6/os/x86_64/Packages/unzip-6.0-5.el6.x86_64.rpm

rpm -Uvh unzip-6.0-5.el6.x86_64.rpm