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.
Prepare XZ Utils for compilation:
CC="gcc ${BUILD64}" ./configure \
--prefix=/usr \
--libdir=/usr/lib64 \
--docdir=/usr/share/doc/xz-5.2.3
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