source: chapter06/bzip2.xml@ 1a017db

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 1a017db was eb6d9eb, checked in by Archaic <archaic@…>, 19 years ago

Updated all chapter 6 build sizes (and chapter7 bootscripts).

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

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