[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 |
|
---|
| 46 | <para>Apply a patch to install the documentation for this package:</para>
|
---|
[64fc68a] | 47 |
|
---|
[0445a3d] | 48 | <screen><userinput remap="pre">patch -Np1 -i ../&bzip2-docs-patch;</userinput></screen>
|
---|
[64fc68a] | 49 |
|
---|
[8ef8304] | 50 | <para>Prepare Bzip2 for compilation with:</para>
|
---|
[73aedd1d] | 51 |
|
---|
[0445a3d] | 52 | <screen><userinput remap="make">make -f Makefile-libbz2_so
|
---|
[73aedd1d] | 53 | make clean</userinput></screen>
|
---|
| 54 |
|
---|
[8ef8304] | 55 | <variablelist>
|
---|
| 56 | <title>The meaning of the make parameter:</title>
|
---|
| 57 |
|
---|
| 58 | <varlistentry>
|
---|
| 59 | <term><parameter>-f Makefile-libbz2_so</parameter></term>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>This will cause Bzip2 to be built using a different
|
---|
| 62 | <filename>Makefile</filename> file, in this case the
|
---|
| 63 | <filename>Makefile-libbz2_so</filename> file, which creates a dynamic
|
---|
| 64 | <filename class="libraryfile">libbz2.so</filename> library and links
|
---|
| 65 | the Bzip2 utilities against it.</para>
|
---|
| 66 | </listitem>
|
---|
| 67 | </varlistentry>
|
---|
[81fd230] | 68 |
|
---|
[8ef8304] | 69 | </variablelist>
|
---|
| 70 |
|
---|
| 71 | <para>Compile and test the package:</para>
|
---|
[73aedd1d] | 72 |
|
---|
[0445a3d] | 73 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[73aedd1d] | 74 |
|
---|
[8ef8304] | 75 | <para>Install the programs:</para>
|
---|
[73aedd1d] | 76 |
|
---|
[0445a3d] | 77 | <screen><userinput remap="install">make PREFIX=/usr install</userinput></screen>
|
---|
[73aedd1d] | 78 |
|
---|
[8ef8304] | 79 | <para>Install the shared <command>bzip2</command> binary into the
|
---|
| 80 | <filename class="directory">/bin</filename> directory, make
|
---|
| 81 | some necessary symbolic links, and clean up:</para>
|
---|
[73aedd1d] | 82 |
|
---|
[0445a3d] | 83 | <screen><userinput remap="install">cp -v bzip2-shared /bin/bzip2
|
---|
[5998892] | 84 | cp -av libbz2.so* /lib
|
---|
| 85 | ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
|
---|
| 86 | rm -v /usr/bin/{bunzip2,bzcat,bzip2}
|
---|
| 87 | ln -sv bzip2 /bin/bunzip2
|
---|
| 88 | ln -sv bzip2 /bin/bzcat</userinput></screen>
|
---|
[73aedd1d] | 89 |
|
---|
[8ef8304] | 90 | </sect2>
|
---|
| 91 |
|
---|
| 92 | <sect2 id="contents-bzip2" role="content">
|
---|
| 93 | <title>Contents of Bzip2</title>
|
---|
| 94 |
|
---|
| 95 | <segmentedlist>
|
---|
| 96 | <segtitle>Installed programs</segtitle>
|
---|
| 97 | <segtitle>Installed libraries</segtitle>
|
---|
| 98 |
|
---|
| 99 | <seglistitem>
|
---|
[2791a8e] | 100 | <seg>bunzip2 (link to bzip2), bzcat (link to bzip2), bzcmp (link to
|
---|
| 101 | bzdiff), bzdiff, bzegrep (link to bzgrep), bzfgrep (link to bzgrep),
|
---|
| 102 | bzgrep, bzip2, bzip2recover, bzless (link to bzmore), and bzmore</seg>
|
---|
[0090db5] | 103 | <seg>libbz2.{a,so}</seg>
|
---|
[8ef8304] | 104 | </seglistitem>
|
---|
| 105 | </segmentedlist>
|
---|
| 106 |
|
---|
| 107 | <variablelist>
|
---|
| 108 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 109 | <?dbfo list-presentation="list"?>
|
---|
| 110 | <?dbhtml list-presentation="table"?>
|
---|
| 111 |
|
---|
| 112 | <varlistentry id="bunzip2">
|
---|
| 113 | <term><command>bunzip2</command></term>
|
---|
| 114 | <listitem>
|
---|
| 115 | <para>Decompresses bzipped files</para>
|
---|
| 116 | <indexterm zone="ch-system-bzip2 bunzip2">
|
---|
| 117 | <primary sortas="b-bunzip2">bunzip2</primary>
|
---|
| 118 | </indexterm>
|
---|
| 119 | </listitem>
|
---|
| 120 | </varlistentry>
|
---|
| 121 |
|
---|
| 122 | <varlistentry id="bzcat">
|
---|
| 123 | <term><command>bzcat</command></term>
|
---|
| 124 | <listitem>
|
---|
| 125 | <para>Decompresses to standard output</para>
|
---|
| 126 | <indexterm zone="ch-system-bzip2 bzcat">
|
---|
| 127 | <primary sortas="b-bzcat">bzcat</primary>
|
---|
| 128 | </indexterm>
|
---|
| 129 | </listitem>
|
---|
| 130 | </varlistentry>
|
---|
| 131 |
|
---|
| 132 | <varlistentry id="bzcmp">
|
---|
| 133 | <term><command>bzcmp</command></term>
|
---|
| 134 | <listitem>
|
---|
| 135 | <para>Runs <command>cmp</command> on bzipped files</para>
|
---|
| 136 | <indexterm zone="ch-system-bzip2 bzcmp">
|
---|
| 137 | <primary sortas="b-bzcmp">bzcmp</primary>
|
---|
| 138 | </indexterm>
|
---|
| 139 | </listitem>
|
---|
| 140 | </varlistentry>
|
---|
| 141 |
|
---|
| 142 | <varlistentry id="bzdiff">
|
---|
| 143 | <term><command>bzdiff</command></term>
|
---|
| 144 | <listitem>
|
---|
| 145 | <para>Runs <command>diff</command> on bzipped files</para>
|
---|
| 146 | <indexterm zone="ch-system-bzip2 bzdiff">
|
---|
| 147 | <primary sortas="b-bzdiff">bzdiff</primary>
|
---|
| 148 | </indexterm>
|
---|
| 149 | </listitem>
|
---|
| 150 | </varlistentry>
|
---|
| 151 |
|
---|
| 152 | <varlistentry id="bzgrep">
|
---|
| 153 | <term><command>bzgrep</command></term>
|
---|
| 154 | <listitem>
|
---|
| 155 | <para>Runs <command>grep</command> on bzipped files</para>
|
---|
| 156 | <indexterm zone="ch-system-bzip2 bzgrep">
|
---|
| 157 | <primary sortas="b-bzgrep">bzgrep</primary>
|
---|
| 158 | </indexterm>
|
---|
| 159 | </listitem>
|
---|
| 160 | </varlistentry>
|
---|
| 161 |
|
---|
| 162 | <varlistentry id="bzegrep">
|
---|
| 163 | <term><command>bzegrep</command></term>
|
---|
| 164 | <listitem>
|
---|
| 165 | <para>Runs <command>egrep</command> on bzipped files</para>
|
---|
| 166 | <indexterm zone="ch-system-bzip2 bzegrep">
|
---|
| 167 | <primary sortas="b-bzegrep">bzegrep</primary>
|
---|
| 168 | </indexterm>
|
---|
| 169 | </listitem>
|
---|
| 170 | </varlistentry>
|
---|
| 171 |
|
---|
| 172 | <varlistentry id="bzfgrep">
|
---|
| 173 | <term><command>bzfgrep</command></term>
|
---|
| 174 | <listitem>
|
---|
| 175 | <para>Runs <command>fgrep</command> on bzipped files</para>
|
---|
| 176 | <indexterm zone="ch-system-bzip2 bzfgrep">
|
---|
| 177 | <primary sortas="b-bzfgrep">bzfgrep</primary>
|
---|
| 178 | </indexterm>
|
---|
| 179 | </listitem>
|
---|
| 180 | </varlistentry>
|
---|
| 181 |
|
---|
| 182 | <varlistentry id="bzip2">
|
---|
| 183 | <term><command>bzip2</command></term>
|
---|
| 184 | <listitem>
|
---|
| 185 | <para>Compresses files using the Burrows-Wheeler block sorting text
|
---|
| 186 | compression algorithm with Huffman coding; the compression rate is
|
---|
| 187 | better than that achieved by more conventional compressors using
|
---|
| 188 | <quote>Lempel-Ziv</quote> algorithms, like <command>gzip</command></para>
|
---|
| 189 | <indexterm zone="ch-system-bzip2 bzip2">
|
---|
| 190 | <primary sortas="b-bzip2">bzip2</primary>
|
---|
| 191 | </indexterm>
|
---|
| 192 | </listitem>
|
---|
| 193 | </varlistentry>
|
---|
| 194 |
|
---|
| 195 | <varlistentry id="bzip2recover">
|
---|
| 196 | <term><command>bzip2recover</command></term>
|
---|
| 197 | <listitem>
|
---|
| 198 | <para>Tries to recover data from damaged bzipped files</para>
|
---|
| 199 | <indexterm zone="ch-system-bzip2 bzip2recover">
|
---|
| 200 | <primary sortas="b-bzip2recover">bzip2recover</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
| 204 |
|
---|
| 205 | <varlistentry id="bzless">
|
---|
| 206 | <term><command>bzless</command></term>
|
---|
| 207 | <listitem>
|
---|
| 208 | <para>Runs <command>less</command> on bzipped files</para>
|
---|
| 209 | <indexterm zone="ch-system-bzip2 bzless">
|
---|
| 210 | <primary sortas="b-bzless">bzless</primary>
|
---|
| 211 | </indexterm>
|
---|
| 212 | </listitem>
|
---|
| 213 | </varlistentry>
|
---|
| 214 |
|
---|
| 215 | <varlistentry id="bzmore">
|
---|
| 216 | <term><command>bzmore</command></term>
|
---|
| 217 | <listitem>
|
---|
| 218 | <para>Runs <command>more</command> on bzipped files</para>
|
---|
| 219 | <indexterm zone="ch-system-bzip2 bzmore">
|
---|
| 220 | <primary sortas="b-bzmore">bzmore</primary>
|
---|
| 221 | </indexterm>
|
---|
| 222 | </listitem>
|
---|
| 223 | </varlistentry>
|
---|
| 224 |
|
---|
| 225 | <varlistentry id="libbz2">
|
---|
| 226 | <term><filename class="libraryfile">libbz2*</filename></term>
|
---|
| 227 | <listitem>
|
---|
| 228 | <para>The library implementing lossless, block-sorting data
|
---|
| 229 | compression, using the Burrows-Wheeler algorithm</para>
|
---|
| 230 | <indexterm zone="ch-system-bzip2 libbz2">
|
---|
| 231 | <primary sortas="c-libbz2*">libbz2*</primary>
|
---|
| 232 | </indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
| 235 |
|
---|
| 236 | </variablelist>
|
---|
| 237 |
|
---|
| 238 | </sect2>
|
---|
[673b0d8] | 239 |
|
---|
| 240 | </sect1>
|
---|