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

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

Text and entity updates.

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