source: chapter06/gzip.xml@ b55b3c4

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since b55b3c4 was 3685bb6, checked in by Jeremy Huntwork <jhuntwork@…>, 18 years ago

Merged alphabetical branch to trunk.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7489 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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