bzip2.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  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, bzdiff,
  69. bzegrep, bzfgrep, bzgrep, bzip2, bzip2recover, bzless, and bzmore</seg>
  70. <seg>libbz2.{a,so}</seg>
  71. </seglistitem>
  72. </segmentedlist>
  73. <variablelist>
  74. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  75. <?dbfo list-presentation="list"?>
  76. <?dbhtml list-presentation="table"?>
  77. <varlistentry id="bunzip2">
  78. <term><command>bunzip2</command></term>
  79. <listitem>
  80. <para>Decompresses bzipped files</para>
  81. <indexterm zone="ch-system-bzip2 bunzip2">
  82. <primary sortas="b-bunzip2">bunzip2</primary>
  83. </indexterm>
  84. </listitem>
  85. </varlistentry>
  86. <varlistentry id="bzcat">
  87. <term><command>bzcat</command></term>
  88. <listitem>
  89. <para>Decompresses to standard output</para>
  90. <indexterm zone="ch-system-bzip2 bzcat">
  91. <primary sortas="b-bzcat">bzcat</primary>
  92. </indexterm>
  93. </listitem>
  94. </varlistentry>
  95. <varlistentry id="bzcmp">
  96. <term><command>bzcmp</command></term>
  97. <listitem>
  98. <para>Runs <command>cmp</command> on bzipped files</para>
  99. <indexterm zone="ch-system-bzip2 bzcmp">
  100. <primary sortas="b-bzcmp">bzcmp</primary>
  101. </indexterm>
  102. </listitem>
  103. </varlistentry>
  104. <varlistentry id="bzdiff">
  105. <term><command>bzdiff</command></term>
  106. <listitem>
  107. <para>Runs <command>diff</command> on bzipped files</para>
  108. <indexterm zone="ch-system-bzip2 bzdiff">
  109. <primary sortas="b-bzdiff">bzdiff</primary>
  110. </indexterm>
  111. </listitem>
  112. </varlistentry>
  113. <varlistentry id="bzgrep">
  114. <term><command>bzgrep</command></term>
  115. <listitem>
  116. <para>Runs <command>grep</command> on bzipped files</para>
  117. <indexterm zone="ch-system-bzip2 bzgrep">
  118. <primary sortas="b-bzgrep">bzgrep</primary>
  119. </indexterm>
  120. </listitem>
  121. </varlistentry>
  122. <varlistentry id="bzegrep">
  123. <term><command>bzegrep</command></term>
  124. <listitem>
  125. <para>Runs <command>egrep</command> on bzipped files</para>
  126. <indexterm zone="ch-system-bzip2 bzegrep">
  127. <primary sortas="b-bzegrep">bzegrep</primary>
  128. </indexterm>
  129. </listitem>
  130. </varlistentry>
  131. <varlistentry id="bzfgrep">
  132. <term><command>bzfgrep</command></term>
  133. <listitem>
  134. <para>Runs <command>fgrep</command> on bzipped files</para>
  135. <indexterm zone="ch-system-bzip2 bzfgrep">
  136. <primary sortas="b-bzfgrep">bzfgrep</primary>
  137. </indexterm>
  138. </listitem>
  139. </varlistentry>
  140. <varlistentry id="bzip2">
  141. <term><command>bzip2</command></term>
  142. <listitem>
  143. <para>Compresses files using the Burrows-Wheeler block sorting text
  144. compression algorithm with Huffman coding; the compression rate is
  145. better than that achieved by more conventional compressors using
  146. <quote>Lempel-Ziv</quote> algorithms, like <command>gzip</command></para>
  147. <indexterm zone="ch-system-bzip2 bzip2">
  148. <primary sortas="b-bzip2">bzip2</primary>
  149. </indexterm>
  150. </listitem>
  151. </varlistentry>
  152. <varlistentry id="bzip2recover">
  153. <term><command>bzip2recover</command></term>
  154. <listitem>
  155. <para>Tries to recover data from damaged bzipped files</para>
  156. <indexterm zone="ch-system-bzip2 bzip2recover">
  157. <primary sortas="b-bzip2recover">bzip2recover</primary>
  158. </indexterm>
  159. </listitem>
  160. </varlistentry>
  161. <varlistentry id="bzless">
  162. <term><command>bzless</command></term>
  163. <listitem>
  164. <para>Runs <command>less</command> on bzipped files</para>
  165. <indexterm zone="ch-system-bzip2 bzless">
  166. <primary sortas="b-bzless">bzless</primary>
  167. </indexterm>
  168. </listitem>
  169. </varlistentry>
  170. <varlistentry id="bzmore">
  171. <term><command>bzmore</command></term>
  172. <listitem>
  173. <para>Runs <command>more</command> on bzipped files</para>
  174. <indexterm zone="ch-system-bzip2 bzmore">
  175. <primary sortas="b-bzmore">bzmore</primary>
  176. </indexterm>
  177. </listitem>
  178. </varlistentry>
  179. <varlistentry id="libbz2">
  180. <term><filename class="libraryfile">libbz2*</filename></term>
  181. <listitem>
  182. <para>The library implementing lossless, block-sorting data
  183. compression, using the Burrows-Wheeler algorithm</para>
  184. <indexterm zone="ch-system-bzip2 libbz2">
  185. <primary sortas="c-libbz2*">libbz2*</primary>
  186. </indexterm>
  187. </listitem>
  188. </varlistentry>
  189. </variablelist>
  190. </sect2>
  191. </sect1>