[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[4ae4324] | 7 |
|
---|
[81fd230] | 8 | <sect1 id="ch-system-gzip" role="wrap">
|
---|
[4ae4324] | 9 | <?dbhtml filename="gzip.html"?>
|
---|
| 10 |
|
---|
[e747759] | 11 | <sect1info condition="script">
|
---|
| 12 | <productname>gzip</productname>
|
---|
| 13 | <productnumber>&gzip-version;</productnumber>
|
---|
| 14 | <address>&gzip-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
[4ae4324] | 17 | <title>Gzip-&gzip-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-system-gzip">
|
---|
| 20 | <primary sortas="a-Gzip">Gzip</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
[673b0d8] | 25 |
|
---|
[4ae4324] | 26 | <para>The Gzip package contains programs for compressing and decompressing
|
---|
| 27 | files.</para>
|
---|
[6370fa6] | 28 |
|
---|
[4ae4324] | 29 | <segmentedlist>
|
---|
| 30 | <segtitle>&buildtime;</segtitle>
|
---|
| 31 | <segtitle>&diskspace;</segtitle>
|
---|
[5888299] | 32 |
|
---|
[4ae4324] | 33 | <seglistitem>
|
---|
[e4a5635] | 34 | <seg>&gzip-ch6-sbu;</seg>
|
---|
| 35 | <seg>&gzip-ch6-du;</seg>
|
---|
[4ae4324] | 36 | </seglistitem>
|
---|
| 37 | </segmentedlist>
|
---|
[673b0d8] | 38 |
|
---|
[4ae4324] | 39 | </sect2>
|
---|
| 40 |
|
---|
| 41 | <sect2 role="installation">
|
---|
| 42 | <title>Installation of Gzip</title>
|
---|
| 43 |
|
---|
[2a7ac34] | 44 | <para>The version of the function <quote>futimens</quote> used
|
---|
| 45 | by Gzip is incompatible with the version that current
|
---|
| 46 | Glibc provides, so we'll rename the function:</para>
|
---|
| 47 |
|
---|
[0445a3d] | 48 | <screen><userinput remap="pre">sed -i 's/futimens/gl_&/' gzip.c lib/utimens.{c,h}</userinput></screen>
|
---|
[2a7ac34] | 49 |
|
---|
[65fee99] | 50 | <para>There is also a bug in the <filename>zdiff</filename> script that
|
---|
| 51 | needs to be fixed:</para>
|
---|
| 52 |
|
---|
| 53 | <screen><userinput remap="pre">sed -i 's/5 -)/5 - >\&3)/' zdiff.in</userinput></screen>
|
---|
| 54 |
|
---|
[4ae4324] | 55 | <para>Prepare Gzip for compilation:</para>
|
---|
[73aedd1d] | 56 |
|
---|
[0445a3d] | 57 | <screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin</userinput></screen>
|
---|
[73aedd1d] | 58 |
|
---|
[4ae4324] | 59 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 60 |
|
---|
[0445a3d] | 61 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[73aedd1d] | 62 |
|
---|
[0445a3d] | 63 | <para>To test the results, issue:</para>
|
---|
| 64 |
|
---|
| 65 | <screen><userinput remap="test">make check</userinput></screen>
|
---|
[0be3d41] | 66 |
|
---|
[4ae4324] | 67 | <para>Install the package:</para>
|
---|
[73aedd1d] | 68 |
|
---|
[0445a3d] | 69 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
[73aedd1d] | 70 |
|
---|
[f19e766] | 71 | <para>Move some programs that do not need to be on the root filesystem:</para>
|
---|
[73aedd1d] | 72 |
|
---|
[0445a3d] | 73 | <screen><userinput remap="install">mv -v /bin/{gzexe,uncompress,zcmp,zdiff,zegrep} /usr/bin
|
---|
[791f8426] | 74 | mv -v /bin/{zfgrep,zforce,zgrep,zless,zmore,znew} /usr/bin</userinput></screen>
|
---|
[73aedd1d] | 75 |
|
---|
[4ae4324] | 76 | </sect2>
|
---|
| 77 |
|
---|
| 78 | <sect2 id="contents-gzip" role="content">
|
---|
| 79 | <title>Contents of Gzip</title>
|
---|
| 80 |
|
---|
| 81 | <segmentedlist>
|
---|
| 82 | <segtitle>Installed programs</segtitle>
|
---|
| 83 |
|
---|
| 84 | <seglistitem>
|
---|
[529b9a0] | 85 | <seg>gunzip, gzexe, gzip, uncompress, zcat, zcmp, zdiff, zegrep, zfgrep,
|
---|
| 86 | zforce, zgrep, zless, zmore, and znew</seg>
|
---|
[4ae4324] | 87 | </seglistitem>
|
---|
| 88 | </segmentedlist>
|
---|
| 89 |
|
---|
| 90 | <variablelist>
|
---|
| 91 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 92 | <?dbfo list-presentation="list"?>
|
---|
| 93 | <?dbhtml list-presentation="table"?>
|
---|
| 94 |
|
---|
| 95 | <varlistentry id="gunzip">
|
---|
| 96 | <term><command>gunzip</command></term>
|
---|
| 97 | <listitem>
|
---|
| 98 | <para>Decompresses gzipped files</para>
|
---|
| 99 | <indexterm zone="ch-system-gzip gunzip">
|
---|
| 100 | <primary sortas="b-gunzip">gunzip</primary>
|
---|
| 101 | </indexterm>
|
---|
| 102 | </listitem>
|
---|
| 103 | </varlistentry>
|
---|
| 104 |
|
---|
| 105 | <varlistentry id="gzexe">
|
---|
| 106 | <term><command>gzexe</command></term>
|
---|
| 107 | <listitem>
|
---|
| 108 | <para>Creates self-decompressing executable files</para>
|
---|
| 109 | <indexterm zone="ch-system-gzip gzexe">
|
---|
| 110 | <primary sortas="b-gzexe">gzexe</primary>
|
---|
| 111 | </indexterm>
|
---|
| 112 | </listitem>
|
---|
| 113 | </varlistentry>
|
---|
| 114 |
|
---|
| 115 | <varlistentry id="gzip">
|
---|
| 116 | <term><command>gzip</command></term>
|
---|
| 117 | <listitem>
|
---|
| 118 | <para>Compresses the given files using Lempel-Ziv (LZ77) coding</para>
|
---|
| 119 | <indexterm zone="ch-system-gzip gzip">
|
---|
| 120 | <primary sortas="b-gzip">gzip</primary>
|
---|
| 121 | </indexterm>
|
---|
| 122 | </listitem>
|
---|
| 123 | </varlistentry>
|
---|
| 124 |
|
---|
| 125 | <varlistentry id="uncompress">
|
---|
| 126 | <term><command>uncompress</command></term>
|
---|
| 127 | <listitem>
|
---|
| 128 | <para>Decompresses compressed files</para>
|
---|
| 129 | <indexterm zone="ch-system-gzip uncompress">
|
---|
| 130 | <primary sortas="b-uncompress">uncompress</primary>
|
---|
| 131 | </indexterm>
|
---|
| 132 | </listitem>
|
---|
| 133 | </varlistentry>
|
---|
| 134 |
|
---|
| 135 | <varlistentry id="zcat">
|
---|
| 136 | <term><command>zcat</command></term>
|
---|
| 137 | <listitem>
|
---|
| 138 | <para>Decompresses the given gzipped files to standard output</para>
|
---|
| 139 | <indexterm zone="ch-system-gzip zcat">
|
---|
| 140 | <primary sortas="b-zcat">zcat</primary>
|
---|
| 141 | </indexterm>
|
---|
| 142 | </listitem>
|
---|
| 143 | </varlistentry>
|
---|
| 144 |
|
---|
| 145 | <varlistentry id="zcmp">
|
---|
| 146 | <term><command>zcmp</command></term>
|
---|
| 147 | <listitem>
|
---|
| 148 | <para>Runs <command>cmp</command> on gzipped files</para>
|
---|
| 149 | <indexterm zone="ch-system-gzip zcmp">
|
---|
| 150 | <primary sortas="b-zcmp">zcmp</primary>
|
---|
| 151 | </indexterm>
|
---|
| 152 | </listitem>
|
---|
| 153 | </varlistentry>
|
---|
| 154 |
|
---|
| 155 | <varlistentry id="zdiff">
|
---|
| 156 | <term><command>zdiff</command></term>
|
---|
| 157 | <listitem>
|
---|
| 158 | <para>Runs <command>diff</command> on gzipped files</para>
|
---|
| 159 | <indexterm zone="ch-system-gzip zdiff">
|
---|
| 160 | <primary sortas="b-zdiff">zdiff</primary>
|
---|
| 161 | </indexterm>
|
---|
| 162 | </listitem>
|
---|
| 163 | </varlistentry>
|
---|
| 164 |
|
---|
| 165 | <varlistentry id="zegrep">
|
---|
| 166 | <term><command>zegrep</command></term>
|
---|
| 167 | <listitem>
|
---|
| 168 | <para>Runs <command>egrep</command> on gzipped files</para>
|
---|
| 169 | <indexterm zone="ch-system-gzip zegrep">
|
---|
| 170 | <primary sortas="b-zegrep">zegrep</primary>
|
---|
| 171 | </indexterm>
|
---|
| 172 | </listitem>
|
---|
| 173 | </varlistentry>
|
---|
| 174 |
|
---|
| 175 | <varlistentry id="zfgrep">
|
---|
| 176 | <term><command>zfgrep</command></term>
|
---|
| 177 | <listitem>
|
---|
| 178 | <para>Runs <command>fgrep</command> on gzipped files</para>
|
---|
| 179 | <indexterm zone="ch-system-gzip zfgrep">
|
---|
| 180 | <primary sortas="b-zfgrep">zfgrep</primary>
|
---|
| 181 | </indexterm>
|
---|
| 182 | </listitem>
|
---|
| 183 | </varlistentry>
|
---|
| 184 |
|
---|
| 185 | <varlistentry id="zforce">
|
---|
| 186 | <term><command>zforce</command></term>
|
---|
| 187 | <listitem>
|
---|
| 188 | <para>Forces a <filename class="extension">.gz</filename> extension on
|
---|
| 189 | all given files that are gzipped files, so that <command>gzip</command>
|
---|
| 190 | will not compress them again; this can be useful when file names were
|
---|
| 191 | truncated during a file transfer</para>
|
---|
| 192 | <indexterm zone="ch-system-gzip zforce">
|
---|
| 193 | <primary sortas="b-zforce">zforce</primary>
|
---|
| 194 | </indexterm>
|
---|
| 195 | </listitem>
|
---|
| 196 | </varlistentry>
|
---|
| 197 |
|
---|
| 198 | <varlistentry id="zgrep">
|
---|
| 199 | <term><command>zgrep</command></term>
|
---|
| 200 | <listitem>
|
---|
| 201 | <para>Runs <command>grep</command> on gzipped files</para>
|
---|
| 202 | <indexterm zone="ch-system-gzip zgrep">
|
---|
| 203 | <primary sortas="b-zgrep">zgrep</primary>
|
---|
| 204 | </indexterm>
|
---|
| 205 | </listitem>
|
---|
| 206 | </varlistentry>
|
---|
| 207 |
|
---|
| 208 | <varlistentry id="zless">
|
---|
| 209 | <term><command>zless</command></term>
|
---|
| 210 | <listitem>
|
---|
| 211 | <para>Runs <command>less</command> on gzipped files</para>
|
---|
| 212 | <indexterm zone="ch-system-gzip zless">
|
---|
| 213 | <primary sortas="b-zless">zless</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 | </listitem>
|
---|
| 216 | </varlistentry>
|
---|
| 217 |
|
---|
| 218 | <varlistentry id="zmore">
|
---|
| 219 | <term><command>zmore</command></term>
|
---|
| 220 | <listitem>
|
---|
| 221 | <para>Runs <command>more</command> on gzipped files</para>
|
---|
| 222 | <indexterm zone="ch-system-gzip zmore">
|
---|
| 223 | <primary sortas="b-zmore">zmore</primary>
|
---|
| 224 | </indexterm>
|
---|
| 225 | </listitem>
|
---|
| 226 | </varlistentry>
|
---|
| 227 |
|
---|
| 228 | <varlistentry id="znew">
|
---|
| 229 | <term><command>znew</command></term>
|
---|
| 230 | <listitem>
|
---|
| 231 | <para>Re-compresses files from <command>compress</command> format to
|
---|
| 232 | <command>gzip</command> format—<filename
|
---|
| 233 | class="extension">.Z</filename> to <filename
|
---|
| 234 | class="extension">.gz</filename></para>
|
---|
| 235 | <indexterm zone="ch-system-gzip znew">
|
---|
| 236 | <primary sortas="b-znew">znew</primary>
|
---|
| 237 | </indexterm>
|
---|
| 238 | </listitem>
|
---|
| 239 | </varlistentry>
|
---|
| 240 |
|
---|
| 241 | </variablelist>
|
---|
| 242 |
|
---|
| 243 | </sect2>
|
---|
[673b0d8] | 244 |
|
---|
| 245 | </sect1>
|
---|