source: chapter06/bzip2.xml@ 835892c

Last change on this file since 835892c was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

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

  • Property mode set to 100644
File size: 5.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE section [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-system-bzip2" xreflabel="Bzip2" role="wrap">
8<title>Bzip2-&bzip2-version;</title>
9<?dbhtml filename="bzip2.html"?>
10
11<indexterm zone="ch-system-bzip2"><primary sortas="a-Bzip2">Bzip2</primary></indexterm>
12
13<section role="package"><title/>
14<para>The Bzip2 package contains programs for compressing and decompressing
15files. On text files they achieve a much better compression than the
16traditional <command>gzip</command>.</para>
17
18<segmentedlist>
19<segtitle>&buildtime;</segtitle>
20<segtitle>&diskspace;</segtitle>
21<seglistitem><seg>0.1 SBU</seg><seg>3.0 MB</seg></seglistitem>
22</segmentedlist>
23
24<segmentedlist>
25<segtitle>Bzip2 installation depends on</segtitle>
26<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
27GCC, Glibc, Make</seg></seglistitem>
28</segmentedlist>
29</section>
30
31<section role="installation">
32<title>Installation of Bzip2</title>
33
34<para>Prepare Bzip2 for compilation with:</para>
35
36<screen><userinput>make -f Makefile-libbz2_so
37make clean</userinput></screen>
38
39<para>The <parameter>-f</parameter> flag will cause Bzip2 to be built
40using a different <filename>Makefile</filename> file, in this case the
41<filename>Makefile-libbz2_so</filename> file, which creates a dynamic
42<filename class="libraryfile">libbz2.so</filename> library and links the Bzip2 utilities
43against it.</para>
44
45<para>Compile the package:</para>
46
47<screen><userinput>make</userinput></screen>
48
49<para>If you are reinstalling Bzip2, you need to do
50<userinput>rm -f /usr/bin/bz*</userinput> first, otherwise the following
51<command>make install</command> will fail.</para>
52
53<para>Install the programs:</para>
54
55<screen><userinput>make install</userinput></screen>
56
57<para>Now install the shared <command>bzip2</command> binary into the
58<filename class="directory">/bin</filename> directory, then make some
59necessary symbolic links, and clean up:</para>
60
61<screen><userinput>cp bzip2-shared /bin/bzip2
62cp -a libbz2.so* /lib
63ln -s ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
64rm /usr/bin/{bunzip2,bzcat,bzip2}
65ln -s bzip2 /bin/bunzip2
66ln -s bzip2 /bin/bzcat</userinput></screen>
67
68</section>
69
70
71<section xml:id="contents-bzip2" role="content"><title>Contents of Bzip2</title>
72
73<segmentedlist>
74<segtitle>Installed programs</segtitle>
75<segtitle>Installed libraries</segtitle>
76<seglistitem><seg>bunzip2 (link to bzip2), bzcat (link to bzip2), bzcmp, bzdiff,
77bzegrep, bzfgrep, bzgrep, bzip2, bzip2recover, bzless and bzmore</seg>
78<seg>libbz2.a, libbz2.so (link to libbz2.so.1.0), libbz2.so.1.0 (link to
79libbz2.so.&bzip2-version;) and libbz2.so.&bzip2-version;</seg></seglistitem>
80</segmentedlist>
81
82<variablelist><title>Short descriptions</title>
83
84<varlistentry xml:id="bunzip2">
85<term><command>bunzip2</command></term>
86<listitem>
87<indexterm zone="ch-system-bzip2 bunzip2"><primary sortas="b-bunzip2">bunzip2</primary></indexterm>
88<para>decompresses bzipped files.</para>
89</listitem>
90</varlistentry>
91
92<varlistentry xml:id="bzcat">
93<term><command>bzcat</command></term>
94<listitem>
95<indexterm zone="ch-system-bzip2 bzcat"><primary sortas="b-bzcat">bzcat</primary></indexterm>
96<para>decompresses to standard output.</para>
97</listitem>
98</varlistentry>
99
100<varlistentry xml:id="bzcmp">
101<term><command>bzcmp</command></term>
102<listitem>
103<indexterm zone="ch-system-bzip2 bzcmp"><primary sortas="b-bzcmp">bzcmp</primary></indexterm>
104<para>runs <command>cmp</command> on bzipped files.</para>
105</listitem>
106</varlistentry>
107
108<varlistentry xml:id="bzdiff">
109<term><command>bzdiff</command></term>
110<listitem>
111<indexterm zone="ch-system-bzip2 bzdiff"><primary sortas="b-bzdiff">bzdiff</primary></indexterm>
112<para>runs <command>diff</command> on bzipped files.</para>
113</listitem>
114</varlistentry>
115
116<varlistentry xml:id="bzgrep">
117<term><command>bzgrep</command></term>
118<listitem>
119<indexterm zone="ch-system-bzip2 bzgrep"><primary sortas="b-bzgrep">bzgrep</primary></indexterm>
120<para>and friends run <command>grep</command> on bzipped files.</para>
121</listitem>
122</varlistentry>
123
124<varlistentry xml:id="bzip2">
125<term><command>bzip2</command></term>
126<listitem>
127<indexterm zone="ch-system-bzip2 bzip2"><primary sortas="b-bzip2">bzip2</primary></indexterm>
128<para>compresses files using the Burrows-Wheeler
129block sorting text compression algorithm with Huffman coding. The compression
130rate is generally considerably better than that achieved by more conventional
131compressors using LZ77/LZ78, like <command>gzip</command>.</para>
132</listitem>
133</varlistentry>
134
135<varlistentry xml:id="bzip2recover">
136<term><command>bzip2recover</command></term>
137<listitem>
138<indexterm zone="ch-system-bzip2 bzip2recover"><primary sortas="b-bzip2recover">bzip2recover</primary></indexterm>
139<para>tries to recover data from damaged bzipped files.</para>
140</listitem>
141</varlistentry>
142
143<varlistentry xml:id="bzless">
144<term><command>bzless</command></term>
145<listitem>
146<indexterm zone="ch-system-bzip2 bzless"><primary sortas="b-bzless">bzless</primary></indexterm>
147<para>runs <command>less</command> on bzipped files.</para>
148</listitem>
149</varlistentry>
150
151<varlistentry xml:id="bzmore">
152<term><command>bzmore</command></term>
153<listitem>
154<indexterm zone="ch-system-bzip2 bzmore"><primary sortas="b-bzmore">bzmore</primary></indexterm>
155<para>runs <command>more</command> on bzipped files.</para>
156</listitem>
157</varlistentry>
158
159<varlistentry xml:id="libbz2">
160<term><filename class="libraryfile">libbz2*</filename></term>
161<listitem>
162<indexterm zone="ch-system-bzip2 libbz2"><primary sortas="c-libbz2*">libbz2*</primary></indexterm>
163<para>is the library implementing lossless,
164block-sorting data compression, using the Burrows-Wheeler algorithm.</para>
165</listitem>
166</varlistentry>
167</variablelist>
168
169</section>
170
171</section>
Note: See TracBrowser for help on using the repository browser.