gzip.xml 7.6 KB

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