delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/20/15:35:27

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=D31VHLELV19UOsyy
DQh0RNq0tb9Sw4KOL0NPRbQjmnj0swzXv9zImnxQ05ErTV0Uhrs++iJcY+UvaAr3
7YJI6MRNy2J+zsSkm2XSCc3ozrKo68wx48yzg7tdVCkSdbEttBx25EjSr7NF6uuw
+palkupvlj+aSl3zeuNWjzkH80I=
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=eKJrCLNMDYAb2Nwh0ZbofW
8DGlE=; b=sru24U5RKnwjdsQaRfgA2lR/0JhmSyVLsMkMm2rECIzGbVsFgCk3EN
r1i6rvnpjCubk7cRhd4BonYO9eVqxTFxuJrwwX9WN2+iR3vp4g0K7p6RcIYoG2lp
2RYOKfuwBiLdtVl8thLniG+msZvEL/bOdVsOA7pyGmC1O1ZcRNQ70=
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,MIME_BASE64_BLANKS,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtp.ht-systems.ru
Date: Mon, 20 Apr 2015 22:26:09 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <969800560.20150420222609@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-W80F61D41DBC766A5C40206C2E00@phx.gbl>
References: <COL130-W80F61D41DBC766A5C40206C2E00 AT phx DOT gbl>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id t3KJZLJf032327

Greetings, Murthy Gandikota!

> Hi All

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


-- 
With best regards,
Andrey Repin
Monday, April 20, 2015 22:23:58

Sorry for my terrible english...

- Raw text -


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