The Bzip2 package contains programs for compressing and
decompressing files. Compressing text files with
bzip2
yields a much better
compression percentage than with the traditional
gzip
.
This will cause Bzip2 to be built using a different
Makefile
file, in this case the
Makefile-libbz2_so
file, which
creates a dynamic
libbz2.so
library and links the Bzip2 utilities against it.
Install the shared
bzip2
binary into the
/bin
directory, make some necessary
symbolic links, and clean up:
cp -v bzip2-shared /bin/bzip2
cp -av libbz2.so* /lib
ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
rm -v /usr/bin/{bunzip2,bzcat,bzip2}
ln -sv bzip2 /bin/bunzip2
ln -sv bzip2 /bin/bzcat
Installed programs:
bunzip2 (link to bzip2), bzcat (link to
bzip2), bzcmp (link to bzdiff), bzdiff, bzegrep (link to
bzgrep), bzfgrep (link to bzgrep), bzgrep, bzip2, bzip2recover,
bzless (link to bzmore), and bzmore
Installed libraries:
libbz2.{a,so}
Installed directory:
/usr/share/doc/bzip2-1.0.8
Compresses files using the Burrows-Wheeler block sorting
text compression algorithm with Huffman coding; the
compression rate is better than that achieved by more
conventional compressors using
“
Lempel-Ziv
”
algorithms, like