[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[a001133] | 6 | <sect1 id="ch-system-gzip" xreflabel="Gzip" role="wrap">
|
---|
[673b0d8] | 7 | <title>Gzip-&gzip-version;</title>
|
---|
| 8 | <?dbhtml filename="gzip.html"?>
|
---|
| 9 |
|
---|
| 10 | <indexterm zone="ch-system-gzip"><primary sortas="a-Gzip">Gzip</primary></indexterm>
|
---|
[6370fa6] | 11 |
|
---|
[a001133] | 12 | <sect2 role="package"><title/>
|
---|
[5888299] | 13 | <para>The Gzip package contains programs for compressing and decompressing
|
---|
| 14 | files.</para>
|
---|
| 15 |
|
---|
[a001133] | 16 | <segmentedlist>
|
---|
| 17 | <segtitle>&buildtime;</segtitle>
|
---|
| 18 | <segtitle>&diskspace;</segtitle>
|
---|
| 19 | <seglistitem><seg>0.1 SBU</seg><seg>2.6 MB</seg></seglistitem>
|
---|
| 20 | </segmentedlist>
|
---|
[673b0d8] | 21 |
|
---|
[a001133] | 22 | <segmentedlist>
|
---|
| 23 | <segtitle>Gzip installation depends on</segtitle>
|
---|
| 24 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
| 25 | GCC, Glibc, Grep, Make, Sed</seg></seglistitem>
|
---|
| 26 | </segmentedlist>
|
---|
| 27 | </sect2>
|
---|
[3554fa3a] | 28 |
|
---|
[a001133] | 29 | <sect2 role="installation">
|
---|
[73aedd1d] | 30 | <title>Installation of Gzip</title>
|
---|
| 31 |
|
---|
| 32 | <para>Prepare Gzip for compilation:</para>
|
---|
| 33 |
|
---|
| 34 | <screen><userinput>./configure --prefix=/usr</userinput></screen>
|
---|
| 35 |
|
---|
[90e3cb3] | 36 | <para>The <command>gzexe</command> script has the location of the
|
---|
| 37 | <command>gzip</command> binary hard-wired into it. Because we later change
|
---|
[673b0d8] | 38 | the location of the binary, the following command ensures that the new
|
---|
[555fe1c] | 39 | location gets placed into the script:</para>
|
---|
[73aedd1d] | 40 |
|
---|
[26b1701] | 41 | <screen><userinput>sed -i 's%"BINDIR"%/bin%' gzexe.in</userinput></screen>
|
---|
[73aedd1d] | 42 |
|
---|
| 43 | <para>Compile the package:</para>
|
---|
| 44 |
|
---|
| 45 | <screen><userinput>make</userinput></screen>
|
---|
| 46 |
|
---|
| 47 | <para>Install the package:</para>
|
---|
| 48 |
|
---|
| 49 | <screen><userinput>make install</userinput></screen>
|
---|
| 50 |
|
---|
[673b0d8] | 51 | <para>Move the programs to the <filename class="directory">/bin</filename> directory:</para>
|
---|
[73aedd1d] | 52 |
|
---|
| 53 | <screen><userinput>mv /usr/bin/gzip /bin
|
---|
| 54 | rm /usr/bin/{gunzip,zcat}
|
---|
| 55 | ln -s gzip /bin/gunzip
|
---|
| 56 | ln -s gzip /bin/zcat
|
---|
| 57 | ln -s gunzip /bin/uncompress</userinput></screen>
|
---|
| 58 |
|
---|
| 59 | </sect2>
|
---|
[6370fa6] | 60 |
|
---|
[5888299] | 61 |
|
---|
[673b0d8] | 62 | <sect2 id="contents-gzip"><title>Contents of Gzip</title>
|
---|
| 63 |
|
---|
| 64 | <para><emphasis>Installed programs</emphasis>: gunzip (link to gzip), gzexe,
|
---|
| 65 | gzip, uncompress (link to gunzip), zcat (link to gzip), zcmp, zdiff,
|
---|
| 66 | zegrep, zfgrep, zforce, zgrep, zless, zmore and znew</para>
|
---|
| 67 |
|
---|
| 68 | </sect2>
|
---|
| 69 |
|
---|
| 70 | <sect2><title>Short descriptions</title>
|
---|
| 71 |
|
---|
| 72 | <indexterm zone="ch-system-gzip gunzip"><primary sortas="b-gunzip">gunzip</primary></indexterm>
|
---|
| 73 | <para id="gunzip"><command>gunzip</command> decompresses gzipped files.</para>
|
---|
| 74 |
|
---|
| 75 | <indexterm zone="ch-system-gzip gzexe"><primary sortas="b-gzexe">gzexe</primary></indexterm>
|
---|
| 76 | <para id="gzexe"><command>gzexe</command> is used to create self-uncompressing
|
---|
| 77 | executable files.</para>
|
---|
| 78 |
|
---|
| 79 | <indexterm zone="ch-system-gzip gzip"><primary sortas="b-gzip">gzip</primary></indexterm>
|
---|
| 80 | <para id="gzip"><command>gzip</command> compresses the given files, using
|
---|
| 81 | Lempel-Ziv (LZ77) coding.</para>
|
---|
| 82 |
|
---|
| 83 | <indexterm zone="ch-system-gzip zcat"><primary sortas="b-zcat">zcat</primary></indexterm>
|
---|
| 84 | <para id="zcat"><command>zcat</command> uncompresses the given gzipped files to
|
---|
| 85 | standard output.</para>
|
---|
| 86 |
|
---|
| 87 | <indexterm zone="ch-system-gzip zcmp"><primary sortas="b-zcmp">zcmp</primary></indexterm>
|
---|
| 88 | <para id="zcmp"><command>zcmp</command> runs cmp on gzipped files.</para>
|
---|
| 89 |
|
---|
| 90 | <indexterm zone="ch-system-gzip zdiff"><primary sortas="b-zdiff">zdiff</primary></indexterm>
|
---|
| 91 | <para id="zdiff"><command>zdiff</command> runs diff on gzipped files.</para>
|
---|
[73aedd1d] | 92 |
|
---|
[673b0d8] | 93 | <indexterm zone="ch-system-gzip zegrep"><primary sortas="b-zegrep">zegrep</primary></indexterm>
|
---|
| 94 | <para id="zegrep"><command>zegrep</command> runs egrep on gzipped files.</para>
|
---|
| 95 |
|
---|
| 96 | <indexterm zone="ch-system-gzip zfgrep"><primary sortas="b-zfgrep">zfgrep</primary></indexterm>
|
---|
| 97 | <para id="zfgrep"><command>zfgrep</command> runs fgrep on gzipped files.</para>
|
---|
| 98 |
|
---|
| 99 | <indexterm zone="ch-system-gzip zforce"><primary sortas="b-zforce">zforce</primary></indexterm>
|
---|
| 100 | <para id="zforce"><command>zforce</command> forces a .gz extension on all given files
|
---|
| 101 | that are gzipped files, so that gzip will not compress them again. This can be
|
---|
| 102 | useful when file names were truncated during a file transfer.</para>
|
---|
| 103 |
|
---|
| 104 | <indexterm zone="ch-system-gzip zgrep"><primary sortas="b-zgrep">zgrep</primary></indexterm>
|
---|
| 105 | <para id="zgrep"><command>zgrep</command> runs grep on gzipped files.</para>
|
---|
| 106 |
|
---|
| 107 | <indexterm zone="ch-system-gzip zless"><primary sortas="b-zless">zless</primary></indexterm>
|
---|
| 108 | <para id="zless"><command>zless</command> runs less on gzipped files.</para>
|
---|
| 109 |
|
---|
| 110 | <indexterm zone="ch-system-gzip zmore"><primary sortas="b-zmore">zmore</primary></indexterm>
|
---|
| 111 | <para id="zmore"><command>zmore</command> runs more on gzipped files.</para>
|
---|
| 112 |
|
---|
| 113 | <indexterm zone="ch-system-gzip znew"><primary sortas="b-znew">znew</primary></indexterm>
|
---|
| 114 | <para id="znew"><command>znew</command> re-compresses files from compress format
|
---|
| 115 | to gzip format -- .Z to .gz.</para>
|
---|
| 116 |
|
---|
| 117 | </sect2>
|
---|
| 118 |
|
---|
| 119 |
|
---|
| 120 |
|
---|
| 121 | </sect1>
|
---|