gzip.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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>Fix a bug in gzip, whereby zdiff doesn't work correctly when invoked
  34. on two compressed inputs:</para>
  35. <screen><userinput remap="pre">patch -Np1 -i ../&gzip-zdiff-patch;</userinput></screen>
  36. <para>Prepare Gzip for compilation:</para>
  37. <screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin</userinput></screen>
  38. <para>Compile the package:</para>
  39. <screen><userinput remap="make">make</userinput></screen>
  40. <para>To test the results, issue:</para>
  41. <screen><userinput remap="test">make check</userinput></screen>
  42. <para>Install the package:</para>
  43. <screen><userinput remap="install">make install</userinput></screen>
  44. <para>Move some programs that do not need to be on the root filesystem:</para>
  45. <screen><userinput remap="install">mv -v /bin/{gzexe,uncompress,zcmp,zdiff,zegrep} /usr/bin
  46. mv -v /bin/{zfgrep,zforce,zgrep,zless,zmore,znew} /usr/bin</userinput></screen>
  47. </sect2>
  48. <sect2 id="contents-gzip" role="content">
  49. <title>Contents of Gzip</title>
  50. <segmentedlist>
  51. <segtitle>Installed programs</segtitle>
  52. <seglistitem>
  53. <seg>gunzip, gzexe, gzip, uncompress, zcat, zcmp, zdiff, zegrep, zfgrep,
  54. zforce, zgrep, zless, zmore, and znew</seg>
  55. </seglistitem>
  56. </segmentedlist>
  57. <variablelist>
  58. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  59. <?dbfo list-presentation="list"?>
  60. <?dbhtml list-presentation="table"?>
  61. <varlistentry id="gunzip">
  62. <term><command>gunzip</command></term>
  63. <listitem>
  64. <para>Decompresses gzipped files</para>
  65. <indexterm zone="ch-system-gzip gunzip">
  66. <primary sortas="b-gunzip">gunzip</primary>
  67. </indexterm>
  68. </listitem>
  69. </varlistentry>
  70. <varlistentry id="gzexe">
  71. <term><command>gzexe</command></term>
  72. <listitem>
  73. <para>Creates self-decompressing executable files</para>
  74. <indexterm zone="ch-system-gzip gzexe">
  75. <primary sortas="b-gzexe">gzexe</primary>
  76. </indexterm>
  77. </listitem>
  78. </varlistentry>
  79. <varlistentry id="gzip">
  80. <term><command>gzip</command></term>
  81. <listitem>
  82. <para>Compresses the given files using Lempel-Ziv (LZ77) coding</para>
  83. <indexterm zone="ch-system-gzip gzip">
  84. <primary sortas="b-gzip">gzip</primary>
  85. </indexterm>
  86. </listitem>
  87. </varlistentry>
  88. <varlistentry id="uncompress">
  89. <term><command>uncompress</command></term>
  90. <listitem>
  91. <para>Decompresses compressed files</para>
  92. <indexterm zone="ch-system-gzip uncompress">
  93. <primary sortas="b-uncompress">uncompress</primary>
  94. </indexterm>
  95. </listitem>
  96. </varlistentry>
  97. <varlistentry id="zcat">
  98. <term><command>zcat</command></term>
  99. <listitem>
  100. <para>Decompresses the given gzipped files to standard output</para>
  101. <indexterm zone="ch-system-gzip zcat">
  102. <primary sortas="b-zcat">zcat</primary>
  103. </indexterm>
  104. </listitem>
  105. </varlistentry>
  106. <varlistentry id="zcmp">
  107. <term><command>zcmp</command></term>
  108. <listitem>
  109. <para>Runs <command>cmp</command> on gzipped files</para>
  110. <indexterm zone="ch-system-gzip zcmp">
  111. <primary sortas="b-zcmp">zcmp</primary>
  112. </indexterm>
  113. </listitem>
  114. </varlistentry>
  115. <varlistentry id="zdiff">
  116. <term><command>zdiff</command></term>
  117. <listitem>
  118. <para>Runs <command>diff</command> on gzipped files</para>
  119. <indexterm zone="ch-system-gzip zdiff">
  120. <primary sortas="b-zdiff">zdiff</primary>
  121. </indexterm>
  122. </listitem>
  123. </varlistentry>
  124. <varlistentry id="zegrep">
  125. <term><command>zegrep</command></term>
  126. <listitem>
  127. <para>Runs <command>egrep</command> on gzipped files</para>
  128. <indexterm zone="ch-system-gzip zegrep">
  129. <primary sortas="b-zegrep">zegrep</primary>
  130. </indexterm>
  131. </listitem>
  132. </varlistentry>
  133. <varlistentry id="zfgrep">
  134. <term><command>zfgrep</command></term>
  135. <listitem>
  136. <para>Runs <command>fgrep</command> on gzipped files</para>
  137. <indexterm zone="ch-system-gzip zfgrep">
  138. <primary sortas="b-zfgrep">zfgrep</primary>
  139. </indexterm>
  140. </listitem>
  141. </varlistentry>
  142. <varlistentry id="zforce">
  143. <term><command>zforce</command></term>
  144. <listitem>
  145. <para>Forces a <filename class="extension">.gz</filename> extension on
  146. all given files that are gzipped files, so that <command>gzip</command>
  147. will not compress them again; this can be useful when file names were
  148. truncated during a file transfer</para>
  149. <indexterm zone="ch-system-gzip zforce">
  150. <primary sortas="b-zforce">zforce</primary>
  151. </indexterm>
  152. </listitem>
  153. </varlistentry>
  154. <varlistentry id="zgrep">
  155. <term><command>zgrep</command></term>
  156. <listitem>
  157. <para>Runs <command>grep</command> on gzipped files</para>
  158. <indexterm zone="ch-system-gzip zgrep">
  159. <primary sortas="b-zgrep">zgrep</primary>
  160. </indexterm>
  161. </listitem>
  162. </varlistentry>
  163. <varlistentry id="zless">
  164. <term><command>zless</command></term>
  165. <listitem>
  166. <para>Runs <command>less</command> on gzipped files</para>
  167. <indexterm zone="ch-system-gzip zless">
  168. <primary sortas="b-zless">zless</primary>
  169. </indexterm>
  170. </listitem>
  171. </varlistentry>
  172. <varlistentry id="zmore">
  173. <term><command>zmore</command></term>
  174. <listitem>
  175. <para>Runs <command>more</command> on gzipped files</para>
  176. <indexterm zone="ch-system-gzip zmore">
  177. <primary sortas="b-zmore">zmore</primary>
  178. </indexterm>
  179. </listitem>
  180. </varlistentry>
  181. <varlistentry id="znew">
  182. <term><command>znew</command></term>
  183. <listitem>
  184. <para>Re-compresses files from <command>compress</command> format to
  185. <command>gzip</command> format&mdash;<filename
  186. class="extension">.Z</filename> to <filename
  187. class="extension">.gz</filename></para>
  188. <indexterm zone="ch-system-gzip znew">
  189. <primary sortas="b-znew">znew</primary>
  190. </indexterm>
  191. </listitem>
  192. </varlistentry>
  193. </variablelist>
  194. </sect2>
  195. </sect1>