Gunzip a file in UNIX

hi All,

i have a file called rsync-3.0.9.tar.gz, i have to unzip and then uncompress it. but at first while i am trying to unzip this file, it is giving me following error:

-rw-r--r-- 1 bravodba bravodba 7278458 Aug 19 08:26 rsync-3.0.9.tar.gz
bash-3.2$ unzip rsync-3.0.9.tar.gz
Archive: rsync-3.0.9.tar.gz
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 rsync-3.0.9.tar.gz or
rsync-3.0.9.tar.gz.zip, and cannot find rsync-3.0.9.tar.gz.ZIP, period.

please suggest how to deal with it.

You should use "gunzip" as you even specified in the thread subject:

gunzip rsync-3.0.9.tar.gz

used it, but getting some error:

bash-3.2$ gunzip rsync-3.0.9.tar.gz

gzip: rsync-3.0.9.tar.gz: invalid compressed data--format violated

What does this show:

file rsync-3.0.9.tar.gz

it says this error:

-bash-3.2$ file rsync-3.0.9.tar.gz
rsync-3.0.9.tar.gz:     gzip compressed data - deflate method , original file name

I suspect it means what it says, the file is invalid.

Try

tar -xvzf rsync-3.0.9.tar.gz 

Let us know how it goes. If it doesn't work, please specify your OS/version. Good luck, though ;).

here is the output of tar and the os version:

SunOS, ok.
Then try

tar xvf rsync-3.0.9.tar.gz

(Do NOT add the hyphen "-" nor the z option, which seem to not be available in SunOS)
Note that this will untar and uncompress your file in your current directory. If you want to perform the same operation but save the results in a different directory, you should do:

tar xvf rsync-3.0.9.tar.gz -C /full/path/to/your/directory
-bash-3.2$ tar xvf rsync-3.0.9.tar.gz
tar: directory checksum error

it also has some error.

gunzip -c rsync-3.0.9.tar.gz | tar xvf -

Or

gunzip <rsync-3.0.9.tar.gz | tar xvf -

http://www.gzip.org/recover.txt

Based on this error, I'd say your tarball is corrupted or wasn't properly downloaded (maybe there was a network glitch when you were downloading it). I am not very familiar with Solaris myself, but if you're trying to install rsync, I'd suggest you look into another way of doing it (some kind of repos, maybe? Excuse my ignorance as to the package management system Solaris uses).