aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/gzip.xml
blob: a2b52b8f20591d4a0ae34c3c5a262ac85d134dc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<sect1 id="ch-system-gzip" xreflabel="Gzip">
<title>Installing Gzip-&gzip-version;</title>
<?dbhtml filename="gzip.html" dir="chapter06"?>

<para>The Gzip package contains programs for compressing and decompressing
files.</para>

<screen>&buildtime; &gzip-time;
&diskspace; &gzip-compsize;</screen>

&aa-gzip-down;
&aa-gzip-dep;

<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>

<sect2>
<title>Installation of Gzip</title>

<para>Prepare Gzip for compilation:</para>

<screen><userinput>./configure --prefix=/usr</userinput></screen>

<para>The <userinput>gzexe</userinput> script has the location of the
<userinput>gzip</userinput> binary hard-wired into it. Because we later change
the location of the binary, the following command assures that the new
location gets placed into the script:</para>

<screen><userinput>cp gzexe.in{,.backup}
sed 's%"BINDIR"%/bin%' gzexe.in.backup &gt; gzexe.in</userinput></screen>

<para>Compile the package:</para>

<screen><userinput>make</userinput></screen>

<para>Install the package:</para>

<screen><userinput>make install</userinput></screen>

<para>And move the programs to the <filename
class="directory">/bin</filename> directory:</para>

<screen><userinput>mv /usr/bin/gzip /bin
rm /usr/bin/{gunzip,zcat}
ln -s gzip /bin/gunzip
ln -s gzip /bin/zcat
ln -s gunzip /bin/uncompress</userinput></screen>

</sect2>

&aa-gzip-shortdesc;
&aa-gzip-desc;

</sect1>