source: chapter06/bzip2.xml@ 791f8426

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 791f8426 was f639fa9, checked in by Matthew Burgess <matthew@…>, 17 years ago

Upgrade to Bzip2-1.0.4. Fixes #1943.

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

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