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