This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: tar zxvf won't work with Redhat generated compressed tar file
- From: Murthy Gandikota <murthy64 at hotmail dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Mon, 20 Apr 2015 21:08:21 +0000
- Subject: RE: tar zxvf won't work with Redhat generated compressed tar file
- Authentication-results: sourceware.org; auth=none
- 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>
----------------------------------------
> Date: Mon, 20 Apr 2015 23:50:36 +0300
> From: anrdaemon@yandex.ru
> To: murthy64@hotmail.com; cygwin@cygwin.com
> Subject: Re: tar zxvf won't work with Redhat generated compressed tar file
>
> 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
Sorry, didn't notice the top-posting.... here is the output to the command
mytar: gzip compressed data, last modified: Tue Mar 24 03:50:58 2015, from Unix
Thanks
--
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