delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/20/19:53:01

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:from:to:subject:date:in-reply-to
:references:content-type:content-transfer-encoding:mime-version;
q=dns; s=default; b=ydB2b1yYycRQmUHHAiIWvjZqyLn8qP+jsamLDBSLVVc
bpv/ph8zf+Nh2PdUr2i5PmvCG7x0V4EdtSS60393jE4CRkaQOg5NfBEh2DKXrhv+
TC2929G1ieQmA95b9wEbA5v9NkSdHWhPYUgS8OoulEUSn+v+yw0JOHDvotlqwTFU
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:from:to:subject:date:in-reply-to
:references:content-type:content-transfer-encoding:mime-version;
s=default; bh=dCXvzJ7EkIm/iEbppwd6gas9PPo=; b=Mybi3BoEO6OrB2cMY
3QyBfOvcdsWOtG1Fi63IpnD5XZQjDef5uw/9ttgvc/isqFz/paydMpH7FlxoRgkm
DTjeOWj5izmBsRbY6GrCcIxQK7bIoYnfDs1km3z8i4Xx5qMmJGkRcQyArIejNCSB
TSq9Zu5k9WE5PF45DYwoIbvdhQ=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.0 required=5.0 tests=AWL,BAYES_50,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2
X-HELO: COL004-OMC4S15.hotmail.com
X-TMN: [uTu/BigL7foSWJtr2WjODQvxat0Dblni]
Message-ID: <COL130-W5408BCA60B3B132BC66AA3C2E00@phx.gbl>
From: Murthy Gandikota <murthy64 AT hotmail DOT com>
To: Gary Johnson <garyjohn AT spocom DOT com>,
"cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: tar zxvf won't work with Redhat generated compressed tar file
Date: Mon, 20 Apr 2015 23:52:42 +0000
In-Reply-To: <20150420233848.GB5293@phoenix>
References: <COL130-W80F61D41DBC766A5C40206C2E00 AT phx DOT gbl> <969800560 DOT 20150420222609 AT yandex DOT ru> <COL130-W78804B6BA04135A92CC2FAC2E00 AT phx DOT gbl> <509379965 DOT 20150420235036 AT yandex DOT ru> <COL130-W65B445CB84F1010DEEDA6EC2E00 AT phx DOT gbl> <55356CBB DOT 9030601 AT redhat DOT com> <COL130-W530B6F57CC449D3CD22F44C2E00 AT phx DOT gbl> <COL130-W103DBAFD945896AC6F7E51C2E00 AT phx DOT gbl>,<20150420233848 DOT GB5293 AT phoenix>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t3KNqwTH030857


----------------------------------------
> Date: Mon, 20 Apr 2015 16:38:49 -0700
> From: garyjohn AT spocom DOT com
> To: cygwin AT cygwin DOT com
> Subject: Re: tar zxvf won't work with Redhat generated compressed tar file
>
> On 2015-04-20, Murthy Gandikota wrote:
>
>>>> Then it looks like you have a DOUBLE-compressed file. That is, someone
>>>> took a .tar.gz file, and ran THAT through gzip again (which seldom does
>>>> anything except make a LARGER file - because the first round of
>>>> compression removed any redundancy). Tar cannot read a
>>>> double-compressed stream, but breaking things into two steps lets you
>>>> get back to a single compressed stream, where the tar call then
>>>> auto-decompresses because you weren't supplying an explicit 'z' the
>>>> second time around. To prove it, try:
>>>>
>>>> gunzip <mytar.gz>mytar
>>>> tar zxvf mytar
>>>>
>>>> and if it still untars with an explicit decompression, then you have
>>>> proven that your original file was double-compressed. Also, if I'm
>>>> right about double compression, then mytar.gz would likely be slightly
>>>> larger than mytar (rather than the usual case of the .gz being
>>>> noticeably smaller).
>>>>
>>>> --
>>>> Eric Blake eblake redhat com +1-919-301-3266
>>>> Libvirt virtualization library http://libvirt.org
>>>>
>>>
>>> Yes, Sir. It did untar properly. So the problem is with the
>>> server compressing during the download (I get the file from a
>>> http server)?
>>> Thanks a lot for your help
>
>> It would be doubly nice if cygwin handled it ;-) It seems gunzip
>> had no problem recognizing the file as double compressed.
>> Thanks all for the help.
>
> I think you misunderstand. Gunzip decompresses once. As Eric
> wrote, tar recognizes compressed files and will decompress them
> automatically even without specifying a compression flag such as
> 'z'. The second decompression is done by tar, not by gunzip.
>
> Regards,
> Gary
>

Got it! Thanks a ton.

> --
> Problem reports: http://cygwin.com/problems.html
> FAQ: http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
>
 		 	   		  
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019