bzip2.xml 7.8 KB

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