source: chapter06/gzip.xml@ e4a5635

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 e4a5635 was e4a5635, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Replaced "<" by "less than".

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

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