Advertisement

Can gzip open Windows .zip files?

Started by August 29, 2005 06:49 PM
11 comments, last by kdogg 19 years, 4 months ago
Simple answer: Yes. I used it several times. 'gunzip -S zip filename.zip' should do the trick.
Quote: Original post by j0seph
Simple answer: Yes. I used it several times. 'gunzip -S zip filename.zip' should do the trick.


From the gunzip man-page:
Quote:
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.
Advertisement
Will winzip not gzip files? I swear i've extracted them in win xp before. of course, i wouldn't be shocked to see windows doesn't ship with the ability to extract files compressed in an open source format.

This topic is closed to new replies.

Advertisement