7z recompress

tho
2010-01-30
2013-05-28
  • tho
    tho
    2010-01-30

    Hi,
    i want to recompress the files in a 7z archive, with a higher method. How can i do this?

    -si -so seems not to be that what i want because i get only one file(the stream?) inside the new archive.

    thank you

     
  • my p7zip
    my p7zip
    2010-01-31

    I think you need to extract all files and then compress.

    mkdir TMP
    cd TMP

    7za x ../firstArchive.7z

    7za a -mx=9 ../secondArchive.7z  .

    (warning : I did not test this procedure …)

     
  • tho
    tho
    2010-01-31

    Hehe yes i know this proedure.

    But, I compressed the file under win and now iam working an other machine with linux, so that when i extract some files they could not write to disk or at least the extraction failed for these files. So I want to avoid these by using pipes.

    Iam using ubuntu x64 and 7z 9.04

     
  • tho
    tho
    2010-02-01

    I discoverd the problem. It is the fileroller per cmdline all works fine. :-)

    But I have an additional Question:

    How(Which cmdline) can I compress data to an 7z archive. While using lzma2 and bcj2 automatically?

    Thanks again

     
  • lilyvv
    lilyvv
    2010-12-01

    you can select the type 7z by :
    7z a -t7z -m0=lzma2 a.7z folder or filename