source: chapter06/bzip2.xml@ b0e583b

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.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 b0e583b was fe05b08, checked in by Bruce Dubbs <bdubbs@…>, 14 years ago

Add installed directories information to
each package. Thanks to Chris Staub for the patch.

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

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