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