Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have two files, one I produced with zip 2.3.1 and the other I produced with zip 3.0. Both are a zip of the same directory. Here are the two files and their sizes:

1.7G from-2.3.1.zip  
1.7G from-3.0.zip

My plan is to transition my system to the new zip, so that I can potentially created larger zip files, like up to 3 gb or so.

However, my concern is that when I unzip these files, with a slightly older version of unzip, I get errors when I try to unzip the zip created with zip 3.0.

$ unzip -t from-2.3.1.zip > /dev/null  # NO Errors
$ unzip -t from-3.0.zip > /dev/null
warning [from-3.0.zip]:  76 extra bytes at beginning or within zipfile
  (attempting to process anyway)
error [from-3.0.zip]:  reported length of central directory is
  -76 bytes too long (Atari STZip zipfile?  J.H.Holm ZIPSPLIT 1.1
  zipfile?).  Compensating...
error:  expected central file header signature not found (file #67358).
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)
$ 

The reason I am concerned, is that it seems like if I move to zip 3.0, I will be forcing my downstream users to all upgrade to a newer version of unzip, since unzip 6.0, for example, unzips both these files without error.

This anomaly doesn't occur in all cases, so I am unsure of it's full extent.

Any suggestions? Did I somehow incorrectly build zip 3.0?

Thanks.

share|improve this question

closed as too localized by voretaq7 Dec 4 '12 at 17:37

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
This is really a question for the vendor of your zip software. If they've broken backward compatibility they're the ones who can tell you what steps (if any) can be taken to restore it... –  voretaq7 Dec 4 '12 at 17:37

1 Answer 1

up vote 4 down vote accepted

The difference is the Zip64 file format, which was introduced in order to be able to compress larger files. Older utilities (such as Windows XP's File Explorer) don't understand it.

As far as Linux goes, Debian Stable included unzip 6.0 since at least its 2011 release (the changelog says zip 3.0a was released in 2004 and unzip 6.00 was released in 2009) so my personal opinion is that if you're "forcing" your users to upgrade, you're doing them a favor.

share|improve this answer
    
Thanks. I notice that my Mac Air, acquired within the past couple of months, has unzip 5.5.2 on it, so I would guess that this earlier version of unzip is still somewhat common. But I appreciate your response. –  Ted Gilchrist Dec 4 '12 at 16:25

Not the answer you're looking for? Browse other questions tagged or ask your own question.