Menu

How to set PPMd method when compress to zip from command line

mdadm
2018-10-14
2018-10-14
  • mdadm

    mdadm - 2018-10-14

    I want to create zip archive with PPMd compression method from command line because I noticed it has best ratio when compressing plain text files, but I get error about wrong argument (or something like that):

    System ERROR:
    E_INVALIDARG

    I try that commands:
    7z a -tzip -m=ppmd file.7z file
    7z a -tzip -m0=ppmd file.7z file
    7z a -tzip -m1=ppmd file.7z file
    ...
    7z a -tzip -m9=ppmd file.7z file

    but when changed archive type it worked:
    7z a -t7z -m9=ppmd file.7z file
    7z a -t7z -m9=ppmd file.zip file
    7z a -t7z -m9=ppmd file.xz file

    Is PPMd in zip format not supported from command line 7z? I remember that I could do that from 7-zip file manager.

    I use last version of p7zip (16.02) in linux.

    By the way: is any difference between:
    7z a -t7z -m0=ppmd file.7z file
    and
    7z a -t7z -m9=ppmd file.7z file
    ?

    So my question is: how to set PPMd method (or any other then default deflate) when compress to zip from command line?

     
  • Igor Pavlov

    Igor Pavlov - 2018-10-14
    -mm=ppmd
    
     
  • mdadm

    mdadm - 2018-10-14

    Thanks Igor, it worked!

     

Log in to post a comment.