[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 |
|
---|
[3c928f1] | 38 | <para>The <parameter>-f</parameter> flag will cause Bzip2 to be built
|
---|
[ef13657] | 39 | using a different Makefile file, in this case the
|
---|
[73aedd1d] | 40 | <filename>Makefile-libbz2_so</filename> file, which creates a dynamic
|
---|
[ef13657] | 41 | libbz2.so library and links the Bzip2 utilities against it.</para>
|
---|
[73aedd1d] | 42 |
|
---|
| 43 | <para>Compile the package:</para>
|
---|
| 44 |
|
---|
| 45 | <screen><userinput>make</userinput></screen>
|
---|
| 46 |
|
---|
[ef13657] | 47 | <para>If you are reinstalling Bzip2, perform
|
---|
[673b0d8] | 48 | <userinput>rm -f /usr/bin/bz*</userinput> first, otherwise the following
|
---|
[90e3cb3] | 49 | <command>make install</command> will fail.</para>
|
---|
[f2f5117] | 50 |
|
---|
| 51 | <para>Install the programs:</para>
|
---|
[73aedd1d] | 52 |
|
---|
| 53 | <screen><userinput>make install</userinput></screen>
|
---|
| 54 |
|
---|
[ef13657] | 55 | <para>Install the shared <command>bzip2</command> binary into the
|
---|
| 56 | <filename class="directory">/bin</filename> directory, make
|
---|
| 57 | some necessary symbolic links, and clean up:</para>
|
---|
[73aedd1d] | 58 |
|
---|
| 59 | <screen><userinput>cp bzip2-shared /bin/bzip2
|
---|
| 60 | cp -a libbz2.so* /lib
|
---|
| 61 | ln -s ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
|
---|
| 62 | rm /usr/bin/{bunzip2,bzcat,bzip2}
|
---|
| 63 | ln -s bzip2 /bin/bunzip2
|
---|
| 64 | ln -s bzip2 /bin/bzcat</userinput></screen>
|
---|
| 65 |
|
---|
| 66 | </sect2>
|
---|
[6370fa6] | 67 |
|
---|
[5888299] | 68 |
|
---|
[c6cb3aa] | 69 | <sect2 id="contents-bzip2" role="content"><title>Contents of Bzip2</title>
|
---|
[673b0d8] | 70 |
|
---|
[c6cb3aa] | 71 | <segmentedlist>
|
---|
| 72 | <segtitle>Installed programs</segtitle>
|
---|
| 73 | <segtitle>Installed libraries</segtitle>
|
---|
| 74 | <seglistitem><seg>bunzip2 (link to bzip2), bzcat (link to bzip2), bzcmp, bzdiff,
|
---|
| 75 | bzegrep, bzfgrep, bzgrep, bzip2, bzip2recover, bzless and bzmore</seg>
|
---|
| 76 | <seg>libbz2.a, libbz2.so (link to libbz2.so.1.0), libbz2.so.1.0 (link to
|
---|
| 77 | libbz2.so.&bzip2-version;) and libbz2.so.&bzip2-version;</seg></seglistitem>
|
---|
| 78 | </segmentedlist>
|
---|
[673b0d8] | 79 |
|
---|
[c6cb3aa] | 80 | <variablelist><title>Short descriptions</title>
|
---|
[673b0d8] | 81 |
|
---|
[b8a819f] | 82 | <varlistentry id="bunzip2">
|
---|
| 83 | <term><command>bunzip2</command></term>
|
---|
[c6cb3aa] | 84 | <listitem>
|
---|
[673b0d8] | 85 | <indexterm zone="ch-system-bzip2 bunzip2"><primary sortas="b-bunzip2">bunzip2</primary></indexterm>
|
---|
[c6cb3aa] | 86 | <para>decompresses bzipped files.</para>
|
---|
| 87 | </listitem>
|
---|
| 88 | </varlistentry>
|
---|
[673b0d8] | 89 |
|
---|
[b8a819f] | 90 | <varlistentry id="bzcat">
|
---|
| 91 | <term><command>bzcat</command></term>
|
---|
[c6cb3aa] | 92 | <listitem>
|
---|
[673b0d8] | 93 | <indexterm zone="ch-system-bzip2 bzcat"><primary sortas="b-bzcat">bzcat</primary></indexterm>
|
---|
[c6cb3aa] | 94 | <para>decompresses to standard output.</para>
|
---|
| 95 | </listitem>
|
---|
| 96 | </varlistentry>
|
---|
[673b0d8] | 97 |
|
---|
[b8a819f] | 98 | <varlistentry id="bzcmp">
|
---|
| 99 | <term><command>bzcmp</command></term>
|
---|
[c6cb3aa] | 100 | <listitem>
|
---|
[673b0d8] | 101 | <indexterm zone="ch-system-bzip2 bzcmp"><primary sortas="b-bzcmp">bzcmp</primary></indexterm>
|
---|
[3c928f1] | 102 | <para>runs <command>cmp</command> on bzipped files.</para>
|
---|
[c6cb3aa] | 103 | </listitem>
|
---|
| 104 | </varlistentry>
|
---|
[673b0d8] | 105 |
|
---|
[b8a819f] | 106 | <varlistentry id="bzdiff">
|
---|
| 107 | <term><command>bzdiff</command></term>
|
---|
[c6cb3aa] | 108 | <listitem>
|
---|
[673b0d8] | 109 | <indexterm zone="ch-system-bzip2 bzdiff"><primary sortas="b-bzdiff">bzdiff</primary></indexterm>
|
---|
[3c928f1] | 110 | <para>runs <command>diff</command> on bzipped files.</para>
|
---|
[c6cb3aa] | 111 | </listitem>
|
---|
| 112 | </varlistentry>
|
---|
[73aedd1d] | 113 |
|
---|
[b8a819f] | 114 | <varlistentry id="bzgrep">
|
---|
| 115 | <term><command>bzgrep</command></term>
|
---|
[c6cb3aa] | 116 | <listitem>
|
---|
[673b0d8] | 117 | <indexterm zone="ch-system-bzip2 bzgrep"><primary sortas="b-bzgrep">bzgrep</primary></indexterm>
|
---|
[ef13657] | 118 | <para>runs <command>grep</command> on bzipped files.</para>
|
---|
| 119 | </listitem>
|
---|
| 120 | </varlistentry>
|
---|
| 121 |
|
---|
| 122 | <varlistentry id="bzegrep">
|
---|
| 123 | <term><command>bzegrep</command></term>
|
---|
| 124 | <listitem>
|
---|
| 125 | <indexterm zone="ch-system-bzip2 bzegrep"><primary sortas="b-bzegrep">bzegrep</primary></indexterm>
|
---|
| 126 | <para>runs <command>egrep</command> on bzipped files.</para>
|
---|
| 127 | </listitem>
|
---|
| 128 | </varlistentry>
|
---|
| 129 |
|
---|
| 130 | <varlistentry id="bzfgrep">
|
---|
| 131 | <term><command>bzfgrep</command></term>
|
---|
| 132 | <listitem>
|
---|
| 133 | <indexterm zone="ch-system-bzip2 bzfgrep"><primary sortas="b-bzfgrep">bzfgrep</primary></indexterm>
|
---|
| 134 | <para>runs <command>fgrep</command> on bzipped files.</para>
|
---|
[c6cb3aa] | 135 | </listitem>
|
---|
| 136 | </varlistentry>
|
---|
[673b0d8] | 137 |
|
---|
[b8a819f] | 138 | <varlistentry id="bzip2">
|
---|
| 139 | <term><command>bzip2</command></term>
|
---|
[c6cb3aa] | 140 | <listitem>
|
---|
[673b0d8] | 141 | <indexterm zone="ch-system-bzip2 bzip2"><primary sortas="b-bzip2">bzip2</primary></indexterm>
|
---|
[ef13657] | 142 | <para>compresses files using the Burrows-Wheeler block sorting text
|
---|
| 143 | compression algorithm with Huffman coding. The compression rate is
|
---|
| 144 | better than that achieved by more conventional compressors using
|
---|
| 145 | LZ77/LZ78, like <command>gzip</command>.</para>
|
---|
[c6cb3aa] | 146 | </listitem>
|
---|
| 147 | </varlistentry>
|
---|
[673b0d8] | 148 |
|
---|
[b8a819f] | 149 | <varlistentry id="bzip2recover">
|
---|
| 150 | <term><command>bzip2recover</command></term>
|
---|
[c6cb3aa] | 151 | <listitem>
|
---|
[673b0d8] | 152 | <indexterm zone="ch-system-bzip2 bzip2recover"><primary sortas="b-bzip2recover">bzip2recover</primary></indexterm>
|
---|
[3c928f1] | 153 | <para>tries to recover data from damaged bzipped files.</para>
|
---|
[c6cb3aa] | 154 | </listitem>
|
---|
| 155 | </varlistentry>
|
---|
[673b0d8] | 156 |
|
---|
[b8a819f] | 157 | <varlistentry id="bzless">
|
---|
| 158 | <term><command>bzless</command></term>
|
---|
[c6cb3aa] | 159 | <listitem>
|
---|
[673b0d8] | 160 | <indexterm zone="ch-system-bzip2 bzless"><primary sortas="b-bzless">bzless</primary></indexterm>
|
---|
[3c928f1] | 161 | <para>runs <command>less</command> on bzipped files.</para>
|
---|
[c6cb3aa] | 162 | </listitem>
|
---|
| 163 | </varlistentry>
|
---|
[673b0d8] | 164 |
|
---|
[b8a819f] | 165 | <varlistentry id="bzmore">
|
---|
| 166 | <term><command>bzmore</command></term>
|
---|
[c6cb3aa] | 167 | <listitem>
|
---|
[673b0d8] | 168 | <indexterm zone="ch-system-bzip2 bzmore"><primary sortas="b-bzmore">bzmore</primary></indexterm>
|
---|
[3c928f1] | 169 | <para>runs <command>more</command> on bzipped files.</para>
|
---|
[c6cb3aa] | 170 | </listitem>
|
---|
| 171 | </varlistentry>
|
---|
[673b0d8] | 172 |
|
---|
[b8a819f] | 173 | <varlistentry id="libbz2">
|
---|
[e63529b] | 174 | <term><filename class="libraryfile">libbz2*</filename></term>
|
---|
[c6cb3aa] | 175 | <listitem>
|
---|
[673b0d8] | 176 | <indexterm zone="ch-system-bzip2 libbz2"><primary sortas="c-libbz2*">libbz2*</primary></indexterm>
|
---|
[ef13657] | 177 | <para>the library implementing lossless, block-sorting data
|
---|
| 178 | compression, using the Burrows-Wheeler algorithm.</para>
|
---|
[c6cb3aa] | 179 | </listitem>
|
---|
| 180 | </varlistentry>
|
---|
| 181 | </variablelist>
|
---|
[673b0d8] | 182 |
|
---|
| 183 | </sect2>
|
---|
| 184 |
|
---|
| 185 | </sect1>
|
---|
[ef13657] | 186 |
|
---|