7za stripped down to pipeable compressor

Help
2004-11-06
2012-12-07
  • hi *,

    where can i find a stripped down version of 7za that can be used as a simple lzma-only compressor / decompressor?

    e.g.

    tar cvf foo.tar.lzma foo/ --use-compress-program=lzma
    cat foo.tar.lzma | lzma -d | tar cvf -
    cat foo.tar | lzma > foo.tar.lzma

    Thanx for hints.
    f.

     
    • i found the solution:

      1. Download the SDK (current Version is LZMA SDK 4.06) to /tmp/ by doing "cd /tmp && wget
      http://7-zip.org/dl/lzma406.zip"

      2. "unzip lzma406.zip"

      3. "cd /tmp/SRC/7zip/Compress/LZMA_Alone/"

      4. edit ./makefile and change line 2 to "CXX = g++ -O3 -funroll-loops -fomit-frame-pointer -pipe -Wall" (i also added "-march=pentium3" to this line because i have a pentium3 processor)

      5. "make" will compile the pipeable lzma binary for you.

      Usage:

      tar cvf - foo/ | lzma e -si -so > foo.tar.lzma
      cat foo.tar.lzma | lzma d -si -so | tar xvf -

      Have Fun with lzma commandline compressor!!!