8.9. Lz4-1.10.0

Lz4 is a lossless compression algorithm, providing compression speed greater than 500 MB/s per core. It features an extremely fast decoder, with speed in multiple GB/s per core. Lz4 can work with Zstandard to allow both algorithms to compress data faster.

Approximate build time: 0.1 SBU
Required disk space: 4.2 MB

8.9.1. Installation of Lz4

Compile the package:

make BUILD_STATIC=no PREFIX=/usr

To test the results, issue:

make -j1 check

Install the package:

make BUILD_STATIC=no PREFIX=/usr install

8.9.2. Installation of Lz4 - 32bit

Clean previous build:

make clean

Compile the package:

CC="gcc -m32" make BUILD_STATIC=no

Install the package:

make BUILD_STATIC=no PREFIX=/usr LIBDIR=/usr/lib32 DESTDIR=$(pwd)/m32 install &&
cp -a m32/usr/lib32/* /usr/lib32/

8.9.3. Contents of Lz4

Installed programs: lz4, lz4c (link to lz4), lz4cat (link to lz4), and unlz4 (link to lz4)
Installed library: liblz4.so

Short Descriptions

lz4

Compresses or decompresses files using the LZ4 format

lz4c

Compresses files using the LZ4 format

lz4cat

Lists the contents of a file compressed using the LZ4 format

unlz4

Decompresses files using the LZ4 format

liblz4

The library implementing lossless data compression, using the LZ4 algorithm