Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a ZIP file (created by Info-ZIP on Linux) and I want to make it as small as possible. I have lots of CPU time to burn on the recompression. I already know advzip, and it managed to reduce the size of my ZIP file by 5%. Is there another tool I should try? I would prefer free tools.


migration rejected from Jan 10 '15 at 21:43

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by DavidPostill, Nifle, random Jan 10 '15 at 21:43

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you're trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question." – DavidPostill, Nifle, random
If this question can be reworded to fit the rules in the help center, please edit the question.

7zip also can repack zips in more effective way – osgx Jun 22 '11 at 12:35
it seems from the linked page that advzip uses 7zip's implementation of deflate. – Dan D. Jun 22 '11 at 12:39
How do I use 7-zip to do that? 7zr a -mx=9 -tzip ../ * says Unsupported archive type. Using GUI tools is not acceptable in my situation. – pts Jun 22 '11 at 12:45
You want better compression? Don't use zip. Use a different compression method. – afrazier Jun 30 '11 at 15:27
Then the answers you have are about as good as you'll get. 7-zip has some advanced tunable options, but I think kzip is your best net overall. – afrazier Jul 13 '11 at 23:18

I use this batch script on the folder I want to archive:

kzip ! /r ****.****
deflopt /a/b/d/r !
advzip -z -4 !
defluff <! >!
deflopt /a/b/d/r !
deflopt /a/b/d/r !

Now choose which file is smaller - ! or ! In some rare situations the mixing of resulted arhives might give a smaller file (few bytes).

Also the final compressed optimised kzip archive might be mixed (use zipmix) with a 7zip archive (after deflopt+advzip+deflopt). Settings for 7zip I use:

  • fileformat: ZIP
  • compression level: Ultra
  • compression method: deflate
  • dictionary size: 64 kb
  • word size: 258



There is also KZIP, the Linux version is available from here.


Try this tool I wrote called Leanify.

It will not only recompress zip file but also try to optimize supported files inside zip.

You should disclose that you are or are not the author of Leanify. – suspectus Jan 10 '15 at 9:33
@suspectus thanks, edited. – JayXon Jan 11 '15 at 4:47

Not the answer you're looking for? Browse other questions tagged .