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

Last change on this file since 8e23f7c was 02095ae, checked in by Jim Gifford <clfs@…>, 19 years ago

r3633@server (orig r1649): jciccone | 2006-05-25 16:48:42 -0700
Added the Initial clfs-2.0 branch using sysroot builds.

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