source: final-system/common/gzip.xml@ 7119f7d0

Last change on this file since 7119f7d0 was 8c50f0e, checked in by Jim Gifford <clfs@…>, 19 years ago

r1169@server (orig r1167): chris | 2006-02-11 19:55:38 -0800
Various text updates

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