bzip2.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. ]>
  6. <sect1 id="ch-system-bzip2" xreflabel="Bzip2" role="wrap">
  7. <title>Bzip2-&bzip2-version;</title>
  8. <?dbhtml filename="bzip2.html"?>
  9. <indexterm zone="ch-system-bzip2"><primary sortas="a-Bzip2">Bzip2</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Bzip2 package contains programs for compressing and decompressing
  12. files. On text files they achieve a much better compression than the
  13. traditional <command>gzip</command>.</para>
  14. <segmentedlist>
  15. <segtitle>&buildtime;</segtitle>
  16. <segtitle>&diskspace;</segtitle>
  17. <seglistitem><seg>0.1 SBU</seg><seg>3.0 MB</seg></seglistitem>
  18. </segmentedlist>
  19. <segmentedlist>
  20. <segtitle>Bzip2 installation depends on</segtitle>
  21. <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
  22. GCC, Glibc, Make</seg></seglistitem>
  23. </segmentedlist>
  24. </sect2>
  25. <sect2 role="installation">
  26. <title>Installation of Bzip2</title>
  27. <para>Prepare Bzip2 for compilation with:</para>
  28. <screen><userinput>make -f Makefile-libbz2_so
  29. make clean</userinput></screen>
  30. <para>The <emphasis>-f</emphasis> flag will cause Bzip2 to be built
  31. using a different <filename>Makefile</filename> file, in this case the
  32. <filename>Makefile-libbz2_so</filename> file, which creates a dynamic
  33. <filename>libbz2.so</filename> library and links the Bzip2 utilities
  34. against it.</para>
  35. <para>Compile the package:</para>
  36. <screen><userinput>make</userinput></screen>
  37. <para>If you are reinstalling Bzip2, you need to do
  38. <userinput>rm -f /usr/bin/bz*</userinput> first, otherwise the following
  39. <command>make install</command> will fail.</para>
  40. <para>Install the programs:</para>
  41. <screen><userinput>make install</userinput></screen>
  42. <para>Now install the shared <command>bzip2</command> binary into the
  43. <filename class="directory">/bin</filename> directory, then make some
  44. necessary symbolic links, and clean up:</para>
  45. <screen><userinput>cp bzip2-shared /bin/bzip2
  46. cp -a libbz2.so* /lib
  47. ln -s ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
  48. rm /usr/bin/{bunzip2,bzcat,bzip2}
  49. ln -s bzip2 /bin/bunzip2
  50. ln -s bzip2 /bin/bzcat</userinput></screen>
  51. </sect2>
  52. <sect2 id="contents-bzip2"><title>Contents of Bzip2</title>
  53. <para><emphasis>Installed programs</emphasis>: bunzip2 (link to bzip2), bzcat
  54. (link to bzip2), bzcmp, bzdiff, bzegrep, bzfgrep, bzgrep, bzip2, bzip2recover,
  55. bzless and bzmore</para>
  56. <para><emphasis>Installed libraries</emphasis>: libbz2.a, libbz2.so (link to
  57. libbz2.so.1.0), libbz2.so.1.0 (link to libbz2.so.&bzip2-version;) and
  58. libbz2.so.&bzip2-version;</para>
  59. </sect2>
  60. <sect2><title>Short descriptions</title>
  61. <indexterm zone="ch-system-bzip2 bunzip2"><primary sortas="b-bunzip2">bunzip2</primary></indexterm>
  62. <para id="bunzip2"><command>bunzip2</command> decompresses bzipped files.</para>
  63. <indexterm zone="ch-system-bzip2 bzcat"><primary sortas="b-bzcat">bzcat</primary></indexterm>
  64. <para id="bzcat"><command>bzcat</command> decompresses to standard output.</para>
  65. <indexterm zone="ch-system-bzip2 bzcmp"><primary sortas="b-bzcmp">bzcmp</primary></indexterm>
  66. <para id="bzcmp"><command>bzcmp</command> runs cmp on bzipped files.</para>
  67. <indexterm zone="ch-system-bzip2 bzdiff"><primary sortas="b-bzdiff">bzdiff</primary></indexterm>
  68. <para id="bzdiff"><command>bzdiff</command> runs diff on bzipped files.</para>
  69. <indexterm zone="ch-system-bzip2 bzgrep"><primary sortas="b-bzgrep">bzgrep</primary></indexterm>
  70. <para id="bzgrep"><command>bzgrep</command> and friends run grep on bzipped files.</para>
  71. <indexterm zone="ch-system-bzip2 bzip2"><primary sortas="b-bzip2">bzip2</primary></indexterm>
  72. <para id="bzip2"><command>bzip2</command> compresses files using the Burrows-Wheeler
  73. block sorting text compression algorithm with Huffman coding. The compression
  74. rate is generally considerably better than that achieved by more conventional
  75. compressors using LZ77/LZ78, like <command>gzip</command>.</para>
  76. <indexterm zone="ch-system-bzip2 bzip2recover"><primary sortas="b-bzip2recover">bzip2recover</primary></indexterm>
  77. <para id="bzip2recover"><command>bzip2recover</command> tries to recover data from damaged
  78. bzip2 files.</para>
  79. <indexterm zone="ch-system-bzip2 bzless"><primary sortas="b-bzless">bzless</primary></indexterm>
  80. <para id="bzless"><command>bzless</command> runs less on bzipped files.</para>
  81. <indexterm zone="ch-system-bzip2 bzmore"><primary sortas="b-bzmore">bzmore</primary></indexterm>
  82. <para id="bzmore"><command>bzmore</command> runs more on bzipped files.</para>
  83. <indexterm zone="ch-system-bzip2 libbz2"><primary sortas="c-libbz2*">libbz2*</primary></indexterm>
  84. <para id="libbz2"><command>libbz2*</command> is the library implementing lossless,
  85. block-sorting data compression, using the Burrows-Wheeler algorithm.</para>
  86. </sect2>
  87. </sect1>