source: chapter06/bzip2.xml@ 456a1d92

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.0 6.1 6.1.1 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 456a1d92 was b8a819f, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Changed the id's location in the Short descriptions sections to fix a bug in the PDF generation.

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

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