bzip2.xml 8.2 KB

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