[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] Re: tar -tvf myarchive.zip --gunzip does not work
From: |
Nathan Stratton Treadway |
Subject: |
[Bug-tar] Re: tar -tvf myarchive.zip --gunzip does not work |
Date: |
Fri, 12 Sep 2008 11:41:09 -0400 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Fri, Sep 12, 2008 at 09:47:14 +0530, suman wrote:
> I created the myarchive.zip using a zip utility, directly zipped; no tar is
> used here.
>
> Now I want to use tar to unzip it. When I run above command, it ends up with
> following error:
> -------------------
> gzip: stdin has more than one entry--rest ignored
> tar: Child returned status 2
> tar: Error exit delayed from previous errors
> --------------------
> is it not allowed to list/unzip files using tar when the compression is done
> by zip? Or I need to use some other options. The Manual says with -gunzip,
> tar browse the files with gunzip for any operations like -t, -x etc.
> Even commands like following fails:
> --------------------
> tar -tvf myarchive.zip -z --gunzip
> --------------------
When you use "--gunzip", that simply causes tar to pass the input file
to "gzip" before processing it. (You can see that the first line of the
error messages you quote is coming from "gzip" and not from "tar".)
The gzip man includes the following explanation:
Files created by zip can be uncompressed by gzip only if they have a
single member compressed with the 'deflation' method. This feature is
only intended to help conversion of tar.zip files to the tar.gz format.
To extract a zip file with a single member, use a command like gunzip
<foo.zip or gunzip -S .zip foo.zip. To extract zip files with several
members, use unzip instead of gunzip.
Nathan
----------------------------------------------------------------------------
Nathan Stratton Treadway - address@hidden - Mid-Atlantic region
Ray Ontko & Co. - Software consulting services - http://www.ontko.com/
GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt ID: 1023D/ECFB6239
Key fingerprint = 6AD8 485E 20B9 5C71 231C 0C32 15F3 ADCD ECFB 6239
signature.asc
Description: Digital signature