Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

migrated from stackoverflow.com Jun 23 '11 at 0:52

This question came from our site for professional and enthusiast programmers.

3  
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 ../m7.zip * 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
1  
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
show 1 more comment

3 Answers

up vote 1 down vote accepted

7zr is a light version, which should only deal with 7z format. (according to man pages, like this , I'm not with 7zr now to test it)

Try using the 7z instead of 7zr and see if it works.

share|improve this answer
add comment

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

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

Now choose which file is smaller - !archive.zip or !archive2.zip. 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

Sources:

share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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