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
|
---|
13 | files. On text files they achieve a much better compression than the
|
---|
14 | traditional <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,
|
---|
20 | GCC, 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
|
---|
30 | make clean</userinput></screen>
|
---|
31 |
|
---|
32 | <para>The <emphasis>-f</emphasis> flag will cause Bzip2 to be built
|
---|
33 | using 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
|
---|
36 | against 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
|
---|
52 | necessary symbolic links, and clean up:</para>
|
---|
53 |
|
---|
54 | <screen><userinput>cp bzip2-shared /bin/bzip2
|
---|
55 | cp -a libbz2.so* /lib
|
---|
56 | ln -s ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
|
---|
57 | rm /usr/bin/{bunzip2,bzcat,bzip2}
|
---|
58 | mv /usr/bin/{bzip2recover,bzless,bzmore} /bin
|
---|
59 | ln -s bzip2 /bin/bunzip2
|
---|
60 | ln -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,
|
---|
69 | bzless and bzmore</para>
|
---|
70 |
|
---|
71 | <para><emphasis>Installed libraries</emphasis>: libbz2.a, libbz2.so (link to
|
---|
72 | libbz2.so.1.0), libbz2.so.1.0 (link to libbz2.so.&bzip2-version;) and
|
---|
73 | libbz2.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
|
---|
96 | block sorting text compression algorithm with Huffman coding. The compression
|
---|
97 | rate is generally considerably better than that achieved by more conventional
|
---|
98 | compressors 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
|
---|
102 | bzip2 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,
|
---|
112 | block-sorting data compression, using the Burrows-Wheeler algorithm.</para>
|
---|
113 |
|
---|
114 | </sect2>
|
---|
115 |
|
---|
116 |
|
---|
117 |
|
---|
118 | </sect1>
|
---|