2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2004-01-27 22:29:49 +00:00
|
|
|
<sect1 id="ch-system-gzip" xreflabel="Gzip">
|
2004-05-03 11:59:46 +01:00
|
|
|
<title>Gzip-&gzip-version;</title>
|
|
|
|
<?dbhtml filename="gzip.html"?>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-gzip"><primary sortas="a-Gzip">Gzip</primary></indexterm>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2004-01-12 23:23:50 +00:00
|
|
|
<para>The Gzip package contains programs for compressing and decompressing
|
|
|
|
files.</para>
|
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<screen>&buildtime; 0.1 SBU
|
|
|
|
&diskspace; 2.6 MB</screen>
|
|
|
|
|
|
|
|
<para>Gzip installation depends on: Bash, Binutils, Coreutils, Diffutils,
|
|
|
|
GCC, Glibc, Grep, Make, Sed.</para>
|
2001-07-17 19:51:18 +01:00
|
|
|
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Installation of Gzip</title>
|
|
|
|
|
|
|
|
<para>Prepare Gzip for compilation:</para>
|
|
|
|
|
|
|
|
<screen><userinput>./configure --prefix=/usr</userinput></screen>
|
|
|
|
|
2004-02-01 21:49:10 +00:00
|
|
|
<para>The <command>gzexe</command> script has the location of the
|
|
|
|
<command>gzip</command> binary hard-wired into it. Because we later change
|
2004-05-03 11:59:46 +01:00
|
|
|
the location of the binary, the following command ensures that the new
|
2003-11-05 22:26:09 +00:00
|
|
|
location gets placed into the script:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>cp gzexe.in{,.backup}
|
|
|
|
sed 's%"BINDIR"%/bin%' gzexe.in.backup > gzexe.in</userinput></screen>
|
|
|
|
|
|
|
|
<para>Compile the package:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
|
|
|
|
<para>Install the package:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<para>Move the programs to the <filename class="directory">/bin</filename> directory:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>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</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<sect2 id="contents-gzip"><title>Contents of Gzip</title>
|
|
|
|
|
|
|
|
<para><emphasis>Installed programs</emphasis>: gunzip (link to gzip), gzexe,
|
|
|
|
gzip, uncompress (link to gunzip), zcat (link to gzip), zcmp, zdiff,
|
|
|
|
zegrep, zfgrep, zforce, zgrep, zless, zmore and znew</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2><title>Short descriptions</title>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-gzip gunzip"><primary sortas="b-gunzip">gunzip</primary></indexterm>
|
|
|
|
<para id="gunzip"><command>gunzip</command> decompresses gzipped files.</para>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-gzip gzexe"><primary sortas="b-gzexe">gzexe</primary></indexterm>
|
|
|
|
<para id="gzexe"><command>gzexe</command> is used to create self-uncompressing
|
|
|
|
executable files.</para>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-gzip gzip"><primary sortas="b-gzip">gzip</primary></indexterm>
|
|
|
|
<para id="gzip"><command>gzip</command> compresses the given files, using
|
|
|
|
Lempel-Ziv (LZ77) coding.</para>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-gzip zcat"><primary sortas="b-zcat">zcat</primary></indexterm>
|
|
|
|
<para id="zcat"><command>zcat</command> uncompresses the given gzipped files to
|
|
|
|
standard output.</para>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-gzip zcmp"><primary sortas="b-zcmp">zcmp</primary></indexterm>
|
|
|
|
<para id="zcmp"><command>zcmp</command> runs cmp on gzipped files.</para>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-gzip zdiff"><primary sortas="b-zdiff">zdiff</primary></indexterm>
|
|
|
|
<para id="zdiff"><command>zdiff</command> runs diff on gzipped files.</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-gzip zegrep"><primary sortas="b-zegrep">zegrep</primary></indexterm>
|
|
|
|
<para id="zegrep"><command>zegrep</command> runs egrep on gzipped files.</para>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-gzip zfgrep"><primary sortas="b-zfgrep">zfgrep</primary></indexterm>
|
|
|
|
<para id="zfgrep"><command>zfgrep</command> runs fgrep on gzipped files.</para>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-gzip zforce"><primary sortas="b-zforce">zforce</primary></indexterm>
|
|
|
|
<para id="zforce"><command>zforce</command> forces a .gz extension on all given files
|
|
|
|
that are gzipped files, so that gzip will not compress them again. This can be
|
|
|
|
useful when file names were truncated during a file transfer.</para>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-gzip zgrep"><primary sortas="b-zgrep">zgrep</primary></indexterm>
|
|
|
|
<para id="zgrep"><command>zgrep</command> runs grep on gzipped files.</para>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-gzip zless"><primary sortas="b-zless">zless</primary></indexterm>
|
|
|
|
<para id="zless"><command>zless</command> runs less on gzipped files.</para>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-gzip zmore"><primary sortas="b-zmore">zmore</primary></indexterm>
|
|
|
|
<para id="zmore"><command>zmore</command> runs more on gzipped files.</para>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-gzip znew"><primary sortas="b-znew">znew</primary></indexterm>
|
|
|
|
<para id="znew"><command>znew</command> re-compresses files from compress format
|
|
|
|
to gzip format -- .Z to .gz.</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</sect1>
|