How to install Zip package Ubuntu 21.04 server

How to install Zip package Ubuntu 21.04 server

 

Zip command is used to create Zip archives on Linux servers. It will compress and reduce the file size.

Install zip package – Ubuntu 21.04 server.

1. Log into your Ubuntu server via SSH as sudo or root user

2. Run the command ‘apt update’ to update the package information

3. Install zip on the server using apt

4. Enter ‘y’ if apt ask for confirmation while installing zip
 

root@ubuntu-21:/# apt install zip
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
unzip
The following NEW packages will be installed:
unzip zip
0 upgraded, 2 newly installed, 0 to remove and 86 not upgraded.
Need to get 330 kB of archives.
After this operation, 1048 kB of additional disk space will be used.
Do you want to continue? [Y/n] y

Preparing to unpack …/archives/zip_3.0-12_amd64.deb …
Unpacking zip (3.0-12) …
Setting up unzip (6.0-26ubuntu1) …
Setting up zip (3.0-12) …

 

How to install zip package on Ubuntu 21.04 server

How to install zip package on Ubuntu 21.04 server


 

How to download and install zip.deb from Ubuntu website

Follow to below steps to download and install zip deb package from archive.ubuntu.com website using wget command.

1. Log into your Ubuntu server via SSH as sudo or root user

2. Download zip deb package from ubuntu.com website

3. Use dpkg or apt command to install the downloaded file

4. Run ‘zip -v’ to verify the installation
 

# wget http://archive.ubuntu.com/ubuntu/pool/main/z/zip/zip_3.0-12_amd64.deb

# apt install ./zip_3.0-12_amd64.deb

zip -v
This is Zip 3.0 (July 5th 2008), by Info-ZIP.