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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since c7101cf was 3cc6893, checked in by Jim Gifford <clfs@…>, 18 years ago

Updated to Gzip 1.3.6

  • Property mode set to 100644
File size: 7.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/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 --prefix=/usr</userinput></screen>
31
32 <para os="c">The <command>gzexe</command> script has the location of the
33 <command>gzip</command> binary hard-wired into it. Because the
34 location of the binary is changed later, the following command ensures
35 that the new location gets placed into the script:</para>
36
37<screen os="d"><userinput>sed -i 's@"BINDIR"@/bin@g' gzexe.in</userinput></screen>
38
39 <para os="e">Compile the package:</para>
40
41<screen os="f"><userinput>make</userinput></screen>
42
43 <para os="g">This package does not come with a test suite.</para>
44
45 <para os="h">Install the package:</para>
46
47<screen os="i"><userinput>make install</userinput></screen>
48
49 <para os="j">Move the <command>gzip</command> program to the <filename
50 class="directory">/bin</filename> directory and create some commonly
51 used symlinks to it:</para>
52
53<screen os="k"><userinput>mv -v /usr/bin/gzip /bin
54rm -v /usr/bin/{gunzip,zcat}
55ln -sv gzip /bin/gunzip
56ln -sv gzip /bin/zcat
57ln -sv gzip /bin/compress
58ln -sv gunzip /bin/uncompress</userinput></screen>
59
60 </sect2>
61
62 <sect2 id="contents-gzip" role="content">
63 <title>Contents of Gzip</title>
64
65 <segmentedlist>
66 <segtitle>Installed programs</segtitle>
67
68 <seglistitem>
69 <seg>compress (link to gzip), gunzip (link to gzip), gzexe, gzip,
70 uncompress (link to gunzip), zcat (link to gzip), zcmp, zdiff,
71 zegrep, zfgrep, zforce, zgrep, zless, zmore, and znew</seg>
72 </seglistitem>
73 </segmentedlist>
74
75 <variablelist>
76 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
77 <?dbfo list-presentation="list"?>
78 <?dbhtml list-presentation="table"?>
79
80 <varlistentry id="compress">
81 <term><command>compress</command></term>
82 <listitem>
83 <para>Compresses and decompresses files</para>
84 <indexterm zone="ch-system-gzip compress">
85 <primary sortas="b-compress">compress</primary>
86 </indexterm>
87 </listitem>
88 </varlistentry>
89
90 <varlistentry id="gunzip">
91 <term><command>gunzip</command></term>
92 <listitem>
93 <para>Decompresses gzipped files</para>
94 <indexterm zone="ch-system-gzip gunzip">
95 <primary sortas="b-gunzip">gunzip</primary>
96 </indexterm>
97 </listitem>
98 </varlistentry>
99
100 <varlistentry id="gzexe">
101 <term><command>gzexe</command></term>
102 <listitem>
103 <para>Creates self-decompressing executable files</para>
104 <indexterm zone="ch-system-gzip gzexe">
105 <primary sortas="b-gzexe">gzexe</primary>
106 </indexterm>
107 </listitem>
108 </varlistentry>
109
110 <varlistentry id="gzip">
111 <term><command>gzip</command></term>
112 <listitem>
113 <para>Compresses the given files using Lempel-Ziv (LZ77) coding</para>
114 <indexterm zone="ch-system-gzip gzip">
115 <primary sortas="b-gzip">gzip</primary>
116 </indexterm>
117 </listitem>
118 </varlistentry>
119
120 <varlistentry id="uncompress">
121 <term><command>uncompress</command></term>
122 <listitem>
123 <para>Decompresses compressed files</para>
124 <indexterm zone="ch-system-gzip uncompress">
125 <primary sortas="b-uncompress">uncompress</primary>
126 </indexterm>
127 </listitem>
128 </varlistentry>
129
130 <varlistentry id="zcat">
131 <term><command>zcat</command></term>
132 <listitem>
133 <para>Decompresses the given gzipped files to standard output</para>
134 <indexterm zone="ch-system-gzip zcat">
135 <primary sortas="b-zcat">zcat</primary>
136 </indexterm>
137 </listitem>
138 </varlistentry>
139
140 <varlistentry id="zcmp">
141 <term><command>zcmp</command></term>
142 <listitem>
143 <para>Runs <command>cmp</command> on gzipped files</para>
144 <indexterm zone="ch-system-gzip zcmp">
145 <primary sortas="b-zcmp">zcmp</primary>
146 </indexterm>
147 </listitem>
148 </varlistentry>
149
150 <varlistentry id="zdiff">
151 <term><command>zdiff</command></term>
152 <listitem>
153 <para>Runs <command>diff</command> on gzipped files</para>
154 <indexterm zone="ch-system-gzip zdiff">
155 <primary sortas="b-zdiff">zdiff</primary>
156 </indexterm>
157 </listitem>
158 </varlistentry>
159
160 <varlistentry id="zegrep">
161 <term><command>zegrep</command></term>
162 <listitem>
163 <para>Runs <command>egrep</command> on gzipped files</para>
164 <indexterm zone="ch-system-gzip zegrep">
165 <primary sortas="b-zegrep">zegrep</primary>
166 </indexterm>
167 </listitem>
168 </varlistentry>
169
170 <varlistentry id="zfgrep">
171 <term><command>zfgrep</command></term>
172 <listitem>
173 <para>Runs <command>fgrep</command> on gzipped files</para>
174 <indexterm zone="ch-system-gzip zfgrep">
175 <primary sortas="b-zfgrep">zfgrep</primary>
176 </indexterm>
177 </listitem>
178 </varlistentry>
179
180 <varlistentry id="zforce">
181 <term><command>zforce</command></term>
182 <listitem>
183 <para>Forces a <filename class="extension">.gz</filename> extension on
184 all given files that are gzipped files, so that <command>gzip</command>
185 will not compress them again; this can be useful when file names were
186 truncated during a file transfer</para>
187 <indexterm zone="ch-system-gzip zforce">
188 <primary sortas="b-zforce">zforce</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 <varlistentry id="zgrep">
194 <term><command>zgrep</command></term>
195 <listitem>
196 <para>Runs <command>grep</command> on gzipped files</para>
197 <indexterm zone="ch-system-gzip zgrep">
198 <primary sortas="b-zgrep">zgrep</primary>
199 </indexterm>
200 </listitem>
201 </varlistentry>
202
203 <varlistentry id="zless">
204 <term><command>zless</command></term>
205 <listitem>
206 <para>Runs <command>less</command> on gzipped files</para>
207 <indexterm zone="ch-system-gzip zless">
208 <primary sortas="b-zless">zless</primary>
209 </indexterm>
210 </listitem>
211 </varlistentry>
212
213 <varlistentry id="zmore">
214 <term><command>zmore</command></term>
215 <listitem>
216 <para>Runs <command>more</command> on gzipped files</para>
217 <indexterm zone="ch-system-gzip zmore">
218 <primary sortas="b-zmore">zmore</primary>
219 </indexterm>
220 </listitem>
221 </varlistentry>
222
223 <varlistentry id="znew">
224 <term><command>znew</command></term>
225 <listitem>
226 <para>Re-compresses files from <command>compress</command> format to
227 <command>gzip</command> format&mdash;<filename
228 class="extension">.Z</filename> to <filename
229 class="extension">.gz</filename></para>
230 <indexterm zone="ch-system-gzip znew">
231 <primary sortas="b-znew">znew</primary>
232 </indexterm>
233 </listitem>
234 </varlistentry>
235
236 </variablelist>
237
238 </sect2>
239
240</sect1>
Note: See TracBrowser for help on using the repository browser.