[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 |
|
---|
[2ec4b60] | 41 | <screen><userinput>sed -i 's@"BINDIR"@/bin@g' 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 |
|
---|
[c6cb3aa] | 62 | <sect2 id="contents-gzip" role="content"><title>Contents of Gzip</title>
|
---|
[673b0d8] | 63 |
|
---|
[c6cb3aa] | 64 | <segmentedlist>
|
---|
| 65 | <segtitle>Installed programs</segtitle>
|
---|
| 66 | <seglistitem><seg>gunzip (link to gzip), gzexe,
|
---|
[673b0d8] | 67 | gzip, uncompress (link to gunzip), zcat (link to gzip), zcmp, zdiff,
|
---|
[c6cb3aa] | 68 | zegrep, zfgrep, zforce, zgrep, zless, zmore and znew</seg></seglistitem>
|
---|
| 69 | </segmentedlist>
|
---|
[673b0d8] | 70 |
|
---|
[c6cb3aa] | 71 | <variablelist><title>Short descriptions</title>
|
---|
[673b0d8] | 72 |
|
---|
[b8a819f] | 73 | <varlistentry id="gunzip">
|
---|
| 74 | <term><command>gunzip</command></term>
|
---|
[c6cb3aa] | 75 | <listitem>
|
---|
[673b0d8] | 76 | <indexterm zone="ch-system-gzip gunzip"><primary sortas="b-gunzip">gunzip</primary></indexterm>
|
---|
[c6cb3aa] | 77 | <para>decompresses gzipped files.</para>
|
---|
| 78 | </listitem>
|
---|
| 79 | </varlistentry>
|
---|
[673b0d8] | 80 |
|
---|
[b8a819f] | 81 | <varlistentry id="gzexe">
|
---|
| 82 | <term><command>gzexe</command></term>
|
---|
[c6cb3aa] | 83 | <listitem>
|
---|
[673b0d8] | 84 | <indexterm zone="ch-system-gzip gzexe"><primary sortas="b-gzexe">gzexe</primary></indexterm>
|
---|
[c6cb3aa] | 85 | <para>is used to create self-uncompressing executable files.</para>
|
---|
| 86 | </listitem>
|
---|
| 87 | </varlistentry>
|
---|
[673b0d8] | 88 |
|
---|
[b8a819f] | 89 | <varlistentry id="gzip">
|
---|
| 90 | <term><command>gzip</command></term>
|
---|
[c6cb3aa] | 91 | <listitem>
|
---|
[673b0d8] | 92 | <indexterm zone="ch-system-gzip gzip"><primary sortas="b-gzip">gzip</primary></indexterm>
|
---|
[c6cb3aa] | 93 | <para>compresses the given files, using Lempel-Ziv (LZ77) coding.</para>
|
---|
| 94 | </listitem>
|
---|
| 95 | </varlistentry>
|
---|
[673b0d8] | 96 |
|
---|
[b8a819f] | 97 | <varlistentry id="zcat">
|
---|
| 98 | <term><command>zcat</command></term>
|
---|
[c6cb3aa] | 99 | <listitem>
|
---|
[673b0d8] | 100 | <indexterm zone="ch-system-gzip zcat"><primary sortas="b-zcat">zcat</primary></indexterm>
|
---|
[c6cb3aa] | 101 | <para>uncompresses the given gzipped files to standard output.</para>
|
---|
| 102 | </listitem>
|
---|
| 103 | </varlistentry>
|
---|
[673b0d8] | 104 |
|
---|
[b8a819f] | 105 | <varlistentry id="zcmp">
|
---|
| 106 | <term><command>zcmp</command></term>
|
---|
[c6cb3aa] | 107 | <listitem>
|
---|
[673b0d8] | 108 | <indexterm zone="ch-system-gzip zcmp"><primary sortas="b-zcmp">zcmp</primary></indexterm>
|
---|
[ef57e3b] | 109 | <para>runs <command>cmp</command> on gzipped files.</para>
|
---|
[c6cb3aa] | 110 | </listitem>
|
---|
| 111 | </varlistentry>
|
---|
[673b0d8] | 112 |
|
---|
[b8a819f] | 113 | <varlistentry id="zdiff">
|
---|
| 114 | <term><command>zdiff</command></term>
|
---|
[c6cb3aa] | 115 | <listitem>
|
---|
[673b0d8] | 116 | <indexterm zone="ch-system-gzip zdiff"><primary sortas="b-zdiff">zdiff</primary></indexterm>
|
---|
[ef57e3b] | 117 | <para>runs <command>diff</command> on gzipped files.</para>
|
---|
[c6cb3aa] | 118 | </listitem>
|
---|
| 119 | </varlistentry>
|
---|
[73aedd1d] | 120 |
|
---|
[b8a819f] | 121 | <varlistentry id="zegrep">
|
---|
| 122 | <term><command>zegrep</command></term>
|
---|
[c6cb3aa] | 123 | <listitem>
|
---|
[673b0d8] | 124 | <indexterm zone="ch-system-gzip zegrep"><primary sortas="b-zegrep">zegrep</primary></indexterm>
|
---|
[ef57e3b] | 125 | <para>runs <command>egrep</command> on gzipped files.</para>
|
---|
[c6cb3aa] | 126 | </listitem>
|
---|
| 127 | </varlistentry>
|
---|
[673b0d8] | 128 |
|
---|
[b8a819f] | 129 | <varlistentry id="zfgrep">
|
---|
| 130 | <term><command>zfgrep</command></term>
|
---|
[c6cb3aa] | 131 | <listitem>
|
---|
[673b0d8] | 132 | <indexterm zone="ch-system-gzip zfgrep"><primary sortas="b-zfgrep">zfgrep</primary></indexterm>
|
---|
[ef57e3b] | 133 | <para>runs <command>fgrep</command> on gzipped files.</para>
|
---|
[c6cb3aa] | 134 | </listitem>
|
---|
| 135 | </varlistentry>
|
---|
[673b0d8] | 136 |
|
---|
[b8a819f] | 137 | <varlistentry id="zforce">
|
---|
| 138 | <term><command>zforce</command></term>
|
---|
[c6cb3aa] | 139 | <listitem>
|
---|
[673b0d8] | 140 | <indexterm zone="ch-system-gzip zforce"><primary sortas="b-zforce">zforce</primary></indexterm>
|
---|
[ef57e3b] | 141 | <para>forces a <filename class="extension">.gz</filename> extension on all given files
|
---|
| 142 | that are gzipped files, so that <command>gzip</command> will not compress them again. This can be
|
---|
[673b0d8] | 143 | useful when file names were truncated during a file transfer.</para>
|
---|
[c6cb3aa] | 144 | </listitem>
|
---|
| 145 | </varlistentry>
|
---|
[673b0d8] | 146 |
|
---|
[b8a819f] | 147 | <varlistentry id="zgrep">
|
---|
| 148 | <term><command>zgrep</command></term>
|
---|
[c6cb3aa] | 149 | <listitem>
|
---|
[673b0d8] | 150 | <indexterm zone="ch-system-gzip zgrep"><primary sortas="b-zgrep">zgrep</primary></indexterm>
|
---|
[ef57e3b] | 151 | <para>runs <command>grep</command> on gzipped files.</para>
|
---|
[c6cb3aa] | 152 | </listitem>
|
---|
| 153 | </varlistentry>
|
---|
[673b0d8] | 154 |
|
---|
[b8a819f] | 155 | <varlistentry id="zless">
|
---|
| 156 | <term><command>zless</command></term>
|
---|
[c6cb3aa] | 157 | <listitem>
|
---|
[673b0d8] | 158 | <indexterm zone="ch-system-gzip zless"><primary sortas="b-zless">zless</primary></indexterm>
|
---|
[ef57e3b] | 159 | <para>runs <command>less</command> on gzipped files.</para>
|
---|
[c6cb3aa] | 160 | </listitem>
|
---|
| 161 | </varlistentry>
|
---|
[673b0d8] | 162 |
|
---|
[b8a819f] | 163 | <varlistentry id="zmore">
|
---|
| 164 | <term><command>zmore</command></term>
|
---|
[c6cb3aa] | 165 | <listitem>
|
---|
[673b0d8] | 166 | <indexterm zone="ch-system-gzip zmore"><primary sortas="b-zmore">zmore</primary></indexterm>
|
---|
[ef57e3b] | 167 | <para>runs <command>more</command> on gzipped files.</para>
|
---|
[c6cb3aa] | 168 | </listitem>
|
---|
| 169 | </varlistentry>
|
---|
[673b0d8] | 170 |
|
---|
[b8a819f] | 171 | <varlistentry id="znew">
|
---|
| 172 | <term><command>znew</command></term>
|
---|
[c6cb3aa] | 173 | <listitem>
|
---|
[673b0d8] | 174 | <indexterm zone="ch-system-gzip znew"><primary sortas="b-znew">znew</primary></indexterm>
|
---|
[ef57e3b] | 175 | <para>re-compresses files from <command>compress</command> format to <command>gzip</command> format
|
---|
| 176 | -- <filename class="extension">.Z</filename> to <filename class="extension">.gz</filename>.</para>
|
---|
[c6cb3aa] | 177 | </listitem>
|
---|
| 178 | </varlistentry>
|
---|
| 179 | </variablelist>
|
---|
[673b0d8] | 180 |
|
---|
| 181 | </sect2>
|
---|
| 182 |
|
---|
| 183 | </sect1>
|
---|