source: final-system/common/bzip2.xml@ 6b8c171

Last change on this file since 6b8c171 was dd9906e, checked in by Jim Gifford <clfs@…>, 19 years ago

r1167@server (orig r1165): chris | 2006-02-11 08:13:02 -0800
Added -v to commands in the rest of the book

  • 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-bzip2" role="wrap">
9 <?dbhtml filename="bzip2.html"?>
10
11 <title>Bzip2-&bzip2-version;</title>
12
13 <indexterm zone="ch-system-bzip2">
14 <primary sortas="a-Bzip2">Bzip2</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Bzip2 package contains programs for compressing and
21 decompressing files. Compressing text files with <command>bzip2</command>
22 yields a much better compression percentage than with the traditional
23 <command>gzip</command>.</para>
24
25 <segmentedlist>
26 <segtitle>&dependencies;</segtitle>
27
28 <seglistitem>
29 <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Make,
30 and Patch</seg>
31 </seglistitem>
32 </segmentedlist>
33
34 </sect2>
35
36 <sect2 role="installation">
37 <title>Installation of Bzip2</title>
38
39 <para os="p1">Apply a patch to install the documentation for this
40 package:</para>
41
42<screen os="p2"><userinput>patch -Np1 -i ../&bzip2-docs-patch;</userinput></screen>
43
44 <para os="p3">The <command>bzgrep</command> command does not escape '|' and
45 '&amp;' in filenames passed to it. This allows arbitrary commands to be
46 executed with the privileges of the user running <command>bzgrep</command>.
47 Apply the following patch to address this:</para>
48
49<screen os="p4"><userinput>patch -Np1 -i ../&bzip2-bzgrep-patch;</userinput></screen>
50
51 <para os="a">The Bzip2 package does not contain a <command>configure</command>
52 script. Compile it with:</para>
53
54<screen os="b"><userinput>make -f Makefile-libbz2_so
55make clean</userinput></screen>
56
57 <para os="c">The <parameter>-f</parameter> flag will cause Bzip2 to be built
58 using a different <filename>Makefile</filename> file, in this case the
59 <filename>Makefile-libbz2_so</filename> file, which creates a dynamic
60 <filename class="libraryfile">libbz2.so</filename> library and links the
61 Bzip2 utilities against it.</para>
62
63 <para os="d">Recompile the package using a non-shared library and test it.</para>
64
65<screen os="e"><userinput>make</userinput></screen>
66
67 <para os="f">If reinstalling Bzip2, perform
68 <userinput>rm -vf /usr/bin/bz*</userinput> first, otherwise the
69 following <command>make install</command> will fail.</para>
70
71 <para os="g">Install the programs:</para>
72
73<screen os="h"><userinput>make install</userinput></screen>
74
75 <para os="i">Install the shared <command>bzip2</command> binary into the
76 <filename class="directory">/bin</filename> directory, make
77 some necessary symbolic links, and clean up:</para>
78
79<screen os="j"><userinput>cp -v bzip2-shared /bin/bzip2
80cp -av libbz2.so* /lib
81ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
82rm -v /usr/bin/{bunzip2,bzcat,bzip2}
83ln -sv bzip2 /bin/bunzip2
84ln -sv bzip2 /bin/bzcat</userinput></screen>
85
86 </sect2>
87
88 <sect2 id="contents-bzip2" role="content">
89 <title>Contents of Bzip2</title>
90
91 <segmentedlist>
92 <segtitle>Installed programs</segtitle>
93 <segtitle>Installed libraries</segtitle>
94
95 <seglistitem>
96 <seg>bunzip2 (link to bzip2), bzcat (link to bzip2), bzcmp, bzdiff,
97 bzegrep, bzfgrep, bzgrep, bzip2, bzip2recover, bzless, and bzmore</seg>
98 <seg>libbz2.a, libbz2.so (link to libbz2.so.1.0), libbz2.so.1.0 (link to
99 libbz2.so.&bzip2-version;), and libbz2.so.&bzip2-version;</seg>
100 </seglistitem>
101 </segmentedlist>
102
103 <variablelist>
104 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
105 <?dbfo list-presentation="list"?>
106 <?dbhtml list-presentation="table"?>
107
108 <varlistentry id="bunzip2">
109 <term><command>bunzip2</command></term>
110 <listitem>
111 <para>Decompresses bzipped files</para>
112 <indexterm zone="ch-system-bzip2 bunzip2">
113 <primary sortas="b-bunzip2">bunzip2</primary>
114 </indexterm>
115 </listitem>
116 </varlistentry>
117
118 <varlistentry id="bzcat">
119 <term><command>bzcat</command></term>
120 <listitem>
121 <para>Decompresses to standard output</para>
122 <indexterm zone="ch-system-bzip2 bzcat">
123 <primary sortas="b-bzcat">bzcat</primary>
124 </indexterm>
125 </listitem>
126 </varlistentry>
127
128 <varlistentry id="bzcmp">
129 <term><command>bzcmp</command></term>
130 <listitem>
131 <para>Runs <command>cmp</command> on bzipped files</para>
132 <indexterm zone="ch-system-bzip2 bzcmp">
133 <primary sortas="b-bzcmp">bzcmp</primary>
134 </indexterm>
135 </listitem>
136 </varlistentry>
137
138 <varlistentry id="bzdiff">
139 <term><command>bzdiff</command></term>
140 <listitem>
141 <para>Runs <command>diff</command> on bzipped files</para>
142 <indexterm zone="ch-system-bzip2 bzdiff">
143 <primary sortas="b-bzdiff">bzdiff</primary>
144 </indexterm>
145 </listitem>
146 </varlistentry>
147
148 <varlistentry id="bzgrep">
149 <term><command>bzgrep</command></term>
150 <listitem>
151 <para>Runs <command>grep</command> on bzipped files</para>
152 <indexterm zone="ch-system-bzip2 bzgrep">
153 <primary sortas="b-bzgrep">bzgrep</primary>
154 </indexterm>
155 </listitem>
156 </varlistentry>
157
158 <varlistentry id="bzegrep">
159 <term><command>bzegrep</command></term>
160 <listitem>
161 <para>Runs <command>egrep</command> on bzipped files</para>
162 <indexterm zone="ch-system-bzip2 bzegrep">
163 <primary sortas="b-bzegrep">bzegrep</primary>
164 </indexterm>
165 </listitem>
166 </varlistentry>
167
168 <varlistentry id="bzfgrep">
169 <term><command>bzfgrep</command></term>
170 <listitem>
171 <para>Runs <command>fgrep</command> on bzipped files</para>
172 <indexterm zone="ch-system-bzip2 bzfgrep">
173 <primary sortas="b-bzfgrep">bzfgrep</primary>
174 </indexterm>
175 </listitem>
176 </varlistentry>
177
178 <varlistentry id="bzip2">
179 <term><command>bzip2</command></term>
180 <listitem>
181 <para>Compresses files using the Burrows-Wheeler block sorting text
182 compression algorithm with Huffman coding; the compression rate is
183 better than that achieved by more conventional compressors using
184 <quote>Lempel-Ziv</quote> algorithms, like <command>gzip</command></para>
185 <indexterm zone="ch-system-bzip2 bzip2">
186 <primary sortas="b-bzip2">bzip2</primary>
187 </indexterm>
188 </listitem>
189 </varlistentry>
190
191 <varlistentry id="bzip2recover">
192 <term><command>bzip2recover</command></term>
193 <listitem>
194 <para>Tries to recover data from damaged bzipped files</para>
195 <indexterm zone="ch-system-bzip2 bzip2recover">
196 <primary sortas="b-bzip2recover">bzip2recover</primary>
197 </indexterm>
198 </listitem>
199 </varlistentry>
200
201 <varlistentry id="bzless">
202 <term><command>bzless</command></term>
203 <listitem>
204 <para>Runs <command>less</command> on bzipped files</para>
205 <indexterm zone="ch-system-bzip2 bzless">
206 <primary sortas="b-bzless">bzless</primary>
207 </indexterm>
208 </listitem>
209 </varlistentry>
210
211 <varlistentry id="bzmore">
212 <term><command>bzmore</command></term>
213 <listitem>
214 <para>Runs <command>more</command> on bzipped files</para>
215 <indexterm zone="ch-system-bzip2 bzmore">
216 <primary sortas="b-bzmore">bzmore</primary>
217 </indexterm>
218 </listitem>
219 </varlistentry>
220
221 <varlistentry id="libbz2">
222 <term><filename class="libraryfile">libbz2*</filename></term>
223 <listitem>
224 <para>The library implementing lossless, block-sorting data
225 compression, using the Burrows-Wheeler algorithm</para>
226 <indexterm zone="ch-system-bzip2 libbz2">
227 <primary sortas="c-libbz2*">libbz2*</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 </variablelist>
233
234 </sect2>
235
236</sect1>
Note: See TracBrowser for help on using the repository browser.