[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[8ef8304] | 7 |
|
---|
[81fd230] | 8 | <sect1 id="ch-system-bzip2" role="wrap">
|
---|
[8ef8304] | 9 | <?dbhtml filename="bzip2.html"?>
|
---|
| 10 |
|
---|
[e747759] | 11 | <sect1info condition="script">
|
---|
| 12 | <productname>bzip2</productname>
|
---|
| 13 | <productnumber>&bzip2-version;</productnumber>
|
---|
| 14 | <address>&bzip2-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
[8ef8304] | 17 | <title>Bzip2-&bzip2-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-system-bzip2">
|
---|
| 20 | <primary sortas="a-Bzip2">Bzip2</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
| 25 |
|
---|
| 26 | <para>The Bzip2 package contains programs for compressing and decompressing
|
---|
| 27 | files. Compressing text files with <command>bzip2</command> yields a much
|
---|
| 28 | better compression percentage than with the traditional
|
---|
| 29 | <command>gzip</command>.</para>
|
---|
[673b0d8] | 30 |
|
---|
[8ef8304] | 31 | <segmentedlist>
|
---|
| 32 | <segtitle>&buildtime;</segtitle>
|
---|
| 33 | <segtitle>&diskspace;</segtitle>
|
---|
[6370fa6] | 34 |
|
---|
[8ef8304] | 35 | <seglistitem>
|
---|
[e4a5635] | 36 | <seg>&bzip2-ch6-sbu;</seg>
|
---|
| 37 | <seg>&bzip2-ch6-du;</seg>
|
---|
[8ef8304] | 38 | </seglistitem>
|
---|
| 39 | </segmentedlist>
|
---|
[5888299] | 40 |
|
---|
[8ef8304] | 41 | </sect2>
|
---|
[73aedd1d] | 42 |
|
---|
[8ef8304] | 43 | <sect2 role="installation">
|
---|
| 44 | <title>Installation of Bzip2</title>
|
---|
| 45 |
|
---|
[eeee6604] | 46 | <para>Apply a patch that will install the documentation for this package:</para>
|
---|
[64fc68a] | 47 |
|
---|
[eeee6604] | 48 | <screen><userinput remap="pre">patch -Np1 -i ../&bzip2-docs-patch;</userinput></screen>
|
---|
[64fc68a] | 49 |
|
---|
[1442d77] | 50 | <para>The following command ensures installation of symbolic links are relative:</para>
|
---|
| 51 |
|
---|
| 52 | <screen><userinput remap="pre">sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile</userinput></screen>
|
---|
| 53 |
|
---|
[8ef8304] | 54 | <para>Prepare Bzip2 for compilation with:</para>
|
---|
[73aedd1d] | 55 |
|
---|
[0445a3d] | 56 | <screen><userinput remap="make">make -f Makefile-libbz2_so
|
---|
[73aedd1d] | 57 | make clean</userinput></screen>
|
---|
| 58 |
|
---|
[8ef8304] | 59 | <variablelist>
|
---|
| 60 | <title>The meaning of the make parameter:</title>
|
---|
| 61 |
|
---|
| 62 | <varlistentry>
|
---|
| 63 | <term><parameter>-f Makefile-libbz2_so</parameter></term>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>This will cause Bzip2 to be built using a different
|
---|
| 66 | <filename>Makefile</filename> file, in this case the
|
---|
| 67 | <filename>Makefile-libbz2_so</filename> file, which creates a dynamic
|
---|
| 68 | <filename class="libraryfile">libbz2.so</filename> library and links
|
---|
| 69 | the Bzip2 utilities against it.</para>
|
---|
| 70 | </listitem>
|
---|
| 71 | </varlistentry>
|
---|
[81fd230] | 72 |
|
---|
[8ef8304] | 73 | </variablelist>
|
---|
| 74 |
|
---|
| 75 | <para>Compile and test the package:</para>
|
---|
[73aedd1d] | 76 |
|
---|
[0445a3d] | 77 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[73aedd1d] | 78 |
|
---|
[8ef8304] | 79 | <para>Install the programs:</para>
|
---|
[73aedd1d] | 80 |
|
---|
[0445a3d] | 81 | <screen><userinput remap="install">make PREFIX=/usr install</userinput></screen>
|
---|
[73aedd1d] | 82 |
|
---|
[8ef8304] | 83 | <para>Install the shared <command>bzip2</command> binary into the
|
---|
| 84 | <filename class="directory">/bin</filename> directory, make
|
---|
| 85 | some necessary symbolic links, and clean up:</para>
|
---|
[73aedd1d] | 86 |
|
---|
[0445a3d] | 87 | <screen><userinput remap="install">cp -v bzip2-shared /bin/bzip2
|
---|
[5998892] | 88 | cp -av libbz2.so* /lib
|
---|
| 89 | ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
|
---|
| 90 | rm -v /usr/bin/{bunzip2,bzcat,bzip2}
|
---|
| 91 | ln -sv bzip2 /bin/bunzip2
|
---|
| 92 | ln -sv bzip2 /bin/bzcat</userinput></screen>
|
---|
[73aedd1d] | 93 |
|
---|
[8ef8304] | 94 | </sect2>
|
---|
| 95 |
|
---|
| 96 | <sect2 id="contents-bzip2" role="content">
|
---|
| 97 | <title>Contents of Bzip2</title>
|
---|
| 98 |
|
---|
| 99 | <segmentedlist>
|
---|
| 100 | <segtitle>Installed programs</segtitle>
|
---|
| 101 | <segtitle>Installed libraries</segtitle>
|
---|
[fe05b08] | 102 | <segtitle>Installed directory</segtitle>
|
---|
[8ef8304] | 103 |
|
---|
| 104 | <seglistitem>
|
---|
[2791a8e] | 105 | <seg>bunzip2 (link to bzip2), bzcat (link to bzip2), bzcmp (link to
|
---|
| 106 | bzdiff), bzdiff, bzegrep (link to bzgrep), bzfgrep (link to bzgrep),
|
---|
| 107 | bzgrep, bzip2, bzip2recover, bzless (link to bzmore), and bzmore</seg>
|
---|
[0090db5] | 108 | <seg>libbz2.{a,so}</seg>
|
---|
[fe05b08] | 109 | <seg>/usr/share/doc/bzip2-&bzip2-version;</seg>
|
---|
[8ef8304] | 110 | </seglistitem>
|
---|
| 111 | </segmentedlist>
|
---|
| 112 |
|
---|
| 113 | <variablelist>
|
---|
| 114 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 115 | <?dbfo list-presentation="list"?>
|
---|
| 116 | <?dbhtml list-presentation="table"?>
|
---|
| 117 |
|
---|
| 118 | <varlistentry id="bunzip2">
|
---|
| 119 | <term><command>bunzip2</command></term>
|
---|
| 120 | <listitem>
|
---|
| 121 | <para>Decompresses bzipped files</para>
|
---|
| 122 | <indexterm zone="ch-system-bzip2 bunzip2">
|
---|
| 123 | <primary sortas="b-bunzip2">bunzip2</primary>
|
---|
| 124 | </indexterm>
|
---|
| 125 | </listitem>
|
---|
| 126 | </varlistentry>
|
---|
| 127 |
|
---|
| 128 | <varlistentry id="bzcat">
|
---|
| 129 | <term><command>bzcat</command></term>
|
---|
| 130 | <listitem>
|
---|
| 131 | <para>Decompresses to standard output</para>
|
---|
| 132 | <indexterm zone="ch-system-bzip2 bzcat">
|
---|
| 133 | <primary sortas="b-bzcat">bzcat</primary>
|
---|
| 134 | </indexterm>
|
---|
| 135 | </listitem>
|
---|
| 136 | </varlistentry>
|
---|
| 137 |
|
---|
| 138 | <varlistentry id="bzcmp">
|
---|
| 139 | <term><command>bzcmp</command></term>
|
---|
| 140 | <listitem>
|
---|
| 141 | <para>Runs <command>cmp</command> on bzipped files</para>
|
---|
| 142 | <indexterm zone="ch-system-bzip2 bzcmp">
|
---|
| 143 | <primary sortas="b-bzcmp">bzcmp</primary>
|
---|
| 144 | </indexterm>
|
---|
| 145 | </listitem>
|
---|
| 146 | </varlistentry>
|
---|
| 147 |
|
---|
| 148 | <varlistentry id="bzdiff">
|
---|
| 149 | <term><command>bzdiff</command></term>
|
---|
| 150 | <listitem>
|
---|
| 151 | <para>Runs <command>diff</command> on bzipped files</para>
|
---|
| 152 | <indexterm zone="ch-system-bzip2 bzdiff">
|
---|
| 153 | <primary sortas="b-bzdiff">bzdiff</primary>
|
---|
| 154 | </indexterm>
|
---|
| 155 | </listitem>
|
---|
| 156 | </varlistentry>
|
---|
| 157 |
|
---|
| 158 | <varlistentry id="bzegrep">
|
---|
| 159 | <term><command>bzegrep</command></term>
|
---|
| 160 | <listitem>
|
---|
| 161 | <para>Runs <command>egrep</command> on bzipped files</para>
|
---|
| 162 | <indexterm zone="ch-system-bzip2 bzegrep">
|
---|
| 163 | <primary sortas="b-bzegrep">bzegrep</primary>
|
---|
| 164 | </indexterm>
|
---|
| 165 | </listitem>
|
---|
| 166 | </varlistentry>
|
---|
| 167 |
|
---|
| 168 | <varlistentry id="bzfgrep">
|
---|
| 169 | <term><command>bzfgrep</command></term>
|
---|
| 170 | <listitem>
|
---|
| 171 | <para>Runs <command>fgrep</command> on bzipped files</para>
|
---|
| 172 | <indexterm zone="ch-system-bzip2 bzfgrep">
|
---|
| 173 | <primary sortas="b-bzfgrep">bzfgrep</primary>
|
---|
| 174 | </indexterm>
|
---|
| 175 | </listitem>
|
---|
| 176 | </varlistentry>
|
---|
| 177 |
|
---|
[90aae6b] | 178 | <varlistentry id="bzgrep">
|
---|
| 179 | <term><command>bzgrep</command></term>
|
---|
| 180 | <listitem>
|
---|
| 181 | <para>Runs <command>grep</command> on bzipped files</para>
|
---|
| 182 | <indexterm zone="ch-system-bzip2 bzgrep">
|
---|
| 183 | <primary sortas="b-bzgrep">bzgrep</primary>
|
---|
| 184 | </indexterm>
|
---|
| 185 | </listitem>
|
---|
| 186 | </varlistentry>
|
---|
| 187 |
|
---|
[8ef8304] | 188 | <varlistentry id="bzip2">
|
---|
| 189 | <term><command>bzip2</command></term>
|
---|
| 190 | <listitem>
|
---|
| 191 | <para>Compresses files using the Burrows-Wheeler block sorting text
|
---|
| 192 | compression algorithm with Huffman coding; the compression rate is
|
---|
| 193 | better than that achieved by more conventional compressors using
|
---|
| 194 | <quote>Lempel-Ziv</quote> algorithms, like <command>gzip</command></para>
|
---|
| 195 | <indexterm zone="ch-system-bzip2 bzip2">
|
---|
| 196 | <primary sortas="b-bzip2">bzip2</primary>
|
---|
| 197 | </indexterm>
|
---|
| 198 | </listitem>
|
---|
| 199 | </varlistentry>
|
---|
| 200 |
|
---|
| 201 | <varlistentry id="bzip2recover">
|
---|
| 202 | <term><command>bzip2recover</command></term>
|
---|
| 203 | <listitem>
|
---|
| 204 | <para>Tries to recover data from damaged bzipped files</para>
|
---|
| 205 | <indexterm zone="ch-system-bzip2 bzip2recover">
|
---|
| 206 | <primary sortas="b-bzip2recover">bzip2recover</primary>
|
---|
| 207 | </indexterm>
|
---|
| 208 | </listitem>
|
---|
| 209 | </varlistentry>
|
---|
| 210 |
|
---|
| 211 | <varlistentry id="bzless">
|
---|
| 212 | <term><command>bzless</command></term>
|
---|
| 213 | <listitem>
|
---|
| 214 | <para>Runs <command>less</command> on bzipped files</para>
|
---|
| 215 | <indexterm zone="ch-system-bzip2 bzless">
|
---|
| 216 | <primary sortas="b-bzless">bzless</primary>
|
---|
| 217 | </indexterm>
|
---|
| 218 | </listitem>
|
---|
| 219 | </varlistentry>
|
---|
| 220 |
|
---|
| 221 | <varlistentry id="bzmore">
|
---|
| 222 | <term><command>bzmore</command></term>
|
---|
| 223 | <listitem>
|
---|
| 224 | <para>Runs <command>more</command> on bzipped files</para>
|
---|
| 225 | <indexterm zone="ch-system-bzip2 bzmore">
|
---|
| 226 | <primary sortas="b-bzmore">bzmore</primary>
|
---|
| 227 | </indexterm>
|
---|
| 228 | </listitem>
|
---|
| 229 | </varlistentry>
|
---|
| 230 |
|
---|
| 231 | <varlistentry id="libbz2">
|
---|
| 232 | <term><filename class="libraryfile">libbz2*</filename></term>
|
---|
| 233 | <listitem>
|
---|
| 234 | <para>The library implementing lossless, block-sorting data
|
---|
| 235 | compression, using the Burrows-Wheeler algorithm</para>
|
---|
| 236 | <indexterm zone="ch-system-bzip2 libbz2">
|
---|
| 237 | <primary sortas="c-libbz2*">libbz2*</primary>
|
---|
| 238 | </indexterm>
|
---|
| 239 | </listitem>
|
---|
| 240 | </varlistentry>
|
---|
| 241 |
|
---|
| 242 | </variablelist>
|
---|
| 243 |
|
---|
| 244 | </sect2>
|
---|
[673b0d8] | 245 |
|
---|
| 246 | </sect1>
|
---|