6.53. XZ-Utils-4.999.8beta

The XZ-Utils package contains programs for compressing and decompressing files. Compressing text files with XZ-Utils yields a much better compression percentage than with the traditional gzip.

6.53.1. Environment Settings

This package requires compiler variables to be set for the target in the environment.

export CC="${CLFS_TARGET}-gcc"
export CXX="${CLFS_TARGET}-g++"
export AR="${CLFS_TARGET}-ar"
export AS="${CLFS_TARGET}-as"
export RANLIB="${CLFS_TARGET}-ranlib"
export LD="${CLFS_TARGET}-ld"
export STRIP="${CLFS_TARGET}-strip"

6.53.2. Installation of XZ-Utils

Prepare XZ-Utils for compilation:

./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    --prefix=/usr

Compile the package:

make

Install the programs:

make DESTDIR=${CLFS} install

Move the xz binary, and several symlinks that point to it, into the /bin directory:

mv -v ${CLFS}/usr/bin/{xz,lzma,lzcat,unlzma,unxz,xzcat} ${CLFS}/bin

6.53.3. Contents of XZ-Utils

Installed programs: lzcat (link to xz), lzcmp (link to lzdiff), lzdiff, lzegrep (link to lzgrep), lzfgrep (link to lzgrep), lzgrep, lzless (link to lzmore), lzma (link to xz), lzmadec, lzmore, unlzma (link to xz), unxz (link to xz), xz, xzdec, and xzcat (link to xz).
Installed libraries: /liblzma.a liblzma.la liblzma.so liblzma.so.0 liblzma.so.0.0.0

Short Descriptions

lzcat

Decompresses to standard output

lzcmp

Compares lzma compressed files

lzdiff

Compares lzma compressed files

lzegrep

Runs egrep on lzma compressed files

lzfgrep

Runs fgrep on lzma compressed files

lzgrep

Runs grep on lzma compressed files

lzless

Runs less on lzma files

lzma

Compresses lzma files

lzmadec

Decompresses lzma files

lzmore

Runs more on lzma files

unlzma

Uncompresses lzma files