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