gzip.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-gzip" xreflabel="Gzip" role="wrap">
  7. <title>Gzip-&gzip-version;</title>
  8. <?dbhtml filename="gzip.html"?>
  9. <indexterm zone="ch-system-gzip"><primary sortas="a-Gzip">Gzip</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Gzip package contains programs for compressing and decompressing
  12. files.</para>
  13. <segmentedlist>
  14. <segtitle>&buildtime;</segtitle>
  15. <segtitle>&diskspace;</segtitle>
  16. <seglistitem><seg>0.1 SBU</seg><seg>2.6 MB</seg></seglistitem>
  17. </segmentedlist>
  18. <segmentedlist>
  19. <segtitle>Gzip installation depends on</segtitle>
  20. <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
  21. GCC, Glibc, Grep, Make, Sed</seg></seglistitem>
  22. </segmentedlist>
  23. </sect2>
  24. <sect2 role="installation">
  25. <title>Installation of Gzip</title>
  26. <para>Prepare Gzip for compilation:</para>
  27. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  28. <para>The <command>gzexe</command> script has the location of the
  29. <command>gzip</command> binary hard-wired into it. Because we later change
  30. the location of the binary, the following command ensures that the new
  31. location gets placed into the script:</para>
  32. <screen><userinput>sed -i 's@"BINDIR"@/bin@g' gzexe.in</userinput></screen>
  33. <para>Compile the package:</para>
  34. <screen><userinput>make</userinput></screen>
  35. <para>Install the package:</para>
  36. <screen><userinput>make install</userinput></screen>
  37. <para>Move the programs to the <filename class="directory">/bin</filename> directory:</para>
  38. <screen><userinput>mv /usr/bin/gzip /bin
  39. rm /usr/bin/{gunzip,zcat}
  40. ln -s gzip /bin/gunzip
  41. ln -s gzip /bin/zcat
  42. ln -s gunzip /bin/uncompress</userinput></screen>
  43. </sect2>
  44. <sect2 id="contents-gzip" role="content"><title>Contents of Gzip</title>
  45. <segmentedlist>
  46. <segtitle>Installed programs</segtitle>
  47. <seglistitem><seg>gunzip (link to gzip), gzexe,
  48. gzip, uncompress (link to gunzip), zcat (link to gzip), zcmp, zdiff,
  49. zegrep, zfgrep, zforce, zgrep, zless, zmore and znew</seg></seglistitem>
  50. </segmentedlist>
  51. <variablelist><title>Short descriptions</title>
  52. <varlistentry id="gunzip">
  53. <term><command>gunzip</command></term>
  54. <listitem>
  55. <indexterm zone="ch-system-gzip gunzip"><primary sortas="b-gunzip">gunzip</primary></indexterm>
  56. <para>decompresses gzipped files.</para>
  57. </listitem>
  58. </varlistentry>
  59. <varlistentry id="gzexe">
  60. <term><command>gzexe</command></term>
  61. <listitem>
  62. <indexterm zone="ch-system-gzip gzexe"><primary sortas="b-gzexe">gzexe</primary></indexterm>
  63. <para>is used to create self-uncompressing executable files.</para>
  64. </listitem>
  65. </varlistentry>
  66. <varlistentry id="gzip">
  67. <term><command>gzip</command></term>
  68. <listitem>
  69. <indexterm zone="ch-system-gzip gzip"><primary sortas="b-gzip">gzip</primary></indexterm>
  70. <para>compresses the given files, using Lempel-Ziv (LZ77) coding.</para>
  71. </listitem>
  72. </varlistentry>
  73. <varlistentry id="zcat">
  74. <term><command>zcat</command></term>
  75. <listitem>
  76. <indexterm zone="ch-system-gzip zcat"><primary sortas="b-zcat">zcat</primary></indexterm>
  77. <para>uncompresses the given gzipped files to standard output.</para>
  78. </listitem>
  79. </varlistentry>
  80. <varlistentry id="zcmp">
  81. <term><command>zcmp</command></term>
  82. <listitem>
  83. <indexterm zone="ch-system-gzip zcmp"><primary sortas="b-zcmp">zcmp</primary></indexterm>
  84. <para>runs <command>cmp</command> on gzipped files.</para>
  85. </listitem>
  86. </varlistentry>
  87. <varlistentry id="zdiff">
  88. <term><command>zdiff</command></term>
  89. <listitem>
  90. <indexterm zone="ch-system-gzip zdiff"><primary sortas="b-zdiff">zdiff</primary></indexterm>
  91. <para>runs <command>diff</command> on gzipped files.</para>
  92. </listitem>
  93. </varlistentry>
  94. <varlistentry id="zegrep">
  95. <term><command>zegrep</command></term>
  96. <listitem>
  97. <indexterm zone="ch-system-gzip zegrep"><primary sortas="b-zegrep">zegrep</primary></indexterm>
  98. <para>runs <command>egrep</command> on gzipped files.</para>
  99. </listitem>
  100. </varlistentry>
  101. <varlistentry id="zfgrep">
  102. <term><command>zfgrep</command></term>
  103. <listitem>
  104. <indexterm zone="ch-system-gzip zfgrep"><primary sortas="b-zfgrep">zfgrep</primary></indexterm>
  105. <para>runs <command>fgrep</command> on gzipped files.</para>
  106. </listitem>
  107. </varlistentry>
  108. <varlistentry id="zforce">
  109. <term><command>zforce</command></term>
  110. <listitem>
  111. <indexterm zone="ch-system-gzip zforce"><primary sortas="b-zforce">zforce</primary></indexterm>
  112. <para>forces a <filename class="extension">.gz</filename> extension on all given files
  113. that are gzipped files, so that <command>gzip</command> will not compress them again. This can be
  114. useful when file names were truncated during a file transfer.</para>
  115. </listitem>
  116. </varlistentry>
  117. <varlistentry id="zgrep">
  118. <term><command>zgrep</command></term>
  119. <listitem>
  120. <indexterm zone="ch-system-gzip zgrep"><primary sortas="b-zgrep">zgrep</primary></indexterm>
  121. <para>runs <command>grep</command> on gzipped files.</para>
  122. </listitem>
  123. </varlistentry>
  124. <varlistentry id="zless">
  125. <term><command>zless</command></term>
  126. <listitem>
  127. <indexterm zone="ch-system-gzip zless"><primary sortas="b-zless">zless</primary></indexterm>
  128. <para>runs <command>less</command> on gzipped files.</para>
  129. </listitem>
  130. </varlistentry>
  131. <varlistentry id="zmore">
  132. <term><command>zmore</command></term>
  133. <listitem>
  134. <indexterm zone="ch-system-gzip zmore"><primary sortas="b-zmore">zmore</primary></indexterm>
  135. <para>runs <command>more</command> on gzipped files.</para>
  136. </listitem>
  137. </varlistentry>
  138. <varlistentry id="znew">
  139. <term><command>znew</command></term>
  140. <listitem>
  141. <indexterm zone="ch-system-gzip znew"><primary sortas="b-znew">znew</primary></indexterm>
  142. <para>re-compresses files from <command>compress</command> format to <command>gzip</command> format
  143. -- <filename class="extension">.Z</filename> to <filename class="extension">.gz</filename>.</para>
  144. </listitem>
  145. </varlistentry>
  146. </variablelist>
  147. </sect2>
  148. </sect1>