10.108. XZ Utils-5.0.5 64 Bit

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.108.1. Installation of XZ Utils

Prepare XZ Utils for compilation:

CC="gcc ${BUILD64}" ./configure --prefix=/usr \
    --libdir=/usr/lib64 --docdir=/usr/share/doc/xz-5.0.5

Compile the package:

make

To test the results, issue:

make check

Install the programs:

make 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

Finally, move the shared library to a more appropriate location, and recreate the symlink pointing to it:

mv -v /usr/lib64/liblzma.so.* /lib64
ln -sfv ../../lib64/$(readlink /usr/lib64/liblzma.so) /usr/lib64/liblzma.so

10.108.2. Contents of XZ Utils

Installed programs: lzcat (link to xz), lzcmp (link to xzdiff), lzdiff (link to xzdiff), lzegrep (link to xzgrep), lzfgrep (link to xzgrep), lzgrep (link to xzgrep), lzless (link to xzless), lzma (link to xz), lzmadec, lzmainfo, lzmore (link to xzmore), unlzma (link to xz), unxz (link to xz), xz, xzcat (link to xz), xzcmp (link to xzdiff), xzdec, xzdiff, xzegrep (link to xzgrep), xzfgrep (link to xzgrep), xzgrep, xzless, xzmore
Installed libraries: liblzma.[a,so]
Installed directories: /usr/include/lzma, /usr/share/doc/xz-5.0.5

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

lzmainfo

Displays information stored in an .lzma file header

lzmore

Runs more on lzma files

unlzma

Uncompresses lzma files

unxz

Uncompresses xz files

xz

Creates xz compressed files

xzcat

Decompresses xz files

xzcmp

Compares xz compressed files

xzdec

Decompresses to standard output

xzdiff

Compares xz compressed files

xzegrep

Runs egrep on xz compressed files

xzfgrep

Runs fgrep on xz compressed files

xzgrep

Runs grep on xz compressed files

xzless

Runs less on xz files

xzmore

Runs more on xz files

liblzma

The LZMA library