diff options
Diffstat (limited to 'chapter06/bzip2.xml')
-rw-r--r-- | chapter06/bzip2.xml | 120 |
1 files changed, 3 insertions, 117 deletions
diff --git a/chapter06/bzip2.xml b/chapter06/bzip2.xml index e9e744320..4bb888486 100644 --- a/chapter06/bzip2.xml +++ b/chapter06/bzip2.xml @@ -10,9 +10,6 @@ <indexterm zone="ch-system-bzip2"><primary sortas="a-Bzip2">Bzip2</primary></indexterm> <sect2 role="package"><title/> -<para>The Bzip2 package contains programs for compressing and decompressing -files. On text files they achieve a much better compression than the -traditional <command>gzip</command>.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> @@ -20,11 +17,6 @@ traditional <command>gzip</command>.</para> <seglistitem><seg>0.1 SBU</seg><seg>3.0 MB</seg></seglistitem> </segmentedlist> -<segmentedlist> -<segtitle>Bzip2 installation depends on</segtitle> -<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils, -GCC, Glibc, Make</seg></seglistitem> -</segmentedlist> </sect2> <sect2 role="installation"> @@ -35,27 +27,15 @@ GCC, Glibc, Make</seg></seglistitem> <screen><userinput>make -f Makefile-libbz2_so make clean</userinput></screen> -<para>The <parameter>-f</parameter> flag will cause Bzip2 to be built -using a different <filename>Makefile</filename> file, in this case the -<filename>Makefile-libbz2_so</filename> file, which creates a dynamic -<filename class="libraryfile">libbz2.so</filename> library and links the Bzip2 utilities -against it.</para> - <para>Compile the package:</para> <screen><userinput>make</userinput></screen> -<para>If you are reinstalling Bzip2, you need to do -<userinput>rm -f /usr/bin/bz*</userinput> first, otherwise the following -<command>make install</command> will fail.</para> - -<para>Install the programs:</para> +<para>Install the package:</para> <screen><userinput>make install</userinput></screen> -<para>Now install the shared <command>bzip2</command> binary into the -<filename class="directory">/bin</filename> directory, then make some -necessary symbolic links, and clean up:</para> +<para>Do some location changes:</para> <screen><userinput>cp bzip2-shared /bin/bzip2 cp -a libbz2.so* /lib @@ -69,101 +49,7 @@ ln -s bzip2 /bin/bzcat</userinput></screen> <sect2 id="contents-bzip2" role="content"><title>Contents of Bzip2</title> -<segmentedlist> -<segtitle>Installed programs</segtitle> -<segtitle>Installed libraries</segtitle> -<seglistitem><seg>bunzip2 (link to bzip2), bzcat (link to bzip2), bzcmp, bzdiff, -bzegrep, bzfgrep, bzgrep, bzip2, bzip2recover, bzless and bzmore</seg> -<seg>libbz2.a, libbz2.so (link to libbz2.so.1.0), libbz2.so.1.0 (link to -libbz2.so.&bzip2-version;) and libbz2.so.&bzip2-version;</seg></seglistitem> -</segmentedlist> - -<variablelist><title>Short descriptions</title> - -<varlistentry id="bunzip2"> -<term><command>bunzip2</command></term> -<listitem> -<indexterm zone="ch-system-bzip2 bunzip2"><primary sortas="b-bunzip2">bunzip2</primary></indexterm> -<para>decompresses bzipped files.</para> -</listitem> -</varlistentry> - -<varlistentry id="bzcat"> -<term><command>bzcat</command></term> -<listitem> -<indexterm zone="ch-system-bzip2 bzcat"><primary sortas="b-bzcat">bzcat</primary></indexterm> -<para>decompresses to standard output.</para> -</listitem> -</varlistentry> - -<varlistentry id="bzcmp"> -<term><command>bzcmp</command></term> -<listitem> -<indexterm zone="ch-system-bzip2 bzcmp"><primary sortas="b-bzcmp">bzcmp</primary></indexterm> -<para>runs <command>cmp</command> on bzipped files.</para> -</listitem> -</varlistentry> - -<varlistentry id="bzdiff"> -<term><command>bzdiff</command></term> -<listitem> -<indexterm zone="ch-system-bzip2 bzdiff"><primary sortas="b-bzdiff">bzdiff</primary></indexterm> -<para>runs <command>diff</command> on bzipped files.</para> -</listitem> -</varlistentry> - -<varlistentry id="bzgrep"> -<term><command>bzgrep</command></term> -<listitem> -<indexterm zone="ch-system-bzip2 bzgrep"><primary sortas="b-bzgrep">bzgrep</primary></indexterm> -<para>and friends run <command>grep</command> on bzipped files.</para> -</listitem> -</varlistentry> - -<varlistentry id="bzip2"> -<term><command>bzip2</command></term> -<listitem> -<indexterm zone="ch-system-bzip2 bzip2"><primary sortas="b-bzip2">bzip2</primary></indexterm> -<para>compresses files using the Burrows-Wheeler -block sorting text compression algorithm with Huffman coding. The compression -rate is generally considerably better than that achieved by more conventional -compressors using LZ77/LZ78, like <command>gzip</command>.</para> -</listitem> -</varlistentry> - -<varlistentry id="bzip2recover"> -<term><command>bzip2recover</command></term> -<listitem> -<indexterm zone="ch-system-bzip2 bzip2recover"><primary sortas="b-bzip2recover">bzip2recover</primary></indexterm> -<para>tries to recover data from damaged bzipped files.</para> -</listitem> -</varlistentry> - -<varlistentry id="bzless"> -<term><command>bzless</command></term> -<listitem> -<indexterm zone="ch-system-bzip2 bzless"><primary sortas="b-bzless">bzless</primary></indexterm> -<para>runs <command>less</command> on bzipped files.</para> -</listitem> -</varlistentry> - -<varlistentry id="bzmore"> -<term><command>bzmore</command></term> -<listitem> -<indexterm zone="ch-system-bzip2 bzmore"><primary sortas="b-bzmore">bzmore</primary></indexterm> -<para>runs <command>more</command> on bzipped files.</para> -</listitem> -</varlistentry> - -<varlistentry id="libbz2"> -<term><filename class="libraryfile">libbz2*</filename></term> -<listitem> -<indexterm zone="ch-system-bzip2 libbz2"><primary sortas="c-libbz2*">libbz2*</primary></indexterm> -<para>is the library implementing lossless, -block-sorting data compression, using the Burrows-Wheeler algorithm.</para> -</listitem> -</varlistentry> -</variablelist> +<para>See testing</para> </sect2> |