[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 |
|
---|
[64fc68a] | 35 | <para>Apply a patch to install the documentation for this package:</para>
|
---|
| 36 |
|
---|
| 37 | <screen><userinput>patch -Np1 -i ../&bzip2-docs-patch;</userinput></screen>
|
---|
| 38 |
|
---|
[d3583ed] | 39 | <para>The <command>bzgrep</command> command does not escape '|' and '&' in
|
---|
| 40 | filenames passed to it. This allows arbitrary commands to be executed with the
|
---|
| 41 | privileges of the user running <command>bzgrep</command>. Apply the following to
|
---|
| 42 | address this:</para>
|
---|
[50125de] | 43 |
|
---|
| 44 | <screen><userinput>patch -Np1 -i ../&bzip2-bzgrep-patch;</userinput></screen>
|
---|
| 45 |
|
---|
[73aedd1d] | 46 | <para>Prepare Bzip2 for compilation with:</para>
|
---|
| 47 |
|
---|
| 48 | <screen><userinput>make -f Makefile-libbz2_so
|
---|
| 49 | make clean</userinput></screen>
|
---|
| 50 |
|
---|
[81fd230] | 51 | <para>The <parameter>-f</parameter> flag will cause Bzip2 to be built
|
---|
| 52 | using a different <filename>Makefile</filename> file, in this case the
|
---|
| 53 | <filename>Makefile-libbz2_so</filename> file, which creates a dynamic
|
---|
| 54 | <filename class="libraryfile">libbz2.so</filename> library and links the Bzip2
|
---|
| 55 | utilities against it.</para>
|
---|
| 56 |
|
---|
[73aedd1d] | 57 | <para>Compile the package:</para>
|
---|
| 58 |
|
---|
| 59 | <screen><userinput>make</userinput></screen>
|
---|
| 60 |
|
---|
[c836998] | 61 | <para>To test the results, issue:
|
---|
| 62 | <userinput>make test</userinput>.</para>
|
---|
| 63 |
|
---|
[81fd230] | 64 | <para>If reinstalling Bzip2, perform
|
---|
[5998892] | 65 | <userinput>rm -vf /usr/bin/bz*</userinput> first, otherwise the following
|
---|
[81fd230] | 66 | <command>make install</command> will fail.</para>
|
---|
| 67 |
|
---|
| 68 | <para>Install the programs:</para>
|
---|
[73aedd1d] | 69 |
|
---|
| 70 | <screen><userinput>make install</userinput></screen>
|
---|
| 71 |
|
---|
[81fd230] | 72 | <para>Install the shared <command>bzip2</command> binary into the
|
---|
| 73 | <filename class="directory">/bin</filename> directory, make
|
---|
| 74 | some necessary symbolic links, and clean up:</para>
|
---|
[73aedd1d] | 75 |
|
---|
[5998892] | 76 | <screen><userinput>cp -v bzip2-shared /bin/bzip2
|
---|
| 77 | cp -av libbz2.so* /lib
|
---|
| 78 | ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
|
---|
| 79 | rm -v /usr/bin/{bunzip2,bzcat,bzip2}
|
---|
| 80 | ln -sv bzip2 /bin/bunzip2
|
---|
| 81 | ln -sv bzip2 /bin/bzcat</userinput></screen>
|
---|
[73aedd1d] | 82 |
|
---|
| 83 | </sect2>
|
---|
[6370fa6] | 84 |
|
---|
[5888299] | 85 |
|
---|
[c6cb3aa] | 86 | <sect2 id="contents-bzip2" role="content"><title>Contents of Bzip2</title>
|
---|
[673b0d8] | 87 |
|
---|
[81fd230] | 88 | <segmentedlist>
|
---|
| 89 | <segtitle>Installed programs</segtitle>
|
---|
| 90 | <segtitle>Installed libraries</segtitle>
|
---|
| 91 | <seglistitem><seg>bunzip2 (link to bzip2), bzcat (link to bzip2), bzcmp, bzdiff,
|
---|
| 92 | bzegrep, bzfgrep, bzgrep, bzip2, bzip2recover, bzless, and bzmore</seg>
|
---|
[bc2136e] | 93 | <seg>libbz2.[a,so]</seg></seglistitem>
|
---|
[81fd230] | 94 | </segmentedlist>
|
---|
| 95 |
|
---|
| 96 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 97 | <?dbfo list-presentation="list"?>
|
---|
[8f97096] | 98 | <?dbhtml list-presentation="table"?>
|
---|
[81fd230] | 99 |
|
---|
| 100 | <varlistentry id="bunzip2">
|
---|
| 101 | <term><command>bunzip2</command></term>
|
---|
| 102 | <listitem>
|
---|
| 103 | <para>Decompresses bzipped files</para>
|
---|
| 104 | <indexterm zone="ch-system-bzip2 bunzip2"><primary sortas="b-bunzip2">bunzip2</primary></indexterm>
|
---|
| 105 | </listitem>
|
---|
| 106 | </varlistentry>
|
---|
| 107 |
|
---|
| 108 | <varlistentry id="bzcat">
|
---|
| 109 | <term><command>bzcat</command></term>
|
---|
| 110 | <listitem>
|
---|
| 111 | <para>Decompresses to standard output</para>
|
---|
| 112 | <indexterm zone="ch-system-bzip2 bzcat"><primary sortas="b-bzcat">bzcat</primary></indexterm>
|
---|
| 113 | </listitem>
|
---|
| 114 | </varlistentry>
|
---|
| 115 |
|
---|
| 116 | <varlistentry id="bzcmp">
|
---|
| 117 | <term><command>bzcmp</command></term>
|
---|
| 118 | <listitem>
|
---|
| 119 | <para>Runs <command>cmp</command> on bzipped files</para>
|
---|
| 120 | <indexterm zone="ch-system-bzip2 bzcmp"><primary sortas="b-bzcmp">bzcmp</primary></indexterm>
|
---|
| 121 | </listitem>
|
---|
| 122 | </varlistentry>
|
---|
| 123 |
|
---|
| 124 | <varlistentry id="bzdiff">
|
---|
| 125 | <term><command>bzdiff</command></term>
|
---|
| 126 | <listitem>
|
---|
| 127 | <para>Runs <command>diff</command> on bzipped files</para>
|
---|
| 128 | <indexterm zone="ch-system-bzip2 bzdiff"><primary sortas="b-bzdiff">bzdiff</primary></indexterm>
|
---|
| 129 | </listitem>
|
---|
| 130 | </varlistentry>
|
---|
| 131 |
|
---|
| 132 | <varlistentry id="bzgrep">
|
---|
| 133 | <term><command>bzgrep</command></term>
|
---|
| 134 | <listitem>
|
---|
| 135 | <para>Runs <command>grep</command> on bzipped files</para>
|
---|
| 136 | <indexterm zone="ch-system-bzip2 bzgrep"><primary sortas="b-bzgrep">bzgrep</primary></indexterm>
|
---|
| 137 | </listitem>
|
---|
| 138 | </varlistentry>
|
---|
| 139 |
|
---|
| 140 | <varlistentry id="bzegrep">
|
---|
| 141 | <term><command>bzegrep</command></term>
|
---|
| 142 | <listitem>
|
---|
| 143 | <para>Runs <command>egrep</command> on bzipped files</para>
|
---|
| 144 | <indexterm zone="ch-system-bzip2 bzegrep"><primary sortas="b-bzegrep">bzegrep</primary></indexterm>
|
---|
| 145 | </listitem>
|
---|
| 146 | </varlistentry>
|
---|
| 147 |
|
---|
| 148 | <varlistentry id="bzfgrep">
|
---|
| 149 | <term><command>bzfgrep</command></term>
|
---|
| 150 | <listitem>
|
---|
| 151 | <para>Runs <command>fgrep</command> on bzipped files</para>
|
---|
| 152 | <indexterm zone="ch-system-bzip2 bzfgrep"><primary sortas="b-bzfgrep">bzfgrep</primary></indexterm>
|
---|
| 153 | </listitem>
|
---|
| 154 | </varlistentry>
|
---|
| 155 |
|
---|
| 156 | <varlistentry id="bzip2">
|
---|
| 157 | <term><command>bzip2</command></term>
|
---|
| 158 | <listitem>
|
---|
| 159 | <para>Compresses files using the Burrows-Wheeler block sorting text
|
---|
| 160 | compression algorithm with Huffman coding; the compression rate is
|
---|
| 161 | better than that achieved by more conventional compressors using
|
---|
| 162 | <quote>Lempel-Ziv</quote> algorithms, like <command>gzip</command></para>
|
---|
| 163 | <indexterm zone="ch-system-bzip2 bzip2"><primary sortas="b-bzip2">bzip2</primary></indexterm>
|
---|
| 164 | </listitem>
|
---|
| 165 | </varlistentry>
|
---|
| 166 |
|
---|
| 167 | <varlistentry id="bzip2recover">
|
---|
| 168 | <term><command>bzip2recover</command></term>
|
---|
| 169 | <listitem>
|
---|
| 170 | <para>Tries to recover data from damaged bzipped files</para>
|
---|
| 171 | <indexterm zone="ch-system-bzip2 bzip2recover"><primary sortas="b-bzip2recover">bzip2recover</primary></indexterm>
|
---|
| 172 | </listitem>
|
---|
| 173 | </varlistentry>
|
---|
| 174 |
|
---|
| 175 | <varlistentry id="bzless">
|
---|
| 176 | <term><command>bzless</command></term>
|
---|
| 177 | <listitem>
|
---|
| 178 | <para>Runs <command>less</command> on bzipped files</para>
|
---|
| 179 | <indexterm zone="ch-system-bzip2 bzless"><primary sortas="b-bzless">bzless</primary></indexterm>
|
---|
| 180 | </listitem>
|
---|
| 181 | </varlistentry>
|
---|
| 182 |
|
---|
| 183 | <varlistentry id="bzmore">
|
---|
| 184 | <term><command>bzmore</command></term>
|
---|
| 185 | <listitem>
|
---|
| 186 | <para>Runs <command>more</command> on bzipped files</para>
|
---|
| 187 | <indexterm zone="ch-system-bzip2 bzmore"><primary sortas="b-bzmore">bzmore</primary></indexterm>
|
---|
| 188 | </listitem>
|
---|
| 189 | </varlistentry>
|
---|
| 190 |
|
---|
| 191 | <varlistentry id="libbz2">
|
---|
| 192 | <term><filename class="libraryfile">libbz2*</filename></term>
|
---|
| 193 | <listitem>
|
---|
| 194 | <para>The library implementing lossless, block-sorting data
|
---|
| 195 | compression, using the Burrows-Wheeler algorithm</para>
|
---|
| 196 | <indexterm zone="ch-system-bzip2 libbz2"><primary sortas="c-libbz2*">libbz2*</primary></indexterm>
|
---|
| 197 | </listitem>
|
---|
| 198 | </varlistentry>
|
---|
| 199 | </variablelist>
|
---|
[673b0d8] | 200 |
|
---|
| 201 | </sect2>
|
---|
| 202 |
|
---|
| 203 | </sect1>
|
---|
[81fd230] | 204 |
|
---|