source: clfs-sysroot/BOOK/final-system/common/gzip.xml@ b8a78d6

Last change on this file since b8a78d6 was 934b2a7, checked in by Joe Ciccone <jciccone@…>, 18 years ago

Updated Gzip to 2.3.6.

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