1832181 Members
2915 Online
110038 Solutions
New Discussion

unzipping a .gz file

 
SOLVED
Go to solution
mike worrell
Regular Advisor

unzipping a .gz file

hi all,
I have file from a vendor, printer.pkg.gz
I have tried gunzip and uncompress and both say it's not in gunzip format.
Any other commands anyone knows about I can try.
Thanks,
Mike
8 REPLIES 8
Bill Hassell
Honored Contributor
Solution

Re: unzipping a .gz file

If you got the file using ftp, it was probably corrupted by the ASCII option. Connect to the server again and specify BINARY before getting the file.


Bill Hassell, sysadmin
Rick Garland
Honored Contributor

Re: unzipping a .gz file

'gzip -d ,filename.gz>'
'gzip -d print.pkg.gz'

The above command should work. If it doesn't then the file is corrupted in some way.
mike worrell
Regular Advisor

Re: unzipping a .gz file

HI Bill,
I got the same thing , did both ascii and binary .
gunzip: print-drivers-hpux11.pkg.gz: not in gzip format
V. Nyga
Honored Contributor

Re: unzipping a .gz file

Hi,

a 'file printer.pkg.gz' could tell you more.

So I also think that's a wrong file transfer, you could try tar or a winzip at a w$ pc.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
mike worrell
Regular Advisor

Re: unzipping a .gz file

here is what "file filename"
fifrux01 /u01/lexmark>file print-drivers-hpux11.pkg.gz
print-drivers-hpux11.pkg.gz: tar file
V. Nyga
Honored Contributor

Re: unzipping a .gz file

Hi,

so 'tar xvf ' should work!

You can check first with 'tar tvf '

regards
Volkmar
*** Say 'Thanks' with Kudos ***
mike worrell
Regular Advisor

Re: unzipping a .gz file

did a tar and it worked
melvyn burnard
Honored Contributor

Re: unzipping a .gz file

might be worth feeding that back to the 3rd party venodr, and get them to change the file name to filename.tar
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!