gzip.xml 7.0 KB

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