source: BOOK/final-system/common/bzip2.xml@ 2476d0e

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 2476d0e was e1153ea, checked in by Jim Gifford <clfs@…>, 19 years ago

r3371@server (orig r1554): chris | 2006-05-10 14:03:44 -0700
Removed dependency info from individual package instructions

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