tar zxvf won't work with Redhat generated compressed tar file
Bertrand Caplet
bertrand.caplet@chunkz.net
Mon Apr 20 19:18:00 GMT 2015
> I have an old CentOS system, so I copied an existing gzipped tarball from it to my Cygwin and had no difficulties exploding that file. It had extension '.tgz'. Copied it to '.tar.gz' and still had no issue with it.
>
> What version of RedHat are you using, and what command(s) created the compressed tarball you're having difficulty with?
>
> If you run the 'file' command on the tarball file, what does 'file' say it contains?
>
> rake-0.8.4.tar.gz: gzip compressed data, last modified: Wed Mar 4 07:31:25 2009, from Unix
>
> Note that some flavors of tar don't have a very powerful compression library, and some don't have one at all. For those old ones you may be forced to use gunzip to get the tarball into a form the old tar understands. (My ancient CentOS box has it, though.)
I agree with you Joi. Tar relies on content of file not extension.
Murthy, tell us what file yourfile.tar.gz does say ?
--
CHUNKZ.NET - script kiddie and computer technician
Bertrand Caplet, Flers (FR)
Feel free to send encrypted/signed messages
Key ID: 37F70C30
GPG FP: 134A 4027 518B 5F4D D409 558D BA9B 7BF0 37F7 0C30
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150420/25dbea88/attachment.sig>
More information about the Cygwin
mailing list