gzip.xml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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-gzip" role="wrap">
  8. <?dbhtml filename="gzip.html"?>
  9. <sect1info condition="script">
  10. <productname>gzip</productname>
  11. <productnumber>&gzip-version;</productnumber>
  12. <address>&gzip-url;</address>
  13. </sect1info>
  14. <title>Gzip-&gzip-version;</title>
  15. <indexterm zone="ch-system-gzip">
  16. <primary sortas="a-Gzip">Gzip</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Gzip package contains programs for compressing and decompressing
  21. files.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&gzip-ch6-sbu;</seg>
  27. <seg>&gzip-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Gzip</title>
  33. <para>The version of the function <quote>futimens</quote> used
  34. by Gzip is incompatible with the version that current
  35. Glibc provides, so we'll rename the function:</para>
  36. <screen><userinput remap="pre">sed -i 's/futimens/gl_&amp;/' gzip.c lib/utimens.{c,h}</userinput></screen>
  37. <para>There is also a bug in the <filename>zdiff</filename> script that
  38. needs to be fixed:</para>
  39. <screen><userinput remap="pre">sed -i 's/5 -)/5 - >\&amp;3)/' zdiff.in</userinput></screen>
  40. <para>Prepare Gzip for compilation:</para>
  41. <screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin</userinput></screen>
  42. <para>Compile the package:</para>
  43. <screen><userinput remap="make">make</userinput></screen>
  44. <para>To test the results, issue:</para>
  45. <screen><userinput remap="test">make check</userinput></screen>
  46. <para>Install the package:</para>
  47. <screen><userinput remap="install">make install</userinput></screen>
  48. <para>Move some programs that do not need to be on the root filesystem:</para>
  49. <screen><userinput remap="install">mv -v /bin/{gzexe,uncompress,zcmp,zdiff,zegrep} /usr/bin
  50. mv -v /bin/{zfgrep,zforce,zgrep,zless,zmore,znew} /usr/bin</userinput></screen>
  51. </sect2>
  52. <sect2 id="contents-gzip" role="content">
  53. <title>Contents of Gzip</title>
  54. <segmentedlist>
  55. <segtitle>Installed programs</segtitle>
  56. <seglistitem>
  57. <seg>gunzip, gzexe, gzip, uncompress, zcat, zcmp, zdiff, zegrep, zfgrep,
  58. zforce, zgrep, zless, zmore, and znew</seg>
  59. </seglistitem>
  60. </segmentedlist>
  61. <variablelist>
  62. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  63. <?dbfo list-presentation="list"?>
  64. <?dbhtml list-presentation="table"?>
  65. <varlistentry id="gunzip">
  66. <term><command>gunzip</command></term>
  67. <listitem>
  68. <para>Decompresses gzipped files</para>
  69. <indexterm zone="ch-system-gzip gunzip">
  70. <primary sortas="b-gunzip">gunzip</primary>
  71. </indexterm>
  72. </listitem>
  73. </varlistentry>
  74. <varlistentry id="gzexe">
  75. <term><command>gzexe</command></term>
  76. <listitem>
  77. <para>Creates self-decompressing executable files</para>
  78. <indexterm zone="ch-system-gzip gzexe">
  79. <primary sortas="b-gzexe">gzexe</primary>
  80. </indexterm>
  81. </listitem>
  82. </varlistentry>
  83. <varlistentry id="gzip">
  84. <term><command>gzip</command></term>
  85. <listitem>
  86. <para>Compresses the given files using Lempel-Ziv (LZ77) coding</para>
  87. <indexterm zone="ch-system-gzip gzip">
  88. <primary sortas="b-gzip">gzip</primary>
  89. </indexterm>
  90. </listitem>
  91. </varlistentry>
  92. <varlistentry id="uncompress">
  93. <term><command>uncompress</command></term>
  94. <listitem>
  95. <para>Decompresses compressed files</para>
  96. <indexterm zone="ch-system-gzip uncompress">
  97. <primary sortas="b-uncompress">uncompress</primary>
  98. </indexterm>
  99. </listitem>
  100. </varlistentry>
  101. <varlistentry id="zcat">
  102. <term><command>zcat</command></term>
  103. <listitem>
  104. <para>Decompresses the given gzipped files to standard output</para>
  105. <indexterm zone="ch-system-gzip zcat">
  106. <primary sortas="b-zcat">zcat</primary>
  107. </indexterm>
  108. </listitem>
  109. </varlistentry>
  110. <varlistentry id="zcmp">
  111. <term><command>zcmp</command></term>
  112. <listitem>
  113. <para>Runs <command>cmp</command> on gzipped files</para>
  114. <indexterm zone="ch-system-gzip zcmp">
  115. <primary sortas="b-zcmp">zcmp</primary>
  116. </indexterm>
  117. </listitem>
  118. </varlistentry>
  119. <varlistentry id="zdiff">
  120. <term><command>zdiff</command></term>
  121. <listitem>
  122. <para>Runs <command>diff</command> on gzipped files</para>
  123. <indexterm zone="ch-system-gzip zdiff">
  124. <primary sortas="b-zdiff">zdiff</primary>
  125. </indexterm>
  126. </listitem>
  127. </varlistentry>
  128. <varlistentry id="zegrep">
  129. <term><command>zegrep</command></term>
  130. <listitem>
  131. <para>Runs <command>egrep</command> on gzipped files</para>
  132. <indexterm zone="ch-system-gzip zegrep">
  133. <primary sortas="b-zegrep">zegrep</primary>
  134. </indexterm>
  135. </listitem>
  136. </varlistentry>
  137. <varlistentry id="zfgrep">
  138. <term><command>zfgrep</command></term>
  139. <listitem>
  140. <para>Runs <command>fgrep</command> on gzipped files</para>
  141. <indexterm zone="ch-system-gzip zfgrep">
  142. <primary sortas="b-zfgrep">zfgrep</primary>
  143. </indexterm>
  144. </listitem>
  145. </varlistentry>
  146. <varlistentry id="zforce">
  147. <term><command>zforce</command></term>
  148. <listitem>
  149. <para>Forces a <filename class="extension">.gz</filename> extension on
  150. all given files that are gzipped files, so that <command>gzip</command>
  151. will not compress them again; this can be useful when file names were
  152. truncated during a file transfer</para>
  153. <indexterm zone="ch-system-gzip zforce">
  154. <primary sortas="b-zforce">zforce</primary>
  155. </indexterm>
  156. </listitem>
  157. </varlistentry>
  158. <varlistentry id="zgrep">
  159. <term><command>zgrep</command></term>
  160. <listitem>
  161. <para>Runs <command>grep</command> on gzipped files</para>
  162. <indexterm zone="ch-system-gzip zgrep">
  163. <primary sortas="b-zgrep">zgrep</primary>
  164. </indexterm>
  165. </listitem>
  166. </varlistentry>
  167. <varlistentry id="zless">
  168. <term><command>zless</command></term>
  169. <listitem>
  170. <para>Runs <command>less</command> on gzipped files</para>
  171. <indexterm zone="ch-system-gzip zless">
  172. <primary sortas="b-zless">zless</primary>
  173. </indexterm>
  174. </listitem>
  175. </varlistentry>
  176. <varlistentry id="zmore">
  177. <term><command>zmore</command></term>
  178. <listitem>
  179. <para>Runs <command>more</command> on gzipped files</para>
  180. <indexterm zone="ch-system-gzip zmore">
  181. <primary sortas="b-zmore">zmore</primary>
  182. </indexterm>
  183. </listitem>
  184. </varlistentry>
  185. <varlistentry id="znew">
  186. <term><command>znew</command></term>
  187. <listitem>
  188. <para>Re-compresses files from <command>compress</command> format to
  189. <command>gzip</command> format&mdash;<filename
  190. class="extension">.Z</filename> to <filename
  191. class="extension">.gz</filename></para>
  192. <indexterm zone="ch-system-gzip znew">
  193. <primary sortas="b-znew">znew</primary>
  194. </indexterm>
  195. </listitem>
  196. </varlistentry>
  197. </variablelist>
  198. </sect2>
  199. </sect1>