delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/20/17:17:04

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:date:from:mime-version:to:subject
:references:in-reply-to:content-type; q=dns; s=default; b=IFBMc+
zUBqk+Kc+SAvn7d0baT/CWCW2JnglTmauwzjZBcsuaDf3Yhqabp7b8juqHO0LsTN
GtjM0kx1l2koeLsFAWMQFjU6hmWhCj8zE7x3go9ImhTKVjhRBxwgOsKA6ODuBXjh
hB9o2xEBreDiKdaguvGsUAQPXKH8MHljHVENo=
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:date:from:mime-version:to:subject
:references:in-reply-to:content-type; s=default; bh=l+y/o1EByJdZ
KVacHwtLoTbLsr4=; b=rdwlCGi/x4nYLsCbgwuDs3OXSsuJyFzm3qa2i2qH8XOO
Ez2E8frnJ2b6nJgI0+tzRy+lFfEi3rLHy/rX+2Y6c8AUdMID6GC3/Va+SUpBNPb6
f8Ie0lKVyAuQjk7KcFU82M7VG+JOf+xAywjFvNemhV/ot6sCSHwNXijBqvmUbVs=
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_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: mx1.redhat.com
Message-ID: <55356CBB.9030601@redhat.com>
Date: Mon, 20 Apr 2015 15:16:43 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: tar zxvf won't work with Redhat generated compressed tar file
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>
In-Reply-To: <COL130-W65B445CB84F1010DEEDA6EC2E00@phx.gbl>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-IsSubscribed: yes

--GNjgF7x3i3QPkgX6b9f1BMPj4UcnTMTHN
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 04/20/2015 03:08 PM, Murthy Gandikota wrote:

>>
>>> $ tar xvf mytar.gz
>>> tar: This does not look like a tar archive
>>> tar: Skipping to next header
>>> tar: Exiting with failure status due to previous errors
>>
>> Then what makes you think it is actually a tar archive?
>> What
>>
>> gunzip> mytar < mytar.gz; file mytar
>>
>> says?
>>

> Sorry, didn't notice the top-posting.... here is the  output to the comma=
nd
>=20
> mytar: gzip compressed data, last modified: Tue Mar 24 03:50:58 2015, fro=
m Unix

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).

--=20
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--GNjgF7x3i3QPkgX6b9f1BMPj4UcnTMTHN
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJVNWy7AAoJEKeha0olJ0NqRZoIAKN66QOiYCl4ynkCC404ADLo
toUSnmy2ie67eGrvuWI3qJjmnse+k6EbujrE3AETYj5eh2CoAlW3wo1FMucOO1bn
AdRPyQmI8Uh8Sg1XIs9+nroVdqezVjDMCwzUC7tEE7bdZkH+xAXAzCcR5++LILcl
Pv5yrn9xEZnHISuRnPLXV04UmWHp5DUkH2ueOKSD5gw+RNrkSd2P20L+pMdVEyuq
aIb5OGM3HCJFC2pTCTxPaz+5Md38vs11Xmx3e5KCo3rBmqVP9ucg2AjVlO6W6aLH
7rRJ2ItV28XDcse9WqKNMdNSOjUp2AeLLSirjAp25+6KBpbGoFW4AZWLakR6VkI=
=HdQ1
-----END PGP SIGNATURE-----

--GNjgF7x3i3QPkgX6b9f1BMPj4UcnTMTHN--

- Raw text -


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