gzip.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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">
  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. <para>The Gzip package contains programs for compressing and decompressing
  11. files.</para>
  12. <screen>&buildtime; 0.1 SBU
  13. &diskspace; 2.6 MB</screen>
  14. <para>Gzip installation depends on: Bash, Binutils, Coreutils, Diffutils,
  15. GCC, Glibc, Grep, Make, Sed.</para>
  16. <sect2>
  17. <title>Installation of Gzip</title>
  18. <para>Prepare Gzip for compilation:</para>
  19. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  20. <para>The <command>gzexe</command> script has the location of the
  21. <command>gzip</command> binary hard-wired into it. Because we later change
  22. the location of the binary, the following command ensures that the new
  23. location gets placed into the script:</para>
  24. <screen><userinput>cp gzexe.in{,.backup}
  25. sed 's%"BINDIR"%/bin%' gzexe.in.backup &gt; gzexe.in</userinput></screen>
  26. <para>Compile the package:</para>
  27. <screen><userinput>make</userinput></screen>
  28. <para>Install the package:</para>
  29. <screen><userinput>make install</userinput></screen>
  30. <para>Move the programs to the <filename class="directory">/bin</filename> directory:</para>
  31. <screen><userinput>mv /usr/bin/gzip /bin
  32. rm /usr/bin/{gunzip,zcat}
  33. ln -s gzip /bin/gunzip
  34. ln -s gzip /bin/zcat
  35. ln -s gunzip /bin/uncompress</userinput></screen>
  36. </sect2>
  37. <sect2 id="contents-gzip"><title>Contents of Gzip</title>
  38. <para><emphasis>Installed programs</emphasis>: gunzip (link to gzip), gzexe,
  39. gzip, uncompress (link to gunzip), zcat (link to gzip), zcmp, zdiff,
  40. zegrep, zfgrep, zforce, zgrep, zless, zmore and znew</para>
  41. </sect2>
  42. <sect2><title>Short descriptions</title>
  43. <indexterm zone="ch-system-gzip gunzip"><primary sortas="b-gunzip">gunzip</primary></indexterm>
  44. <para id="gunzip"><command>gunzip</command> decompresses gzipped files.</para>
  45. <indexterm zone="ch-system-gzip gzexe"><primary sortas="b-gzexe">gzexe</primary></indexterm>
  46. <para id="gzexe"><command>gzexe</command> is used to create self-uncompressing
  47. executable files.</para>
  48. <indexterm zone="ch-system-gzip gzip"><primary sortas="b-gzip">gzip</primary></indexterm>
  49. <para id="gzip"><command>gzip</command> compresses the given files, using
  50. Lempel-Ziv (LZ77) coding.</para>
  51. <indexterm zone="ch-system-gzip zcat"><primary sortas="b-zcat">zcat</primary></indexterm>
  52. <para id="zcat"><command>zcat</command> uncompresses the given gzipped files to
  53. standard output.</para>
  54. <indexterm zone="ch-system-gzip zcmp"><primary sortas="b-zcmp">zcmp</primary></indexterm>
  55. <para id="zcmp"><command>zcmp</command> runs cmp on gzipped files.</para>
  56. <indexterm zone="ch-system-gzip zdiff"><primary sortas="b-zdiff">zdiff</primary></indexterm>
  57. <para id="zdiff"><command>zdiff</command> runs diff on gzipped files.</para>
  58. <indexterm zone="ch-system-gzip zegrep"><primary sortas="b-zegrep">zegrep</primary></indexterm>
  59. <para id="zegrep"><command>zegrep</command> runs egrep on gzipped files.</para>
  60. <indexterm zone="ch-system-gzip zfgrep"><primary sortas="b-zfgrep">zfgrep</primary></indexterm>
  61. <para id="zfgrep"><command>zfgrep</command> runs fgrep on gzipped files.</para>
  62. <indexterm zone="ch-system-gzip zforce"><primary sortas="b-zforce">zforce</primary></indexterm>
  63. <para id="zforce"><command>zforce</command> forces a .gz extension on all given files
  64. that are gzipped files, so that gzip will not compress them again. This can be
  65. useful when file names were truncated during a file transfer.</para>
  66. <indexterm zone="ch-system-gzip zgrep"><primary sortas="b-zgrep">zgrep</primary></indexterm>
  67. <para id="zgrep"><command>zgrep</command> runs grep on gzipped files.</para>
  68. <indexterm zone="ch-system-gzip zless"><primary sortas="b-zless">zless</primary></indexterm>
  69. <para id="zless"><command>zless</command> runs less on gzipped files.</para>
  70. <indexterm zone="ch-system-gzip zmore"><primary sortas="b-zmore">zmore</primary></indexterm>
  71. <para id="zmore"><command>zmore</command> runs more on gzipped files.</para>
  72. <indexterm zone="ch-system-gzip znew"><primary sortas="b-znew">znew</primary></indexterm>
  73. <para id="znew"><command>znew</command> re-compresses files from compress format
  74. to gzip format -- .Z to .gz.</para>
  75. </sect2>
  76. </sect1>