4.9. Bzip2-1.0.8

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.

Package Information

4.9.1. Installation of Bzip2

Prepare Bzip2 for compilation:

Patch a vulnerability, issue:

patch -Np1 -i ../bzip2-1.0.8-install_docs-1.patch

Now Configure the Package, issue:

sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile
sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile

To Compile the Package, issue:

make -f Makefile-libbz2_so
make clean
make

Now Install the Package, issue:

make PREFIX=/usr install
cp -av libbz2.so.* /usr/lib
ln -sv libbz2.so.1.0.8 /usr/lib/libbz2.so
cp -v bzip2-shared /usr/bin/bzip2
for i in /usr/bin/{bzcat,bunzip2}; do
  ln -sfv bzip2 $i
done
rm -fv /usr/lib/libbz2.a

4.9.2. Contents of Bzip2

Installed programs: PROGRAMS
Installed libraries: LIBRARIES
Installed directories: DIRECTORIES