6.47. Installing Gzip-1.2.4a

Estimated build time:           0.03 SBU
Estimated required disk space:  2 MB

6.47.1. Installation of Gzip

Install Gzip by running the following commands:

patch -Np1 -i ../gzip-1.2.4b.patch &&
./configure --prefix=/usr &&
cp gzexe.in{,.backup} &&
sed 's%"BINDIR"%/bin%' gzexe.in.backup > gzexe.in &&
make &&
make install &&
mv /usr/bin/gzip /bin &&
rm /usr/bin/{gunzip,zcat} &&
ln -s gzip /bin/gunzip &&
ln -s gzip /bin/zcat &&
ln -s gunzip /bin/uncompress

6.47.2. Command explanations

patch -Np1 -i ../gzip-1.2.4b.patch: This patch fixes a buffer overflow that occurs when a filename is longer than 1020 characters.

6.47.3. Contents of Gzip

Last checked against version 1.2.4a.

6.47.4. Gzip Installation Dependencies

Last checked against version 1.2.4a.

Bash: sh
Binutils: as, ld, nm
Fileutils: chmod, cp, install, ln, mv, rm
Gcc: cc1, collect2, cpp, cpp0, gcc
Grep: egrep, grep
Make: make
Sed: sed
Sh-utils: hostname
Textutils: cat, tr