bzip2.xml 7.6 KB

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