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