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

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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=ORhzpQoDkPoXpPCE
3mrRZF9DAwCNxkPEoOP36O2jysl9GDu9zEKSfP4kmJwqIpWxd68Ef2B2PMr0K/K1
RgQkeSsigffzKMLMuUdUFNBOtBvDv5rtAGyFLmPcKgkykmw9/d8DTxJv3XHRSGQK
cJMeM3fzAi2IWccrsF/ueV7WfO8=
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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=on0x70msEJQzWQMOYRpxIF
TnCyk=; b=aihIBAsAiRPaiUm3Yh9byuGt5xCEBsg39c1XLNAytY6RvHIyI9Qdhi
rnvOwrs6FwMUoZVobuvaPQ/8dXqaagDGlvUctkCzcMtaW+5DNZwCGs3QAqty4tgj
E6Xrq7feT/k1ejEss9JE9Hiqd8GTXbisnwGuezsoz6+B0wKoDPmB8=
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=-3.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtp.ht-systems.ru
Date: Mon, 20 Apr 2015 23:50:36 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <509379965.20150420235036@yandex.ru>
To: Murthy Gandikota <murthy64 AT hotmail DOT com>, cygwin AT cygwin DOT com
Subject: Re: tar zxvf won't work with Redhat generated compressed tar file
In-Reply-To: <COL130-W78804B6BA04135A92CC2FAC2E00@phx.gbl>
References: <COL130-W80F61D41DBC766A5C40206C2E00 AT phx DOT gbl>,<969800560 DOT 20150420222609 AT yandex DOT ru> <COL130-W78804B6BA04135A92CC2FAC2E00 AT phx DOT gbl>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, Murthy Gandikota!

Please don't top-post. Thank you.
And please no cleartext emails in quoted text.

>>> I am using Cygwin64. I am getting a file from RedHat in tar + zip format.
>>> Currently I am able to unzip it and untar it in 2 steps as follows:
>>
>>> $gunzip mytar.gz
>>> $tar xvf mytar
>>
>>> However, I would like to do the following:
>>
>>> $tar -zxvf mytar.gz
>>
>>> The error message I see is:
>>
>>> tar: This does not look like a tar archive
>>> tar: Skipping to next header
>>> tar: Exiting with failure status due to previous errors
>>
>>
>>> Can someone please tell me what is the right way?
>>
>> tar xvf mytar.gz
>>
>> I.e. drop filter spec.
>> tar is smart enough to detect and apply known filters automatically.


> I see same error

> $ 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?


-- 
With best regards,
Andrey Repin
Monday, April 20, 2015 23:47:50

Sorry for my terrible english...


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