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