Operating System - HP-UX
1748185 Members
4234 Online
108759 Solutions
New Discussion юеВ

Re: unzip a zip file without "unzip" command

 
shashi kanth
Super Advisor

Re: unzip a zip file without "unzip" command

> [...] i can install unzip by downloading
> from some place and install manually [...]

>So why don't you do that? How hard do you
>wish to make what should be an easy job? <<<


Steven,

I was installing some software in HP-UX, that software usually takes 3-4 hours, the software is in HP-UX package format (depots), so "swinstall" is busy for 3-4 hours.

In the mean time, i have couple of zip file which i want to unzip. I have not yet installed unzip*depot in the system, and i can't install unzip*depot until the software installation which i initiated before is completed.

So i was trying to get some help from this forum, that, is there any other utility which is equivalent of "GNU/unzip" in HP-UX which can understand the "GNU/unzip" used compression algorithm.

Thanks.

shashi kanth
Super Advisor

Re: unzip a zip file without "unzip" command

Thanks.
Steven Schweda
Honored Contributor

Re: unzip a zip file without "unzip" command

> [...] i can't install unzip*depot [...]

You don't _need_ to install UnZip from a
depot using swinstall.

http://www.info-zip.org/
http://www.info-zip.org/UnZip.html
ftp://ftp.info-zip.org/pub/infozip/
ftp://ftp.info-zip.org/pub/infozip/src/
ftp://ftp.info-zip.org/pub/infozip/src/unzip552.tgz

This should all be in the documentation:

mkdir unzip552
cd unzip552
gzip -dc ../unzip552.tgz | tar xf -
make -f unix/Makefile generic
./unzip -v

Then go wild.
Steven Schweda
Honored Contributor

Re: unzip a zip file without "unzip" command

And, for the record, "GNU/unzip" is gzip,
gunzip, gzcat (.gz). Info-ZIP UnZip is unzip
(.zip).

http://www.gzip.org/
Matti_Kurkela
Honored Contributor

Re: unzip a zip file without "unzip" command

A tip: if the system has a Java Development Kit installed, it should have the "jar" binary.
Look for /opt/java*/bin/jar.

The .jar archive format is compatible with .zip.

The command syntax of "jar" is the same as with the "tar" command.

To unzip a .zip file using jar:

jar xf file.zip

To view the list of contents:

jar tf file.zip

Note: if you use "jar" to create a .zip file, the jar command will auto-generate one extra file inside the .zip file, named META-INF/MANIFEST.MF. This is usually harmless, as the file will usually be empty or very small.

MK
MK
shashi kanth
Super Advisor

Re: unzip a zip file without "unzip" command

Thank you very much for this hint.