Monday, 14 May 2018

How to install zip/unzip package in Linux Centos 7



Zip is a compression and file packaging utility which is available for Linux, UNIX, Windows and various Operating systems. This article will describe, how to install zip/unzip packages in Linux Centos 7.
Run the following command to check zip and unzip utility is installed or not:

[root@linuxcnf ~]# rpm -q zip unzip
package zip is not installed
package unzip is not installed
[root@linuxcnf ~]#

If you find it is not installed in system then install with following command:

[root@linuxcnf ~]# yum install zip unzip
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
.......
Installed:
  unzip.x86_64 0:6.0-16.el7                                                     
  zip.x86_64 0:3.0-11.el7

Complete!
[root@linuxcnf ~]#

Use the following commands to verify the installation:

[root@linuxcnf ~]# rpm -q zip unzip
zip-3.0-11.el7.x86_64
unzip-6.0-16.el7.x86_64
[root@linuxcnf ~]# which zip unzip
/bin/zip
/bin/unzip
[root@linuxcnf ~]#

Zip/unzip installed on the system and zip command available to zip a directory!!!

No comments:

Post a comment