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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 466d0930 was 3f8be484, checked in by Jim Gifford <clfs@…>, 19 years ago

r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book

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