10.50. XZ-Utils-5.0.5

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.

10.50.1. Installation of XZ-Utils

Prepare XZ-Utils for compilation:

./configure --prefix=/usr --libdir=/lib

Compile the package:

make

To test the results, issue: make check.

Install the programs:

make pkgconfigdir=/usr/lib/pkgconfig install

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

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

10.50.2. 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, xzcat (link to xz), and xzdec
Installed libraries: liblzma.[a,so]
Installed directories: /usr/include/lzma, /usr/share/doc/xz

Short Descriptions

lzcat

Decompresses LZMA and xz files

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

unxz

Uncompresses xz files

xz

Creates xz compressed files

xzcat

Decompresses xz files

xzdec

Decompresses to standard output

liblzma

The LZMA library