Web Hosting Talk







View Full Version : How to unzip .zip files through shell?


kreativ
08-13-2002, 04:06 PM
Is there a command in SSH to be able to decompress zip files? (CPanel, if that matters). I tried "unzip" and get a "command not found".

Azooz
08-13-2002, 04:32 PM
it's mostly TAR files, I'v never heard of zip on the command line except on DOS.

JTY
08-13-2002, 04:33 PM
well, you could install infozip's unzip command. Or, ask your host to install unzip.

kreativ
08-13-2002, 04:44 PM
Would I be able to install an unzip command, script (or anything else that will do unzipping) for myself w/o root permission?

AL-Benjamin
08-13-2002, 04:45 PM
ask your server admin to install the zip module on the server. then you can just go unzip file.bla

GlideTech
08-13-2002, 04:46 PM
Have you tried "whereis unzip" ? It may be installed, but not within your path.

kreativ
08-13-2002, 06:27 PM
Originally posted by GlideTech
Have you tried "whereis unzip" ? It may be installed, but not within your path.

There was no listing for unzip, but thanks for the tip on the "whereis" command. Might come in handy in the future.

AL-Benjamin
08-13-2002, 06:43 PM
the zip module is free by the way. just tell them to use the module installer in whm. its listed in there.

really. its a three second job.

chrisb
08-14-2002, 01:38 AM
You can also install Archive::Zip in your own directories. However, I think you also need Compress::Zlib, and you may end up needing many other modules not installed, so this could be a real pain.

It'd probably be easier to install Infozip into a local directory.

The easiest and best way of course is to get your host to install Infozip if they will.

shaunewing
08-14-2002, 10:37 AM
Just get the unzip for Linux source (I forget the location - Google should reveal something). Compile it with 'make' but don't do 'make install'.

Put the 'unzip' binary in some place convenient (eg: your home directory) - you can get rid of the other stuff. Then, when you need to extract a zip file just do something like ~/unzip file.zip

--Shaun