Create a .zip file that can be opened by PKZIP 2.50 with 7-zip

4

I need to create a .zip file that can be unzipped by a very old version of PKZIP - version 2.50. I am currently using 7-zip to try this, but I can use a different zip program so long as it has a CLI.

Using 7-zip's default settings to create a ZIP file, PKZIP 2.50 gives the error "PKZIP: (W3) Warning! requires PKZIP version 78.8 to extract: filename.ext"

Using a newer version of PKZIP is not an option.

I believe that the switch I want is the -m switch, but I've tried variations on this and none lead to a file PKZIP can deal with, for example the following:

7z a -mx=9 -mm=Deflate '/path/to/file.zip' '/path/to/file'

What command should I be running to create a backwards-compatible zip file?

ArgumentBargument

Posted 2015-02-04T15:27:03.817

Reputation: 541

Can you give us an example of the command line you're currently attempting to use? – Ƭᴇcʜιᴇ007 – 2015-02-04T15:38:00.140

Added it to the question – ArgumentBargument – 2015-02-04T15:44:01.213

Why not just use PKZip 2.5 to create the zip? Guaranteed compatibility. :) – Ƭᴇcʜιᴇ007 – 2015-02-04T15:49:59.177

1I was hoping to put together something a bit more portable - the script will hopefully be running on Linux where the old PKZIP .exe won't run without mucking around in WINE or similar. Also, part of me cringes at re-deploying software last updated in 1998. – ArgumentBargument – 2015-02-04T15:54:51.993

Since 7-Zip can create TAR, would that be an easier, native, format for Linux? – DrMoishe Pippik – 2015-02-04T18:19:06.440

Answers

1

Try to use infozip/unzip. This software support very good old zip formats and clarifying OP answer:

# zip -v
Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license.
This is Zip 3.0 (July 5th 2008), by Info-ZIP.
Currently maintained by E. Gordon.  Please send bug reports to
the authors using the web page at www.info-zip.org; see README for details.

Romeo Ninov

Posted 2015-02-04T15:27:03.817

Reputation: 2 062

With your clarification I've added a +1 - I'm not going to accept an answer yet, in case anyone can shed any light on what exactly it is that Info-Zip does by default that 7z apparently doesn't, and whether that feature can be replicated in other zip programs. – ArgumentBargument – 2015-02-04T17:15:02.387

From what I know infozip keep working with original pkzip (from the time of DOS). And seems like 7-zip try to follow contemporary zip formats, used in pkzip now. As pkzip is not opensource 7-zip can support only public descriptions and documents – Romeo Ninov – 2015-02-04T17:24:13.043

0

It might not be totally portable, but I've just discovered that the default Linux zip program (tested in Mint 17.1) does create a .zip file that PKZIP 2.5 sees as valid. While I'd still like to know how to do this in a portable tool like 7-zip, this does solve the problem I have right now.

ArgumentBargument

Posted 2015-02-04T15:27:03.817

Reputation: 541

ArgumentBargument, have you check what is exactly linux zip utility. It is infozip. So I do not deserve these negative points: zip -v Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license. This is Zip 3.0 (July 5th 2008), by Info-ZIP. – Romeo Ninov – 2015-02-04T16:54:45.727

-2

I belive that using the Gzip command in 7zip will create a "zip" compatible archive, but I'm too lazy to test :o but I'm seldom wrong ;)

King

Posted 2015-02-04T15:27:03.817

Reputation: 1