Operating System - HP-UX
1819706 Members
3208 Online
109605 Solutions
New Discussion юеВ

How to extract a .zip file on unix?

 
SOLVED
Go to solution
Ankit Grover
Frequent Advisor

How to extract a .zip file on unix?

I have put an Oracle patch p4163445_92070_HPUX-IA64.zip on my Unix Server. But I am not able to uncompress it.
I tried gunzip & uncompress. Is there some where I can extract the contents?
The file size is around 900 MB.
14 REPLIES 14
IT_2007
Honored Contributor

Re: How to extract a .zip file on unix?

If you have gxip product installed then you can simply run

gunzip ABC.gz
Ivan Ferreira
Honored Contributor

Re: How to extract a .zip file on unix?

You need the unzip command.

http://hpux.ee.ualberta.ca/hppd/hpux/Misc/unzip-5.52/
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Pete Randall
Outstanding Contributor

Re: How to extract a .zip file on unix?

Did you try unzip?


Pete

Pete
Ankit Grover
Frequent Advisor

Re: How to extract a .zip file on unix?

I have tried all three:
#gunzip p4163445_92070_HPUX-IA64.zip
gunzip: p4163445_92070_HPUX-IA64.zip: unknown suffix -- ignored
#uncompress p4163445_92070_HPUX-IA64.zip
p4163445_92070_HPUX-IA64.zip.Z: No such file or directory
#unzip p4163445_92070_HPUX-IA64.zip
ksh: unzip: not found
Yang Qin_1
Honored Contributor

Re: How to extract a .zip file on unix?

Hi,

If you really want to unzip it on Unix machine, you have to download a third party software like unzip-5.52 (http://www.info-zip.org/pub/infozip/UnZip.html). Otherwise, download it to your PC unzip it here and upload it back to your Unix machine.

Regards,
Yang
Ankit Grover
Frequent Advisor

Re: How to extract a .zip file on unix?

The problem with extracting it on my Windows Machine is that its a pretty huge file and it took almost full day for uploading it from my local machine to remote Unix Server. I want to avoid re-upload.
Arunvijai_4
Honored Contributor

Re: How to extract a .zip file on unix?

Hi,

You can always use "jar" utility.

# /opt/java1.4/bin/jar -xvf

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
IT_2007
Honored Contributor

Re: How to extract a .zip file on unix?

you don't have unzip installed. You need to download unzip software and install it on HP UNIX server.
Yogeeraj_1
Honored Contributor
Solution

Re: How to extract a .zip file on unix?

hi ankrit!

You must use unzip software to unzip the Oracle Patch.


You may wish to verify the current Oracle Home if there exist a version of unzip software already


e.g. $ORACLE_HOME/bin/unzip



hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Henk Geurts
Esteemed Contributor

Re: How to extract a .zip file on unix?

you can also use pkzip to extract .zip files.
it can be downloaded at:
http://mirrors.develooper.com/hpux/downloads.html

regards.
Henk
spex
Honored Contributor

Re: How to extract a .zip file on unix?

Arunvijai,

That jar trick is a good one.

PCS
DCE
Honored Contributor

Re: How to extract a .zip file on unix?



Either unzip is not installed on your system, or it is not in your path.

To find out if it is installed you can do a search of the system
find / -name unzip

If it is not installed, you download and install it it from the HP-UX porting site (no cost)

http://gatekeep.cs.utah.edu/hppd/cgi-bin/search?package=on&description=on&term=unzip
Ankit Grover
Frequent Advisor

Re: How to extract a .zip file on unix?

hi Yogeeraj!
Thanks a lot.

The solution $ORACLE_HOME/bin/unzip worked
Ankit Grover
Frequent Advisor

Re: How to extract a .zip file on unix?

Thanks a lot everyone.

#$ORACLE_HOME/bin/unzip