How to Install Zip and Unzip in Linux? (original) (raw)

Last Updated : 6 Oct, 2021

Zip is a command-line compression utility for files and directories. File and folder compression allows for quicker and more reliable file and folder transfer, storage, and email. Unzip, on the other hand, is a program that allows you to decompress files and directories.

Installing Zip:

You can install Zip by running the below command:

$ sudo apt-get install zip

How to Install Zip and Unzip in Linux

Installing Zip

After installation, use the command to verify that the zip was installed correctly or not.

$ zip

How to Install Zip and Unzip in Linux

Verify Zip installed properly

Installing Unzip:

Similarly, you can install Unzip by running the below command:

$ sudo apt install unzip

How to Install Zip and Unzip in Linux

Installing Unzip

After installation, use the command to verify the unzip was installed correctly or not.

$ unzip

Verify Unzip installed properly

The zip and unzip utilities are already pre-installed in newer Linux distros like Ubuntu 20.04 and CentOS 8, so you're good to go.