[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[1770019] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[673b0d8] | 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
[3e36a78] | 4 | <!ENTITY % patches-entities SYSTEM "../patches.ent">
|
---|
[673b0d8] | 5 | %general-entities;
|
---|
[3e36a78] | 6 | %patches-entities;
|
---|
[673b0d8] | 7 | ]>
|
---|
[81fd230] | 8 | <sect1 id="ch-system-bzip2" role="wrap">
|
---|
[673b0d8] | 9 | <title>Bzip2-&bzip2-version;</title>
|
---|
| 10 | <?dbhtml filename="bzip2.html"?>
|
---|
| 11 |
|
---|
| 12 | <indexterm zone="ch-system-bzip2"><primary sortas="a-Bzip2">Bzip2</primary></indexterm>
|
---|
[6370fa6] | 13 |
|
---|
[a001133] | 14 | <sect2 role="package"><title/>
|
---|
[81fd230] | 15 | <para>The Bzip2 package contains programs for compressing and decompressing
|
---|
[bc2136e] | 16 | files. Compressing text files with <command>bzip2</command> yields a much better
|
---|
[40cb5bf] | 17 | compression percentage than with the traditional <command>gzip</command>.</para>
|
---|
[5888299] | 18 |
|
---|
[a001133] | 19 | <segmentedlist>
|
---|
| 20 | <segtitle>&buildtime;</segtitle>
|
---|
| 21 | <segtitle>&diskspace;</segtitle>
|
---|
[eb6d9eb] | 22 | <seglistitem><seg>0.1 SBU</seg><seg>3.9 MB</seg></seglistitem>
|
---|
[a001133] | 23 | </segmentedlist>
|
---|
[673b0d8] | 24 |
|
---|
[81fd230] | 25 | <segmentedlist>
|
---|
[45992ae] | 26 | <segtitle>&dependencies;</segtitle>
|
---|
[81fd230] | 27 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
| 28 | GCC, Glibc, and Make</seg></seglistitem>
|
---|
| 29 | </segmentedlist>
|
---|
[a001133] | 30 | </sect2>
|
---|
[3554fa3a] | 31 |
|
---|
[a001133] | 32 | <sect2 role="installation">
|
---|
[73aedd1d] | 33 | <title>Installation of Bzip2</title>
|
---|
| 34 |
|
---|
| 35 | <para>Prepare Bzip2 for compilation with:</para>
|
---|
| 36 |
|
---|
| 37 | <screen><userinput>make -f Makefile-libbz2_so
|
---|
| 38 | make clean</userinput></screen>
|
---|
| 39 |
|
---|
[81fd230] | 40 | <para>The <parameter>-f</parameter> flag will cause Bzip2 to be built
|
---|
| 41 | using a different <filename>Makefile</filename> file, in this case the
|
---|
| 42 | <filename>Makefile-libbz2_so</filename> file, which creates a dynamic
|
---|
| 43 | <filename class="libraryfile">libbz2.so</filename> library and links the Bzip2
|
---|
| 44 | utilities against it.</para>
|
---|
| 45 |
|
---|
[73aedd1d] | 46 | <para>Compile the package:</para>
|
---|
| 47 |
|
---|
| 48 | <screen><userinput>make</userinput></screen>
|
---|
| 49 |
|
---|
[c836998] | 50 | <para>To test the results, issue:
|
---|
| 51 | <userinput>make test</userinput>.</para>
|
---|
| 52 |
|
---|
[81fd230] | 53 | <para>If reinstalling Bzip2, perform
|
---|
| 54 | <userinput>rm -f /usr/bin/bz*</userinput> first, otherwise the following
|
---|
| 55 | <command>make install</command> will fail.</para>
|
---|
| 56 |
|
---|
| 57 | <para>Install the programs:</para>
|
---|
[73aedd1d] | 58 |
|
---|
| 59 | <screen><userinput>make install</userinput></screen>
|
---|
| 60 |
|
---|
[81fd230] | 61 | <para>Install the shared <command>bzip2</command> binary into the
|
---|
| 62 | <filename class="directory">/bin</filename> directory, make
|
---|
| 63 | some necessary symbolic links, and clean up:</para>
|
---|
[73aedd1d] | 64 |
|
---|
| 65 | <screen><userinput>cp bzip2-shared /bin/bzip2
|
---|
| 66 | cp -a libbz2.so* /lib
|
---|
| 67 | ln -s ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
|
---|
| 68 | rm /usr/bin/{bunzip2,bzcat,bzip2}
|
---|
| 69 | ln -s bzip2 /bin/bunzip2
|
---|
| 70 | ln -s bzip2 /bin/bzcat</userinput></screen>
|
---|
| 71 |
|
---|
| 72 | </sect2>
|
---|
[6370fa6] | 73 |
|
---|
[5888299] | 74 |
|
---|
[c6cb3aa] | 75 | <sect2 id="contents-bzip2" role="content"><title>Contents of Bzip2</title>
|
---|
[673b0d8] | 76 |
|
---|
[81fd230] | 77 | <segmentedlist>
|
---|
| 78 | <segtitle>Installed programs</segtitle>
|
---|
| 79 | <segtitle>Installed libraries</segtitle>
|
---|
| 80 | <seglistitem><seg>bunzip2 (link to bzip2), bzcat (link to bzip2), bzcmp, bzdiff,
|
---|
| 81 | bzegrep, bzfgrep, bzgrep, bzip2, bzip2recover, bzless, and bzmore</seg>
|
---|
[bc2136e] | 82 | <seg>libbz2.[a,so]</seg></seglistitem>
|
---|
[81fd230] | 83 | </segmentedlist>
|
---|
| 84 |
|
---|
| 85 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 86 | <?dbfo list-presentation="list"?>
|
---|
[8f97096] | 87 | <?dbhtml list-presentation="table"?>
|
---|
[81fd230] | 88 |
|
---|
| 89 | <varlistentry id="bunzip2">
|
---|
| 90 | <term><command>bunzip2</command></term>
|
---|
| 91 | <listitem>
|
---|
| 92 | <para>Decompresses bzipped files</para>
|
---|
| 93 | <indexterm zone="ch-system-bzip2 bunzip2"><primary sortas="b-bunzip2">bunzip2</primary></indexterm>
|
---|
| 94 | </listitem>
|
---|
| 95 | </varlistentry>
|
---|
| 96 |
|
---|
| 97 | <varlistentry id="bzcat">
|
---|
| 98 | <term><command>bzcat</command></term>
|
---|
| 99 | <listitem>
|
---|
| 100 | <para>Decompresses to standard output</para>
|
---|
| 101 | <indexterm zone="ch-system-bzip2 bzcat"><primary sortas="b-bzcat">bzcat</primary></indexterm>
|
---|
| 102 | </listitem>
|
---|
| 103 | </varlistentry>
|
---|
| 104 |
|
---|
| 105 | <varlistentry id="bzcmp">
|
---|
| 106 | <term><command>bzcmp</command></term>
|
---|
| 107 | <listitem>
|
---|
| 108 | <para>Runs <command>cmp</command> on bzipped files</para>
|
---|
| 109 | <indexterm zone="ch-system-bzip2 bzcmp"><primary sortas="b-bzcmp">bzcmp</primary></indexterm>
|
---|
| 110 | </listitem>
|
---|
| 111 | </varlistentry>
|
---|
| 112 |
|
---|
| 113 | <varlistentry id="bzdiff">
|
---|
| 114 | <term><command>bzdiff</command></term>
|
---|
| 115 | <listitem>
|
---|
| 116 | <para>Runs <command>diff</command> on bzipped files</para>
|
---|
| 117 | <indexterm zone="ch-system-bzip2 bzdiff"><primary sortas="b-bzdiff">bzdiff</primary></indexterm>
|
---|
| 118 | </listitem>
|
---|
| 119 | </varlistentry>
|
---|
| 120 |
|
---|
| 121 | <varlistentry id="bzgrep">
|
---|
| 122 | <term><command>bzgrep</command></term>
|
---|
| 123 | <listitem>
|
---|
| 124 | <para>Runs <command>grep</command> on bzipped files</para>
|
---|
| 125 | <indexterm zone="ch-system-bzip2 bzgrep"><primary sortas="b-bzgrep">bzgrep</primary></indexterm>
|
---|
| 126 | </listitem>
|
---|
| 127 | </varlistentry>
|
---|
| 128 |
|
---|
| 129 | <varlistentry id="bzegrep">
|
---|
| 130 | <term><command>bzegrep</command></term>
|
---|
| 131 | <listitem>
|
---|
| 132 | <para>Runs <command>egrep</command> on bzipped files</para>
|
---|
| 133 | <indexterm zone="ch-system-bzip2 bzegrep"><primary sortas="b-bzegrep">bzegrep</primary></indexterm>
|
---|
| 134 | </listitem>
|
---|
| 135 | </varlistentry>
|
---|
| 136 |
|
---|
| 137 | <varlistentry id="bzfgrep">
|
---|
| 138 | <term><command>bzfgrep</command></term>
|
---|
| 139 | <listitem>
|
---|
| 140 | <para>Runs <command>fgrep</command> on bzipped files</para>
|
---|
| 141 | <indexterm zone="ch-system-bzip2 bzfgrep"><primary sortas="b-bzfgrep">bzfgrep</primary></indexterm>
|
---|
| 142 | </listitem>
|
---|
| 143 | </varlistentry>
|
---|
| 144 |
|
---|
| 145 | <varlistentry id="bzip2">
|
---|
| 146 | <term><command>bzip2</command></term>
|
---|
| 147 | <listitem>
|
---|
| 148 | <para>Compresses files using the Burrows-Wheeler block sorting text
|
---|
| 149 | compression algorithm with Huffman coding; the compression rate is
|
---|
| 150 | better than that achieved by more conventional compressors using
|
---|
| 151 | <quote>Lempel-Ziv</quote> algorithms, like <command>gzip</command></para>
|
---|
| 152 | <indexterm zone="ch-system-bzip2 bzip2"><primary sortas="b-bzip2">bzip2</primary></indexterm>
|
---|
| 153 | </listitem>
|
---|
| 154 | </varlistentry>
|
---|
| 155 |
|
---|
| 156 | <varlistentry id="bzip2recover">
|
---|
| 157 | <term><command>bzip2recover</command></term>
|
---|
| 158 | <listitem>
|
---|
| 159 | <para>Tries to recover data from damaged bzipped files</para>
|
---|
| 160 | <indexterm zone="ch-system-bzip2 bzip2recover"><primary sortas="b-bzip2recover">bzip2recover</primary></indexterm>
|
---|
| 161 | </listitem>
|
---|
| 162 | </varlistentry>
|
---|
| 163 |
|
---|
| 164 | <varlistentry id="bzless">
|
---|
| 165 | <term><command>bzless</command></term>
|
---|
| 166 | <listitem>
|
---|
| 167 | <para>Runs <command>less</command> on bzipped files</para>
|
---|
| 168 | <indexterm zone="ch-system-bzip2 bzless"><primary sortas="b-bzless">bzless</primary></indexterm>
|
---|
| 169 | </listitem>
|
---|
| 170 | </varlistentry>
|
---|
| 171 |
|
---|
| 172 | <varlistentry id="bzmore">
|
---|
| 173 | <term><command>bzmore</command></term>
|
---|
| 174 | <listitem>
|
---|
| 175 | <para>Runs <command>more</command> on bzipped files</para>
|
---|
| 176 | <indexterm zone="ch-system-bzip2 bzmore"><primary sortas="b-bzmore">bzmore</primary></indexterm>
|
---|
| 177 | </listitem>
|
---|
| 178 | </varlistentry>
|
---|
| 179 |
|
---|
| 180 | <varlistentry id="libbz2">
|
---|
| 181 | <term><filename class="libraryfile">libbz2*</filename></term>
|
---|
| 182 | <listitem>
|
---|
| 183 | <para>The library implementing lossless, block-sorting data
|
---|
| 184 | compression, using the Burrows-Wheeler algorithm</para>
|
---|
| 185 | <indexterm zone="ch-system-bzip2 libbz2"><primary sortas="c-libbz2*">libbz2*</primary></indexterm>
|
---|
| 186 | </listitem>
|
---|
| 187 | </varlistentry>
|
---|
| 188 | </variablelist>
|
---|
[673b0d8] | 189 |
|
---|
| 190 | </sect2>
|
---|
| 191 |
|
---|
| 192 | </sect1>
|
---|
[81fd230] | 193 |
|
---|