Operating System - HP-UX
1752580 Members
3262 Online
108788 Solutions
New Discussion

Re: Installation of unzip 5.52 on HP-Ux 11.31

 
Shinji Teragaito_1
Respected Contributor

Re: Installation of unzip 5.52 on HP-Ux 11.31

You don't install the unzip command. You can use the jar command as follows:

% /opt/java6/bin/jar xvf basic-11.1.0.7.0-hpux-ia64.zip
Steven Schweda
Honored Contributor

Re: Installation of unzip 5.52 on HP-Ux 11.31

> You don't install the unzip command.

Perhaps _you_ don't.

> You can use the jar command as follows:
> [...]

dyi # /opt/java6/bin/jar
bash: /opt/java6/bin/jar: No such file or directory

But even if you've installed the optional
Java software, there may still be reasons
to use a real UnZip program. Large files,
for example:

dyi # time unzip6 -l /opt/ziptest/vms732x8.img.zip
Archive: /opt/ziptest/vms732x8.img.zip
Length Date Time Name
--------- ---------- ----- ----
5199986688 08-20-2009 09:31 vms732x8.img
--------- -------
5199986688 1 file

real 0m0.074s
user 0m0.000s
sys 0m0.000s


dyi # time /opt/java6/bin/jar -tvf /opt/ziptest/vms732x8.img.zip
java.util.zip.ZipException: invalid entry size (expected 4294967295 but got 9050
19392 bytes)
at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:376)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:148)
at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:92)
at sun.tools.jar.Main.list(Main.java:897)
at sun.tools.jar.Main.run(Main.java:216)
at sun.tools.jar.Main.main(Main.java:1056)

real 2m35.347s
user 2m30.170s
sys 0m2.940s


In some cases "jar" can do the job, but it
can't always replace a real UnZip program.