source: chapter06/bzip2.xml@ 0c43171

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 0c43171 was 673b0d8, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Merged newxml into HEAD

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

  • Property mode set to 100644
File size: 4.6 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">
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<para>The Bzip2 package contains programs for compressing and decompressing
13files. On text files they achieve a much better compression than the
14traditional <command>gzip</command>.</para>
15
16<screen>&buildtime; 0.1 SBU
17&diskspace; 3.0 MB</screen>
18
19<para>Bzip2 installation depends on: Bash, Binutils, Coreutils, Diffutils,
20GCC, Glibc, Make.</para>
21
22
23
24<sect2>
25<title>Installation of Bzip2</title>
26
27<para>Prepare Bzip2 for compilation with:</para>
28
29<screen><userinput>make -f Makefile-libbz2_so
30make clean</userinput></screen>
31
32<para>The <emphasis>-f</emphasis> flag will cause Bzip2 to be built
33using a different <filename>Makefile</filename> file, in this case the
34<filename>Makefile-libbz2_so</filename> file, which creates a dynamic
35<filename>libbz2.so</filename> library and links the Bzip2 utilities
36against it.</para>
37
38<para>Compile the package:</para>
39
40<screen><userinput>make</userinput></screen>
41
42<para>If you are reinstalling Bzip2, you need to do
43<userinput>rm -f /usr/bin/bz*</userinput> first, otherwise the following
44<command>make install</command> will fail.</para>
45
46<para>Install the programs:</para>
47
48<screen><userinput>make install</userinput></screen>
49
50<para>Now install the shared <command>bzip2</command> binary into the
51<filename class="directory">/bin</filename> directory, then make some
52necessary symbolic links, and clean up:</para>
53
54<screen><userinput>cp bzip2-shared /bin/bzip2
55cp -a libbz2.so* /lib
56ln -s ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
57rm /usr/bin/{bunzip2,bzcat,bzip2}
58mv /usr/bin/{bzip2recover,bzless,bzmore} /bin
59ln -s bzip2 /bin/bunzip2
60ln -s bzip2 /bin/bzcat</userinput></screen>
61
62</sect2>
63
64
65<sect2 id="contents-bzip2"><title>Contents of Bzip2</title>
66
67<para><emphasis>Installed programs</emphasis>: bunzip2 (link to bzip2), bzcat
68(link to bzip2), bzcmp, bzdiff, bzegrep, bzfgrep, bzgrep, bzip2, bzip2recover,
69bzless and bzmore</para>
70
71<para><emphasis>Installed libraries</emphasis>: libbz2.a, libbz2.so (link to
72libbz2.so.1.0), libbz2.so.1.0 (link to libbz2.so.&bzip2-version;) and
73libbz2.so.&bzip2-version;</para>
74
75</sect2>
76
77<sect2><title>Short descriptions</title>
78
79<indexterm zone="ch-system-bzip2 bunzip2"><primary sortas="b-bunzip2">bunzip2</primary></indexterm>
80<para id="bunzip2"><command>bunzip2</command> decompresses bzipped files.</para>
81
82<indexterm zone="ch-system-bzip2 bzcat"><primary sortas="b-bzcat">bzcat</primary></indexterm>
83<para id="bzcat"><command>bzcat</command> decompresses to standard output.</para>
84
85<indexterm zone="ch-system-bzip2 bzcmp"><primary sortas="b-bzcmp">bzcmp</primary></indexterm>
86<para id="bzcmp"><command>bzcmp</command> runs cmp on bzipped files.</para>
87
88<indexterm zone="ch-system-bzip2 bzdiff"><primary sortas="b-bzdiff">bzdiff</primary></indexterm>
89<para id="bzdiff"><command>bzdiff</command> runs diff on bzipped files.</para>
90
91<indexterm zone="ch-system-bzip2 bzgrep"><primary sortas="b-bzgrep">bzgrep</primary></indexterm>
92<para id="bzgrep"><command>bzgrep</command> and friends run grep on bzipped files.</para>
93
94<indexterm zone="ch-system-bzip2 bzip2"><primary sortas="b-bzip2">bzip2</primary></indexterm>
95<para id="bzip2"><command>bzip2</command> compresses files using the Burrows-Wheeler
96block sorting text compression algorithm with Huffman coding. The compression
97rate is generally considerably better than that achieved by more conventional
98compressors using LZ77/LZ78, like <command>gzip</command>.</para>
99
100<indexterm zone="ch-system-bzip2 bzip2recover"><primary sortas="b-bzip2recover">bzip2recover</primary></indexterm>
101<para id="bzip2recover"><command>bzip2recover</command> tries to recover data from damaged
102bzip2 files.</para>
103
104<indexterm zone="ch-system-bzip2 bzless"><primary sortas="b-bzless">bzless</primary></indexterm>
105<para id="bzless"><command>bzless</command> runs less on bzipped files.</para>
106
107<indexterm zone="ch-system-bzip2 bzmore"><primary sortas="b-bzmore">bzmore</primary></indexterm>
108<para id="bzmore"><command>bzmore</command> runs more on bzipped files.</para>
109
110<indexterm zone="ch-system-bzip2 libbz2"><primary sortas="c-libbz2*">libbz2*</primary></indexterm>
111<para id="libbz2"><command>libbz2*</command> is the library implementing lossless,
112block-sorting data compression, using the Burrows-Wheeler algorithm.</para>
113
114</sect2>
115
116
117
118</sect1>
Note: See TracBrowser for help on using the repository browser.