Installing Gzip-1.2.4a

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

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

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.

Contents of Gzip

Last checked against version 1.2.4a.

Program Files

gunzip (link to gzip), gzexe, gzip, uncompress (link to gunzip), zcat (link to gzip), zcmp, zdiff, zforce, zgrep, zmore and znew

Description

gunzip, uncompress

gunzip and uncompress decompress files which are compressed with gzip.

gzexe

gzexe allows you to compress executables in place and have them automatically uncompress and execute when they are run (at a penalty in performance).

gzip

gzip reduces the size of the named files using Lempel-Ziv coding (LZ77).

zcat

zcat uncompresses, and writes to standard output, either a list of files on the command line or a file being read from standard input.

zcmp

zcmp invokes the cmp program on compressed files.

zdiff

zdiff invokes the diff program on compressed files.

zforce

zforce forces a .gz extension on all gzip files so that gzip will not compress them twice. This can be useful for files with names truncated after a file transfer.

zgrep

zgrep invokes the grep program on compressed files.

zmore

zmore is a filter which allows examination of compressed or plain text files, one screen at a time on a soft-copy terminal (similar to the more program).

znew

znew re-compresses files from .Z (compress) format to .gz (gzip) format.

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