How to install zip on CentOS 8 server

How to install zip on CentOS 8 server

 

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

2. Run the command ‘yum install zip’ to install the zip package

3. Type ‘y’ and press enter if yum ask for confirmation while installing

 

[root@server/]# yum install zip
CentOS-8 – AppStream 2.4 MB/s | 5.8 MB 00:02
CentOS-8 – Base 1.3 MB/s | 2.2 MB 00:01
CentOS-8 – Extras 11 kB/s | 8.1 kB 00:00
Dependencies resolved.
===================================================================================================
Package Architecture Version Repository Size
===================================================================================================
Installing:
zip x86_64 3.0-23.el8 BaseOS 270 k
Installing dependencies:
unzip x86_64 6.0-43.el8 BaseOS 195 k

Transaction Summary
===================================================================================================
Install 2 Packages

Total download size: 465 k
Installed size: 1.2 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): unzip-6.0-43.el8.x86_64.rpm 1.1 MB/s | 195 kB 00:00
(2/2): zip-3.0-23.el8.x86_64.rpm 1.2 MB/s | 270 kB 00:00
—————————————————————————————————
Total 667 kB/s | 465 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : unzip-6.0-43.el8.x86_64 1/2
Installing : zip-3.0-23.el8.x86_64 2/2
Running scriptlet: zip-3.0-23.el8.x86_64 2/2
Verifying : unzip-6.0-43.el8.x86_64 1/2
Verifying : zip-3.0-23.el8.x86_64 2/2

Installed:
zip-3.0-23.el8.x86_64 unzip-6.0-43.el8.x86_64

Complete!

 
 

How to download and install zip rpm on CentOS 8 x86_64 server

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

2. Download zip package from centos website using wget command

3. Install ‘unzip’ dependency before installing the zip package

4. Run the command rpm -Uvh zip-version.x86_64.rpm to install zip

 
cd /usr/local/src

rpm -Uvh zip-3.0-23.el8.x86_64.rpm

wget http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/zip-3.0-23.el8.x86_64.rpm
 
 

[root@centOS8 src]# cd /usr/local/src/

[root@centOS8 src]# wget http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/zip-3.0-23.el8.x86_64.rpm
–2020-11-05 05:56:58– http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/zip-3.0-23.el8.x86_64.rpm

HTTP request sent, awaiting response… 200 OK
Length: 276792 (270K) [application/x-rpm]
Saving to: ‘zip-3.0-23.el8.x86_64.rpm.1’

zip-3.0-23.el8.x86_64.rp 100%[=================================>] 270.30K 5.94KB/s in 47s

2020-11-05 05:57:47 (5.71 KB/s) – ‘zip-3.0-23.el8.x86_64.rpm’ saved [276792/276792]

[root@centOS8 src]# yum install unzip

[root@centOS8 src]# rpm -Uvh zip-3.0-23.el8.x86_64.rpm