source: BOOK/final-system/common/gzip.xml

systemd
Last change on this file was 7cd7f99, checked in by Chris Staub <chris@…>, 8 years ago

Put one configure option per line

  • Property mode set to 100644
File size: 7.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4  <!ENTITY % general-entities SYSTEM "../../general.ent">
5  %general-entities;
6]>
7
8<sect1 id="ch-system-gzip" role="wrap">
9  <?dbhtml filename="gzip.html"?>
10
11  <title>Gzip-&gzip-version;</title>
12
13  <indexterm zone="ch-system-gzip">
14    <primary sortas="a-Gzip">Gzip</primary>
15  </indexterm>
16
17  <sect2 role="package">
18    <title/>
19
20    <para>The Gzip package contains programs for compressing and decompressing
21    files.</para>
22
23  </sect2>
24
25  <sect2 role="installation">
26    <title>Installation of Gzip</title>
27
28    <para os="a">Prepare Gzip for compilation:</para>
29
30<screen os="b"><userinput>./configure \
31    --prefix=/usr \
32    --bindir=/bin</userinput></screen>
33
34    <para os="c">Compile the package:</para>
35
36<screen os="d"><userinput>make</userinput></screen>
37
38    <para os="e">To test the results, issue:</para>
39
40<screen os="e2"><userinput remap="test">make check</userinput></screen>
41
42    <para os="f">Install the package:</para>
43
44<screen os="g"><userinput>make install</userinput></screen>
45
46    <para os="h">Now we will move some of the utilities to
47    <filename class="directory">/usr/bin</filename> to meet FHS compliance:</para>
48
49<screen os="i"><userinput>mv -v /bin/{gzexe,uncompress} /usr/bin
50mv -v /bin/z{egrep,cmp,diff,fgrep,force,grep,less,more,new} /usr/bin
51        </userinput></screen>
52
53  </sect2>
54
55  <sect2 id="contents-gzip" role="content">
56    <title>Contents of Gzip</title>
57
58    <segmentedlist>
59      <segtitle>Installed programs</segtitle>
60
61      <seglistitem>
62        <seg>gunzip, gzexe, gzip, uncompress, zcat, zcmp, zdiff,
63        zegrep, zfgrep, zforce, zgrep, zless, zmore, znew</seg>
64      </seglistitem>
65    </segmentedlist>
66
67    <variablelist>
68      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
69      <?dbfo list-presentation="list"?>
70      <?dbhtml list-presentation="table"?>
71
72      <varlistentry id="gunzip">
73        <term><command>gunzip</command></term>
74        <listitem>
75          <para>Decompresses gzipped files</para>
76          <indexterm zone="ch-system-gzip gunzip">
77            <primary sortas="b-gunzip">gunzip</primary>
78          </indexterm>
79        </listitem>
80      </varlistentry>
81
82      <varlistentry id="gzexe">
83        <term><command>gzexe</command></term>
84        <listitem>
85          <para>Creates self-decompressing executable files</para>
86          <indexterm zone="ch-system-gzip gzexe">
87            <primary sortas="b-gzexe">gzexe</primary>
88          </indexterm>
89        </listitem>
90      </varlistentry>
91
92      <varlistentry id="gzip">
93        <term><command>gzip</command></term>
94        <listitem>
95          <para>Compresses the given files using Lempel-Ziv (LZ77) coding</para>
96          <indexterm zone="ch-system-gzip gzip">
97            <primary sortas="b-gzip">gzip</primary>
98          </indexterm>
99        </listitem>
100      </varlistentry>
101
102      <varlistentry id="uncompress">
103        <term><command>uncompress</command></term>
104        <listitem>
105          <para>Decompresses compressed files</para>
106          <indexterm zone="ch-system-gzip uncompress">
107            <primary sortas="b-uncompress">uncompress</primary>
108          </indexterm>
109        </listitem>
110      </varlistentry>
111
112      <varlistentry id="zcat">
113        <term><command>zcat</command></term>
114        <listitem>
115          <para>Decompresses the given gzipped files to standard output</para>
116          <indexterm zone="ch-system-gzip zcat">
117            <primary sortas="b-zcat">zcat</primary>
118          </indexterm>
119        </listitem>
120      </varlistentry>
121
122      <varlistentry id="zcmp">
123        <term><command>zcmp</command></term>
124        <listitem>
125          <para>Runs <command>cmp</command> on gzipped files</para>
126          <indexterm zone="ch-system-gzip zcmp">
127            <primary sortas="b-zcmp">zcmp</primary>
128          </indexterm>
129        </listitem>
130      </varlistentry>
131
132      <varlistentry id="zdiff">
133        <term><command>zdiff</command></term>
134        <listitem>
135          <para>Runs <command>diff</command> on gzipped files</para>
136          <indexterm zone="ch-system-gzip zdiff">
137            <primary sortas="b-zdiff">zdiff</primary>
138          </indexterm>
139        </listitem>
140      </varlistentry>
141
142      <varlistentry id="zegrep">
143        <term><command>zegrep</command></term>
144        <listitem>
145          <para>Runs <command>egrep</command> on gzipped files</para>
146          <indexterm zone="ch-system-gzip zegrep">
147            <primary sortas="b-zegrep">zegrep</primary>
148          </indexterm>
149        </listitem>
150      </varlistentry>
151
152      <varlistentry id="zfgrep">
153        <term><command>zfgrep</command></term>
154        <listitem>
155          <para>Runs <command>fgrep</command> on gzipped files</para>
156          <indexterm zone="ch-system-gzip zfgrep">
157            <primary sortas="b-zfgrep">zfgrep</primary>
158          </indexterm>
159        </listitem>
160      </varlistentry>
161
162      <varlistentry id="zforce">
163        <term><command>zforce</command></term>
164        <listitem>
165          <para>Forces a <filename class="extension">.gz</filename> extension on
166          all given files that are gzipped files, so that <command>gzip</command>
167          will not compress them again; this can be useful when file names were
168          truncated during a file transfer</para>
169          <indexterm zone="ch-system-gzip zforce">
170            <primary sortas="b-zforce">zforce</primary>
171          </indexterm>
172        </listitem>
173      </varlistentry>
174
175      <varlistentry id="zgrep">
176        <term><command>zgrep</command></term>
177        <listitem>
178          <para>Runs <command>grep</command> on gzipped files</para>
179          <indexterm zone="ch-system-gzip zgrep">
180            <primary sortas="b-zgrep">zgrep</primary>
181          </indexterm>
182        </listitem>
183      </varlistentry>
184
185      <varlistentry id="zless">
186        <term><command>zless</command></term>
187        <listitem>
188          <para>Runs <command>less</command> on gzipped files</para>
189          <indexterm zone="ch-system-gzip zless">
190            <primary sortas="b-zless">zless</primary>
191          </indexterm>
192        </listitem>
193      </varlistentry>
194
195      <varlistentry id="zmore">
196        <term><command>zmore</command></term>
197        <listitem>
198          <para>Runs <command>more</command> on gzipped files</para>
199          <indexterm zone="ch-system-gzip zmore">
200            <primary sortas="b-zmore">zmore</primary>
201          </indexterm>
202        </listitem>
203      </varlistentry>
204
205      <varlistentry id="znew">
206        <term><command>znew</command></term>
207        <listitem>
208          <para>Re-compresses files from <command>compress</command> format to
209          <command>gzip</command> format&mdash;<filename
210          class="extension">.Z</filename> to <filename
211          class="extension">.gz</filename></para>
212          <indexterm zone="ch-system-gzip znew">
213            <primary sortas="b-znew">znew</primary>
214          </indexterm>
215        </listitem>
216      </varlistentry>
217
218    </variablelist>
219
220  </sect2>
221
222</sect1>
Note: See TracBrowser for help on using the repository browser.