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