Question

sudo: unzip: command not found

I’m moving wordpress (cpanel) to the server, it allowed me to enter the database but moemnto of the wp-content extarer I get this error

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello, all

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

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

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

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

Hope that this helps! Regards, Alex

  1. To install zip unzip package in your server - sudo apt-get install zip unzip
  2. Now you can upload the zip into your target destination folder by FTP like Filezilla or command prompt.
  3. Login to Putty and write command cd /var/www/html/other_dir/your_zip_location
  4. sudo unzip yourzipfile.zip

You are done. Hope it helps.

sudo apt-get install unzip sudo: apt-get: command not found