[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">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[81fd230] | 6 | <sect1 id="ch-system-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/>
|
---|
[81fd230] | 13 | <para>The Bzip2 package contains programs for compressing and decompressing
|
---|
[373a708] | 14 | files. Compressing text files with <command>bzip2</command> yields a much better
|
---|
[9bd36ea] | 15 | compression percentage than with the traditional <command>gzip</command>.</para>
|
---|
[5888299] | 16 |
|
---|
[a001133] | 17 | <segmentedlist>
|
---|
| 18 | <segtitle>&buildtime;</segtitle>
|
---|
| 19 | <segtitle>&diskspace;</segtitle>
|
---|
[fc1024a] | 20 | <seglistitem><seg>0.1 SBU</seg><seg>3.9 MB</seg></seglistitem>
|
---|
[a001133] | 21 | </segmentedlist>
|
---|
[673b0d8] | 22 |
|
---|
[81fd230] | 23 | <segmentedlist>
|
---|
[45992ae] | 24 | <segtitle>&dependencies;</segtitle>
|
---|
[81fd230] | 25 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
| 26 | GCC, Glibc, and Make</seg></seglistitem>
|
---|
| 27 | </segmentedlist>
|
---|
[a001133] | 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 |
|
---|
[81fd230] | 38 | <para>The <parameter>-f</parameter> flag will cause Bzip2 to be built
|
---|
| 39 | using a different <filename>Makefile</filename> file, in this case the
|
---|
| 40 | <filename>Makefile-libbz2_so</filename> file, which creates a dynamic
|
---|
| 41 | <filename class="libraryfile">libbz2.so</filename> library and links the Bzip2
|
---|
| 42 | utilities against it.</para>
|
---|
| 43 |
|
---|
[73aedd1d] | 44 | <para>Compile the package:</para>
|
---|
| 45 |
|
---|
| 46 | <screen><userinput>make</userinput></screen>
|
---|
| 47 |
|
---|
[b845c5f] | 48 | <para>To test the results, issue:
|
---|
| 49 | <userinput>make test</userinput>.</para>
|
---|
| 50 |
|
---|
[81fd230] | 51 | <para>If reinstalling Bzip2, perform
|
---|
| 52 | <userinput>rm -f /usr/bin/bz*</userinput> first, otherwise the following
|
---|
| 53 | <command>make install</command> will fail.</para>
|
---|
| 54 |
|
---|
| 55 | <para>Install the programs:</para>
|
---|
[73aedd1d] | 56 |
|
---|
| 57 | <screen><userinput>make install</userinput></screen>
|
---|
| 58 |
|
---|
[81fd230] | 59 | <para>Install the shared <command>bzip2</command> binary into the
|
---|
| 60 | <filename class="directory">/bin</filename> directory, make
|
---|
| 61 | some necessary symbolic links, and clean up:</para>
|
---|
[73aedd1d] | 62 |
|
---|
| 63 | <screen><userinput>cp bzip2-shared /bin/bzip2
|
---|
| 64 | cp -a libbz2.so* /lib
|
---|
| 65 | ln -s ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
|
---|
| 66 | rm /usr/bin/{bunzip2,bzcat,bzip2}
|
---|
| 67 | ln -s bzip2 /bin/bunzip2
|
---|
| 68 | ln -s bzip2 /bin/bzcat</userinput></screen>
|
---|
| 69 |
|
---|
| 70 | </sect2>
|
---|
[6370fa6] | 71 |
|
---|
[5888299] | 72 |
|
---|
[c6cb3aa] | 73 | <sect2 id="contents-bzip2" role="content"><title>Contents of Bzip2</title>
|
---|
[673b0d8] | 74 |
|
---|
[81fd230] | 75 | <segmentedlist>
|
---|
| 76 | <segtitle>Installed programs</segtitle>
|
---|
| 77 | <segtitle>Installed libraries</segtitle>
|
---|
| 78 | <seglistitem><seg>bunzip2 (link to bzip2), bzcat (link to bzip2), bzcmp, bzdiff,
|
---|
| 79 | bzegrep, bzfgrep, bzgrep, bzip2, bzip2recover, bzless, and bzmore</seg>
|
---|
[373a708] | 80 | <seg>libbz2.[a,so]</seg></seglistitem>
|
---|
[81fd230] | 81 | </segmentedlist>
|
---|
| 82 |
|
---|
| 83 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 84 | <?dbfo list-presentation="list"?>
|
---|
[8f97096] | 85 | <?dbhtml list-presentation="table"?>
|
---|
[81fd230] | 86 |
|
---|
| 87 | <varlistentry id="bunzip2">
|
---|
| 88 | <term><command>bunzip2</command></term>
|
---|
| 89 | <listitem>
|
---|
| 90 | <para>Decompresses bzipped files</para>
|
---|
| 91 | <indexterm zone="ch-system-bzip2 bunzip2"><primary sortas="b-bunzip2">bunzip2</primary></indexterm>
|
---|
| 92 | </listitem>
|
---|
| 93 | </varlistentry>
|
---|
| 94 |
|
---|
| 95 | <varlistentry id="bzcat">
|
---|
| 96 | <term><command>bzcat</command></term>
|
---|
| 97 | <listitem>
|
---|
| 98 | <para>Decompresses to standard output</para>
|
---|
| 99 | <indexterm zone="ch-system-bzip2 bzcat"><primary sortas="b-bzcat">bzcat</primary></indexterm>
|
---|
| 100 | </listitem>
|
---|
| 101 | </varlistentry>
|
---|
| 102 |
|
---|
| 103 | <varlistentry id="bzcmp">
|
---|
| 104 | <term><command>bzcmp</command></term>
|
---|
| 105 | <listitem>
|
---|
| 106 | <para>Runs <command>cmp</command> on bzipped files</para>
|
---|
| 107 | <indexterm zone="ch-system-bzip2 bzcmp"><primary sortas="b-bzcmp">bzcmp</primary></indexterm>
|
---|
| 108 | </listitem>
|
---|
| 109 | </varlistentry>
|
---|
| 110 |
|
---|
| 111 | <varlistentry id="bzdiff">
|
---|
| 112 | <term><command>bzdiff</command></term>
|
---|
| 113 | <listitem>
|
---|
| 114 | <para>Runs <command>diff</command> on bzipped files</para>
|
---|
| 115 | <indexterm zone="ch-system-bzip2 bzdiff"><primary sortas="b-bzdiff">bzdiff</primary></indexterm>
|
---|
| 116 | </listitem>
|
---|
| 117 | </varlistentry>
|
---|
| 118 |
|
---|
| 119 | <varlistentry id="bzgrep">
|
---|
| 120 | <term><command>bzgrep</command></term>
|
---|
| 121 | <listitem>
|
---|
| 122 | <para>Runs <command>grep</command> on bzipped files</para>
|
---|
| 123 | <indexterm zone="ch-system-bzip2 bzgrep"><primary sortas="b-bzgrep">bzgrep</primary></indexterm>
|
---|
| 124 | </listitem>
|
---|
| 125 | </varlistentry>
|
---|
| 126 |
|
---|
| 127 | <varlistentry id="bzegrep">
|
---|
| 128 | <term><command>bzegrep</command></term>
|
---|
| 129 | <listitem>
|
---|
| 130 | <para>Runs <command>egrep</command> on bzipped files</para>
|
---|
| 131 | <indexterm zone="ch-system-bzip2 bzegrep"><primary sortas="b-bzegrep">bzegrep</primary></indexterm>
|
---|
| 132 | </listitem>
|
---|
| 133 | </varlistentry>
|
---|
| 134 |
|
---|
| 135 | <varlistentry id="bzfgrep">
|
---|
| 136 | <term><command>bzfgrep</command></term>
|
---|
| 137 | <listitem>
|
---|
| 138 | <para>Runs <command>fgrep</command> on bzipped files</para>
|
---|
| 139 | <indexterm zone="ch-system-bzip2 bzfgrep"><primary sortas="b-bzfgrep">bzfgrep</primary></indexterm>
|
---|
| 140 | </listitem>
|
---|
| 141 | </varlistentry>
|
---|
| 142 |
|
---|
| 143 | <varlistentry id="bzip2">
|
---|
| 144 | <term><command>bzip2</command></term>
|
---|
| 145 | <listitem>
|
---|
| 146 | <para>Compresses files using the Burrows-Wheeler block sorting text
|
---|
| 147 | compression algorithm with Huffman coding; the compression rate is
|
---|
| 148 | better than that achieved by more conventional compressors using
|
---|
| 149 | <quote>Lempel-Ziv</quote> algorithms, like <command>gzip</command></para>
|
---|
| 150 | <indexterm zone="ch-system-bzip2 bzip2"><primary sortas="b-bzip2">bzip2</primary></indexterm>
|
---|
| 151 | </listitem>
|
---|
| 152 | </varlistentry>
|
---|
| 153 |
|
---|
| 154 | <varlistentry id="bzip2recover">
|
---|
| 155 | <term><command>bzip2recover</command></term>
|
---|
| 156 | <listitem>
|
---|
| 157 | <para>Tries to recover data from damaged bzipped files</para>
|
---|
| 158 | <indexterm zone="ch-system-bzip2 bzip2recover"><primary sortas="b-bzip2recover">bzip2recover</primary></indexterm>
|
---|
| 159 | </listitem>
|
---|
| 160 | </varlistentry>
|
---|
| 161 |
|
---|
| 162 | <varlistentry id="bzless">
|
---|
| 163 | <term><command>bzless</command></term>
|
---|
| 164 | <listitem>
|
---|
| 165 | <para>Runs <command>less</command> on bzipped files</para>
|
---|
| 166 | <indexterm zone="ch-system-bzip2 bzless"><primary sortas="b-bzless">bzless</primary></indexterm>
|
---|
| 167 | </listitem>
|
---|
| 168 | </varlistentry>
|
---|
| 169 |
|
---|
| 170 | <varlistentry id="bzmore">
|
---|
| 171 | <term><command>bzmore</command></term>
|
---|
| 172 | <listitem>
|
---|
| 173 | <para>Runs <command>more</command> on bzipped files</para>
|
---|
| 174 | <indexterm zone="ch-system-bzip2 bzmore"><primary sortas="b-bzmore">bzmore</primary></indexterm>
|
---|
| 175 | </listitem>
|
---|
| 176 | </varlistentry>
|
---|
| 177 |
|
---|
| 178 | <varlistentry id="libbz2">
|
---|
| 179 | <term><filename class="libraryfile">libbz2*</filename></term>
|
---|
| 180 | <listitem>
|
---|
| 181 | <para>The library implementing lossless, block-sorting data
|
---|
| 182 | compression, using the Burrows-Wheeler algorithm</para>
|
---|
| 183 | <indexterm zone="ch-system-bzip2 libbz2"><primary sortas="c-libbz2*">libbz2*</primary></indexterm>
|
---|
| 184 | </listitem>
|
---|
| 185 | </varlistentry>
|
---|
| 186 | </variablelist>
|
---|
[673b0d8] | 187 |
|
---|
| 188 | </sect2>
|
---|
| 189 |
|
---|
| 190 | </sect1>
|
---|
[81fd230] | 191 |
|
---|