zcat

I am trying to unzip the following file

gcc-bin.tar.gz

I have only zcat or uncompress to work with at the moment and not gunzip.

can i do this and if so what is my command instrsuction.

I tried the simple command:

zcat gcc-bin.tar.gz

This command failed.  The error reported is as follows:

No such file: gcc-bin.tar.gz.Z

what are my options?

regards
Peter

LVL 5
PeeweeAsked:
Who is Participating?
 
griesshConnect With a Mentor Commented:
Since you said you had problems installing gunzip, do you have access to a Windows PC? You should be able to unzip you file to create a tar file and then transfer it back to your SUN and untar it. (Sounds terrible, doesn't it, but it works ...)

======
Werner
0
 
interiotCommented:
If you have gzip, you can do

  gzip -d gcc-bin.tar.gz
0
 
PeeweeAuthor Commented:
interiot,
i donot hsve gzip installed..

any offers..
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
griesshCommented:
zcat is fine.

zcat gcc-bin.tar.gz > gcc-bin.tar
tar xvf gcc-bin.tar

zcat -s a gunzip -c, that means it will send to stdout (I guess your approach kill your teminal?)

======
Werner
0
 
marecsCommented:
It won't work. You need gunzip. zcat is probably a symlink to compress which uses a slightly different compression format than gzip. That is why it looks for a .Z extension. gunzip can unzip .Z files, but not vice versa.
0
 
griesshCommented:
Peewee said he has zcat, zcat is a binary and zcat works for *.gz compression!

======
Werner
0
 
PeeweeAuthor Commented:
chaps,
i tried the zcat commands and they don't work.  I think Marecs is right.

I've tried to install gunzip but it wont install, will post the errors here later..

regards
peewee
0
 
griesshCommented:
Peewee

What OS are you running on? I am on AIX and I am using zcat all the time, so just wondering what could go wrong. What does zcat complain about?

======
Werner
0
 
PeeweeAuthor Commented:
I,m runing solaris Sun OS 5.6 which i think equates to solaris 2.6.

the error mesage i get is:

No such file: gcc-bin.tar.gz.Z

it basically appends the .Z to the file name and hence cant find it.

regards
Peter
0
 
mrn060900Commented:
try renaming the file with a .Z at the end

Regards Mike
0
 
jahvaneCommented:
I would go to frresunware.com and download the latest version of gzip, it's best to go ahead and install it, you'll need it.

CA
0
 
jahvaneCommented:
oops...its sunfreeware.com if u are using solaris plattform
0
 
PeeweeAuthor Commented:
yept thats my only option or get a newer copy of solaris.

many thanks
peewee
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.