bzip2.xml 4.6 KB

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