gzip.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <sect1 id="ch-system-gzip" xreflabel="Gzip">
  2. <title>Installing Gzip-&gzip-version;</title>
  3. <?dbhtml filename="gzip.html" dir="chapter06"?>
  4. <para>The Gzip package contains programs for compressing and decompressing
  5. files.</para>
  6. <screen>&buildtime; &gzip-time;
  7. &diskspace; &gzip-compsize;</screen>
  8. &aa-gzip-down;
  9. &aa-gzip-dep;
  10. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  11. <sect2>
  12. <title>Installation of Gzip</title>
  13. <para>Prepare Gzip for compilation:</para>
  14. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  15. <para>The <userinput>gzexe</userinput> script has the location of the
  16. <userinput>gzip</userinput> binary hard-wired into it. Because we later change
  17. the location of the binary, the following command assures that the new
  18. location gets placed into the script:</para>
  19. <screen><userinput>cp gzexe.in{,.backup}
  20. sed 's%"BINDIR"%/bin%' gzexe.in.backup &gt; gzexe.in</userinput></screen>
  21. <para>Compile the package:</para>
  22. <screen><userinput>make</userinput></screen>
  23. <para>Install the package:</para>
  24. <screen><userinput>make install</userinput></screen>
  25. <para>And move the programs to the <filename
  26. class="directory">/bin</filename> directory:</para>
  27. <screen><userinput>mv /usr/bin/gzip /bin
  28. rm /usr/bin/{gunzip,zcat}
  29. ln -s gzip /bin/gunzip
  30. ln -s gzip /bin/zcat
  31. ln -s gunzip /bin/uncompress</userinput></screen>
  32. </sect2>
  33. &aa-gzip-shortdesc;
  34. &aa-gzip-desc;
  35. </sect1>