Operating System - HP-UX
1752584 Members
4443 Online
108788 Solutions
New Discussion юеВ

Re: how to extract a .gz file on HP-UX

 
ayanda_1
New Member

how to extract a .gz file on HP-UX

Hi , I have a file like
Managerhpux.tar.gz and I want to extract it on HP-UX , can someone help ,
Please !!

16 REPLIES 16
Michael Tully
Honored Contributor

Re: how to extract a .gz file on HP-UX

Your can 'gunzip' to uncompress the archive.

Change directory to where you archive is

# /usr/contrib/bin/gunzip ./Managerhpux.tar.gz
Anyone for a Mutiny ?
U.SivaKumar_2
Honored Contributor

Re: how to extract a .gz file on HP-UX

Hi,

#uncompress Managerhpux.tar.gz
#tar xvf Managerhpux.tar


regards,
U.SivaKumar
Innovations are made when conventions are broken
U.SivaKumar_2
Honored Contributor

Re: how to extract a .gz file on HP-UX

Hi,

#zcat Managerhpux.tar.gz | tar xvf -


regards,
U.SivaKumar
Innovations are made when conventions are broken
Michael Tully
Honored Contributor

Re: how to extract a .gz file on HP-UX

Missed something....

# /usr/contrib/bin/gunzip ./Managerhpux.tar.gz

Once the file has been un-zipped you can extract from the archive.

change directory to where you wish to extract.

# tar xvf /directoryname/Managerhpux.tar
Anyone for a Mutiny ?
Vincent Farrugia
Honored Contributor

Re: how to extract a .gz file on HP-UX

Hello,

Mr. SivaKumar, uncompress won't work, that works only for .Z files.

Vince
Tape Drives RULE!!!
Ravi_8
Honored Contributor

Re: how to extract a .gz file on HP-UX

Hi.

#gunzip Managerhpux.tar.gz
#tar xvf Managerhpux.tar

will get you the file
never give up
U.SivaKumar_2
Honored Contributor

Re: how to extract a .gz file on HP-UX

Hi,
Mr. Vincent thanks for correcting me.

regards,
U.SivaKumar
Innovations are made when conventions are broken
Bill McNAMARA_1
Honored Contributor

Re: how to extract a .gz file on HP-UX

of course if the file isn't really a gz none of the commands will work!

file file.tar.gz
to verify format.

# file /one.tar
/one.tar: tar file
# gzip /one.tar
# file /one.tar.gz
/one.tar.gz: awk program text

awk program text.. yikes..
of course that should say gz
It works for me (tm)
ayanda_1
New Member

Re: how to extract a .gz file on HP-UX

I have tried your suggestions but I have not been successful
these are the outputs , What may be the problem ?

# zcat eManager35hpux.tar.gz | tar xvf -
eManager35hpux.tar.gz.Z: No such file or directory
Tar: blocksize = 0; broken pipe?


# gunzip eManager35hpux.tar.gz

gunzip: eManager35hpux.tar.gz: invalid compressed data--format violated


# tar xvf eManager35hpux.tar.gz
directory checksum error

# uncompress eManager35hpux.tar.gz
eManager35hpux.tar.gz.Z: No such file or directory


# tar xvf eManager35hpux.tar
tar: cannot open eManager35hpux.tar

# tar xvf eManager35hpux.tar.gz
directory checksum error