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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since d72fafc6 was aa18ac0, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Updated trunk book sources to use DocBook-XML DTD 4.5.

  • Property mode set to 100644
File size: 7.2 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]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
[e0e40d3]33<screen os="b"><userinput>make -f Makefile-libbz2_so
[3f8be484]34make clean</userinput></screen>
35
[e0e40d3]36 <para os="c">The <parameter>-f</parameter> flag will cause Bzip2 to be built
[3f8be484]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
[ac3984c]42 <para os="d">Recompile the package using a non-shared library and test it:</para>
[3f8be484]43
[e0e40d3]44<screen os="e"><userinput>make</userinput></screen>
[3f8be484]45
[e0e40d3]46 <para os="g">Install the programs:</para>
[3f8be484]47
[05223c1]48<screen os="h"><userinput>make PREFIX=/usr install</userinput></screen>
[3f8be484]49
[e0e40d3]50 <para os="i">Install the shared <command>bzip2</command> binary into the
[3f8be484]51 <filename class="directory">/bin</filename> directory, make
52 some necessary symbolic links, and clean up:</para>
53
[94e6142]54<screen os="j"><userinput>cp -v bzip2-shared /bin/bzip2
55cp -av libbz2.so* /lib
56ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
57rm -v /usr/bin/{bunzip2,bzcat,bzip2}
58ln -sv bzip2 /bin/bunzip2
59ln -sv bzip2 /bin/bzcat</userinput></screen>
[3f8be484]60
61 </sect2>
62
63 <sect2 id="contents-bzip2" role="content">
64 <title>Contents of Bzip2</title>
65
66 <segmentedlist>
67 <segtitle>Installed programs</segtitle>
68 <segtitle>Installed libraries</segtitle>
69
70 <seglistitem>
71 <seg>bunzip2 (link to bzip2), bzcat (link to bzip2), bzcmp, bzdiff,
72 bzegrep, bzfgrep, bzgrep, bzip2, bzip2recover, bzless, and bzmore</seg>
73 <seg>libbz2.a, libbz2.so (link to libbz2.so.1.0), libbz2.so.1.0 (link to
74 libbz2.so.&bzip2-version;), and libbz2.so.&bzip2-version;</seg>
75 </seglistitem>
76 </segmentedlist>
77
78 <variablelist>
79 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
80 <?dbfo list-presentation="list"?>
81 <?dbhtml list-presentation="table"?>
82
83 <varlistentry id="bunzip2">
84 <term><command>bunzip2</command></term>
85 <listitem>
86 <para>Decompresses bzipped files</para>
87 <indexterm zone="ch-system-bzip2 bunzip2">
88 <primary sortas="b-bunzip2">bunzip2</primary>
89 </indexterm>
90 </listitem>
91 </varlistentry>
92
93 <varlistentry id="bzcat">
94 <term><command>bzcat</command></term>
95 <listitem>
96 <para>Decompresses to standard output</para>
97 <indexterm zone="ch-system-bzip2 bzcat">
98 <primary sortas="b-bzcat">bzcat</primary>
99 </indexterm>
100 </listitem>
101 </varlistentry>
102
103 <varlistentry id="bzcmp">
104 <term><command>bzcmp</command></term>
105 <listitem>
106 <para>Runs <command>cmp</command> on bzipped files</para>
107 <indexterm zone="ch-system-bzip2 bzcmp">
108 <primary sortas="b-bzcmp">bzcmp</primary>
109 </indexterm>
110 </listitem>
111 </varlistentry>
112
113 <varlistentry id="bzdiff">
114 <term><command>bzdiff</command></term>
115 <listitem>
116 <para>Runs <command>diff</command> on bzipped files</para>
117 <indexterm zone="ch-system-bzip2 bzdiff">
118 <primary sortas="b-bzdiff">bzdiff</primary>
119 </indexterm>
120 </listitem>
121 </varlistentry>
122
123 <varlistentry id="bzgrep">
124 <term><command>bzgrep</command></term>
125 <listitem>
126 <para>Runs <command>grep</command> on bzipped files</para>
127 <indexterm zone="ch-system-bzip2 bzgrep">
128 <primary sortas="b-bzgrep">bzgrep</primary>
129 </indexterm>
130 </listitem>
131 </varlistentry>
132
133 <varlistentry id="bzegrep">
134 <term><command>bzegrep</command></term>
135 <listitem>
136 <para>Runs <command>egrep</command> on bzipped files</para>
137 <indexterm zone="ch-system-bzip2 bzegrep">
138 <primary sortas="b-bzegrep">bzegrep</primary>
139 </indexterm>
140 </listitem>
141 </varlistentry>
142
143 <varlistentry id="bzfgrep">
144 <term><command>bzfgrep</command></term>
145 <listitem>
146 <para>Runs <command>fgrep</command> on bzipped files</para>
147 <indexterm zone="ch-system-bzip2 bzfgrep">
148 <primary sortas="b-bzfgrep">bzfgrep</primary>
149 </indexterm>
150 </listitem>
151 </varlistentry>
152
153 <varlistentry id="bzip2">
154 <term><command>bzip2</command></term>
155 <listitem>
156 <para>Compresses files using the Burrows-Wheeler block sorting text
157 compression algorithm with Huffman coding; the compression rate is
158 better than that achieved by more conventional compressors using
159 <quote>Lempel-Ziv</quote> algorithms, like <command>gzip</command></para>
160 <indexterm zone="ch-system-bzip2 bzip2">
161 <primary sortas="b-bzip2">bzip2</primary>
162 </indexterm>
163 </listitem>
164 </varlistentry>
165
166 <varlistentry id="bzip2recover">
167 <term><command>bzip2recover</command></term>
168 <listitem>
169 <para>Tries to recover data from damaged bzipped files</para>
170 <indexterm zone="ch-system-bzip2 bzip2recover">
171 <primary sortas="b-bzip2recover">bzip2recover</primary>
172 </indexterm>
173 </listitem>
174 </varlistentry>
175
176 <varlistentry id="bzless">
177 <term><command>bzless</command></term>
178 <listitem>
179 <para>Runs <command>less</command> on bzipped files</para>
180 <indexterm zone="ch-system-bzip2 bzless">
181 <primary sortas="b-bzless">bzless</primary>
182 </indexterm>
183 </listitem>
184 </varlistentry>
185
186 <varlistentry id="bzmore">
187 <term><command>bzmore</command></term>
188 <listitem>
189 <para>Runs <command>more</command> on bzipped files</para>
190 <indexterm zone="ch-system-bzip2 bzmore">
191 <primary sortas="b-bzmore">bzmore</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 <varlistentry id="libbz2">
197 <term><filename class="libraryfile">libbz2*</filename></term>
198 <listitem>
199 <para>The library implementing lossless, block-sorting data
200 compression, using the Burrows-Wheeler algorithm</para>
201 <indexterm zone="ch-system-bzip2 libbz2">
202 <primary sortas="c-libbz2*">libbz2*</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206
207 </variablelist>
208
209 </sect2>
210
211</sect1>
Note: See TracBrowser for help on using the repository browser.