bzip2.xml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.4/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>If reinstalling Bzip2, perform
  51. <userinput>rm -vf /usr/bin/bz*</userinput> first, otherwise the following
  52. <command>make install</command> will fail.</para>
  53. <para>Install the programs:</para>
  54. <screen><userinput>make PREFIX=/usr install</userinput></screen>
  55. <para>Install the shared <command>bzip2</command> binary into the
  56. <filename class="directory">/bin</filename> directory, make
  57. some necessary symbolic links, and clean up:</para>
  58. <screen><userinput>cp -v bzip2-shared /bin/bzip2
  59. cp -av libbz2.so* /lib
  60. ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
  61. rm -v /usr/bin/{bunzip2,bzcat,bzip2}
  62. ln -sv bzip2 /bin/bunzip2
  63. ln -sv bzip2 /bin/bzcat</userinput></screen>
  64. </sect2>
  65. <sect2 id="contents-bzip2" role="content">
  66. <title>Contents of Bzip2</title>
  67. <segmentedlist>
  68. <segtitle>Installed programs</segtitle>
  69. <segtitle>Installed libraries</segtitle>
  70. <seglistitem>
  71. <seg>bunzip2 (link to bzip2), bzcat (link to bzip2), bzcmp, bzdiff,
  72. bzegrep, bzfgrep, bzgrep, bzip2, bzip2recover, bzless, and bzmore</seg>
  73. <seg>libbz2.{a,so}</seg>
  74. </seglistitem>
  75. </segmentedlist>
  76. <variablelist>
  77. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  78. <?dbfo list-presentation="list"?>
  79. <?dbhtml list-presentation="table"?>
  80. <varlistentry id="bunzip2">
  81. <term><command>bunzip2</command></term>
  82. <listitem>
  83. <para>Decompresses bzipped files</para>
  84. <indexterm zone="ch-system-bzip2 bunzip2">
  85. <primary sortas="b-bunzip2">bunzip2</primary>
  86. </indexterm>
  87. </listitem>
  88. </varlistentry>
  89. <varlistentry id="bzcat">
  90. <term><command>bzcat</command></term>
  91. <listitem>
  92. <para>Decompresses to standard output</para>
  93. <indexterm zone="ch-system-bzip2 bzcat">
  94. <primary sortas="b-bzcat">bzcat</primary>
  95. </indexterm>
  96. </listitem>
  97. </varlistentry>
  98. <varlistentry id="bzcmp">
  99. <term><command>bzcmp</command></term>
  100. <listitem>
  101. <para>Runs <command>cmp</command> on bzipped files</para>
  102. <indexterm zone="ch-system-bzip2 bzcmp">
  103. <primary sortas="b-bzcmp">bzcmp</primary>
  104. </indexterm>
  105. </listitem>
  106. </varlistentry>
  107. <varlistentry id="bzdiff">
  108. <term><command>bzdiff</command></term>
  109. <listitem>
  110. <para>Runs <command>diff</command> on bzipped files</para>
  111. <indexterm zone="ch-system-bzip2 bzdiff">
  112. <primary sortas="b-bzdiff">bzdiff</primary>
  113. </indexterm>
  114. </listitem>
  115. </varlistentry>
  116. <varlistentry id="bzgrep">
  117. <term><command>bzgrep</command></term>
  118. <listitem>
  119. <para>Runs <command>grep</command> on bzipped files</para>
  120. <indexterm zone="ch-system-bzip2 bzgrep">
  121. <primary sortas="b-bzgrep">bzgrep</primary>
  122. </indexterm>
  123. </listitem>
  124. </varlistentry>
  125. <varlistentry id="bzegrep">
  126. <term><command>bzegrep</command></term>
  127. <listitem>
  128. <para>Runs <command>egrep</command> on bzipped files</para>
  129. <indexterm zone="ch-system-bzip2 bzegrep">
  130. <primary sortas="b-bzegrep">bzegrep</primary>
  131. </indexterm>
  132. </listitem>
  133. </varlistentry>
  134. <varlistentry id="bzfgrep">
  135. <term><command>bzfgrep</command></term>
  136. <listitem>
  137. <para>Runs <command>fgrep</command> on bzipped files</para>
  138. <indexterm zone="ch-system-bzip2 bzfgrep">
  139. <primary sortas="b-bzfgrep">bzfgrep</primary>
  140. </indexterm>
  141. </listitem>
  142. </varlistentry>
  143. <varlistentry id="bzip2">
  144. <term><command>bzip2</command></term>
  145. <listitem>
  146. <para>Compresses files using the Burrows-Wheeler block sorting text
  147. compression algorithm with Huffman coding; the compression rate is
  148. better than that achieved by more conventional compressors using
  149. <quote>Lempel-Ziv</quote> algorithms, like <command>gzip</command></para>
  150. <indexterm zone="ch-system-bzip2 bzip2">
  151. <primary sortas="b-bzip2">bzip2</primary>
  152. </indexterm>
  153. </listitem>
  154. </varlistentry>
  155. <varlistentry id="bzip2recover">
  156. <term><command>bzip2recover</command></term>
  157. <listitem>
  158. <para>Tries to recover data from damaged bzipped files</para>
  159. <indexterm zone="ch-system-bzip2 bzip2recover">
  160. <primary sortas="b-bzip2recover">bzip2recover</primary>
  161. </indexterm>
  162. </listitem>
  163. </varlistentry>
  164. <varlistentry id="bzless">
  165. <term><command>bzless</command></term>
  166. <listitem>
  167. <para>Runs <command>less</command> on bzipped files</para>
  168. <indexterm zone="ch-system-bzip2 bzless">
  169. <primary sortas="b-bzless">bzless</primary>
  170. </indexterm>
  171. </listitem>
  172. </varlistentry>
  173. <varlistentry id="bzmore">
  174. <term><command>bzmore</command></term>
  175. <listitem>
  176. <para>Runs <command>more</command> on bzipped files</para>
  177. <indexterm zone="ch-system-bzip2 bzmore">
  178. <primary sortas="b-bzmore">bzmore</primary>
  179. </indexterm>
  180. </listitem>
  181. </varlistentry>
  182. <varlistentry id="libbz2">
  183. <term><filename class="libraryfile">libbz2*</filename></term>
  184. <listitem>
  185. <para>The library implementing lossless, block-sorting data
  186. compression, using the Burrows-Wheeler algorithm</para>
  187. <indexterm zone="ch-system-bzip2 libbz2">
  188. <primary sortas="c-libbz2*">libbz2*</primary>
  189. </indexterm>
  190. </listitem>
  191. </varlistentry>
  192. </variablelist>
  193. </sect2>
  194. </sect1>