Menu

Does using ultraq compression permanatly change any zip file contents?

kltpzyxmrm
2018-05-01
2018-05-19
  • kltpzyxmrm

    kltpzyxmrm - 2018-05-01

    I know this sounds like a dumb question, but if I use the 7z extension with ultra compression, will the unzipped files be identical to their pre-zipped state?

     
  • mdadm

    mdadm - 2018-05-03

    Yes, that is the idea of any packing/compress program like 7-Zip. You may use any extension (for example 7z, zip, xz, etc.), any level of compression, and any method of compression (LZMA, PPMd, Deflate, etc.) and compress and then uncompress file(s) should be the same as orginal file(s). If they are not - the program is buggy and you shouldn't use it. Why you just don't test this?

    And remember:
    - 7z, zip, rar can compress many files with directories
    - gz, bz2, xz can compress only one file (for more files or directories you have to do one tar that will store the hierarchy of this files and directories and next compress by for example xz that tar file so extension will be tar.xz).

     
  • kltpzyxmrm

    kltpzyxmrm - 2018-05-18

    Thanks mdadm

     

Log in to post a comment.