Tuesday, September 20, 2011

Unzip file failure on HP-UX

If there is a  problem unzip file on HP-UX eg. unzip_hp32 utility provided by Oracle to unzip Oracle product zip files. Try using java "jar" to unzip the file and it works.
Credit to http://www.unix.com/hp-ux/35001-how-unzip-zip-file-unix-without-using-unzip-cmd.html

abc1234-root>./unzip_hpx32 p10098816_112020_HPUX-IA64_3of7.zip        
Archive:  p10098816_112020_HPUX-IA64_3of7.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of p10098816_112020_HPUX-IA64_3of7.zip or
        p10098816_112020_HPUX-IA64_3of7.zip.zip, and cannot find p10098816_112020_HPUX-IA64_3of7.zip.ZIP, period.



abc1234-root>/opt/java6/bin/jar xvf p10098816_112020_HPUX-IA64_3of7.zip
.....
.....
inflated: database/stage/productlanguages.properties
 inflated: database/readme.html
abc1234-root>/

No comments:

Post a Comment