0

There is zip, and info-zip, correct? Am I missing something? In debian when I create a zip using -Z store, or the -0 option, on a folder with -r, it shows that zip version 1.0 is needed using the file tool. The archive type is stored. Zip version on debian is infozip v3.0, dependency is libbz2-1.0.

On an iPhone, I compress a file, and when I transfer it to a pc, and run file on it in a terminal it shows that version 2.0 is needed. Further information shows that the archive type is STORED. Not deflate, or compressed.

What am I missing.

1 Answer 1

1

There’s the ZIP file format, originally implemented in PKZIP, and there are many implementations of archivers using that format; Info-ZIP is one such implementation.

The file format stores version information indicating which version of PKZIP (originally) is required to extract each file in an archive. This version is specified by the tool used to create the archive; what you’re seeing shows that Info-ZIP indicates that stored (uncompressed) files can be extracted using version 1.0, whereas iOS’s implementation indicates that version 2.0 is required. That’s all there is to it.

As to why iOS does this, I don’t know, but it doesn’t make much difference — pretty much all ZIP decompressors since the early to mid nineties, and all of them nowadays, support version 2.0 archives.

1
  • Thank you Stephen Kitt. To further add, and answer my own question: Apple is using PKZIP v4.5+, with the Zip64 signature: ZIP64_SUPPORT enabled. Commented Mar 29 at 21:23

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.