gzip.xml 7.4 KB

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