[673b0d8] | 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 | ]>
|
---|
[3be4d97] | 6 | <sect1 id="ch-system-bzip2" xreflabel="Bzip2">
|
---|
[673b0d8] | 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>
|
---|
[6370fa6] | 11 |
|
---|
[5888299] | 12 | <para>The Bzip2 package contains programs for compressing and decompressing
|
---|
| 13 | files. On text files they achieve a much better compression than the
|
---|
[90e3cb3] | 14 | traditional <command>gzip</command>.</para>
|
---|
[5888299] | 15 |
|
---|
[673b0d8] | 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>
|
---|
[3554fa3a] | 21 |
|
---|
[73aedd1d] | 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
|
---|
[5763f675] | 35 | <filename>libbz2.so</filename> library and links the Bzip2 utilities
|
---|
[73aedd1d] | 36 | against it.</para>
|
---|
| 37 |
|
---|
| 38 | <para>Compile the package:</para>
|
---|
| 39 |
|
---|
| 40 | <screen><userinput>make</userinput></screen>
|
---|
| 41 |
|
---|
[673b0d8] | 42 | <para>If you are reinstalling Bzip2, you need to do
|
---|
| 43 | <userinput>rm -f /usr/bin/bz*</userinput> first, otherwise the following
|
---|
[90e3cb3] | 44 | <command>make install</command> will fail.</para>
|
---|
[f2f5117] | 45 |
|
---|
| 46 | <para>Install the programs:</para>
|
---|
[73aedd1d] | 47 |
|
---|
| 48 | <screen><userinput>make install</userinput></screen>
|
---|
| 49 |
|
---|
[673b0d8] | 50 | <para>Now install the shared <command>bzip2</command> binary into the
|
---|
[73aedd1d] | 51 | <filename class="directory">/bin</filename> directory, then make some
|
---|
[5763f675] | 52 | necessary symbolic links, and clean up:</para>
|
---|
[73aedd1d] | 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>
|
---|
[6370fa6] | 63 |
|
---|
[5888299] | 64 |
|
---|
[673b0d8] | 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>
|
---|
[73aedd1d] | 90 |
|
---|
[673b0d8] | 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>
|
---|