Link to home
Start Free TrialLog in
Avatar of praefectus
praefectus

asked on

Zip and Unzip

How do I tell if I have a zip / unzip program installed?  I have tried to install one, and it has installed (I have NO idea where it installed it) -- is there an easy way to tell?

I have JBoss zipped -- what command to I run to unzip it?  simply? unzip jboss.... .zip?  I always get errors when I do this... ugh.

Any suggestions would be HIGHLY helpful.
Avatar of praefectus
praefectus

ASKER

When I type "unzip zipefile.zip -- I get : unzip: Command not found

Suggestions?
Hi there,

You can download unzip and lots of other handy utilities from http://www.openbsd.org

For example, the x386 files for OpenBSD version 2.7 are located here:

http://www.openbsd.org/2.7_packages/i386.html

What architecture and OS version are you using?

Regards, Nisus
http://www.omnimodo.com
In general when you want to find out what commands you have you use the -locate- command.  In order to make sure your locate database is up to date you enter, as root, the command

/usr/libexec/locate.updatedb

and the disk will whir and thrash, updating this database (that is the thrashing you hear if your cron jobs work as they should, every day at the same time).  

So if you type

locate zip | less

you should get a long list of every file to which you have read permission that contains the string 'zip'.  

In order to tell what packages or ports you have installed you use the command pkg_info with no modifiers.  You will get a list of all the packages (including ports) you have installed.

HTH
Hi -  Assuming that you are using OpenBSD, then if you used the "packages" system to install these programmes the executables would normally have been placed in /usr/local/bin.  If you can see them in there but they don't get recognised at the shell prompt, then check your $PATH includes this directory.

The other thing you can try is doing a "pkg_info" - this will list all packages you have installed.

If you are still having problems, re-install the package.  you can do this with the following commands: "pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/3.2/packages/i386/unzip-5.50.tgz" and "pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/3.2/packages.i386/zip-2.3.tgz" (replacing the "3.2" with your OS version, in each case!).
ASKER CERTIFIED SOLUTION
Avatar of bcouldrey
bcouldrey

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial