How to install zip in ubuntu?

Posted January 12, 2017 174.6k views
VPNUbuntu 16.04

I’m having this request error in the ubuntu script install
ZIP Required ZIP extension for backuping data Not installed

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
7 answers

If you only need zip and not a zip extension for a particular language (like PHP) this will do the trick:

apt-get update
apt-get install zip unzip

If you are running a PHP application and require the zip extension you can run:

apt-get update
apt-get install php7.0-zip 

it worked for me… thank you @ryanpq

You may prefer using :

apt-get install zip unzip -qy

to have a quiet -q and more important -y to force Yes when being ask:

After this operation, 1,117 kB of additional disk space will be used.
Do you want to continue? [Y/n]

adding a [solved] tag to make it easier for other to find this fix.

Hello, all

If you need zip/unzip you can use the following command:

sudo apt-get update
sudo apt-get install zip unzip

If you want to install it for PHP 7.4 as well use:

sudo apt-get update
sudo apt-get install php7.4-zip

Hope that this helps!