6.37. Installing Gzip

6.37.1. Installation of Gzip

Install Gzip by running the following commands:


./configure --prefix=/usr &&
make &&
make install &&
cd /usr/bin &&
mv gzip /bin &&
rm gunzip /bin/gunzip &&
cd /bin &&
ln -s gzip gunzip &&
ln -s gzip compress &&
ln -s gunzip uncompress

6.37.2. Contents

The Gzip package contains the compress, gunzip, gzexe, gzip, uncompress, zcat, zcmp, zdiff, zforece, zgrep, zmore and znew programs.

6.37.3. Description

6.37.3.1. gunzip

gunzip decompresses files that are compressed with gzip.

6.37.3.2. gzexe

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

6.37.3.3. gzip

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

6.37.3.4. zcat

zcat uncompresses either a list of files on the command line or its standard input and writes the uncompressed data on standard output

6.37.3.5. zcmp

zcmp invokes the cmp program on compressed files.

6.37.3.6. zdiff

zdiff invokes the diff program on compressed files.

6.37.3.7. 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.

6.37.3.8. zgrep

zgrep invokes the grep program on compressed files.

6.37.3.9. zmore

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

6.37.3.10. znew

Znew recompresses files from .Z (compress) format to .gz (gzip) format.