Installing Gzip

Installation of Gzip

This package is known to cause compilation problems on certain platforms. If you're having trouble compiling this package as well, you can download a patch from http://www.linuxfromscratch.org/download/gzip-1.2.4a.patch.gz

Install this patch by running the following command:



root:gzip-1.2.4a# patch -Np1 -i ../gzip-1.2.4a.patch

Install Gzip by running the following commands:



root:gzip-1.2.4a# ./configure --prefix=/usr --disable-nls
root:gzip-1.2.4a# make LDFLAGS=-static
root:gzip-1.2.4a# make prefix=$LFS/usr install
root:gzip-1.2.4a# cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin
root:gzip-1.2.4a# rm $LFS/usr/bin/gunzip $LFS/usr/bin/gzip

Contents

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

Description

gunzip

gunzip decompresses files that are compressed with gzip.

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

gzip

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

zcat

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

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 screenful at a time on a soft-copy terminal (similar to the more program).

znew

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