finished 1.10
[linux_from_scratch.git] / BOOK / chapter06 / gzip-inst.xml
blob51aaf874866ab482e2f322d5dd365cba60cc7be8
1 <sect2>
2 <title>Installation of Gzip</title>
4 <para>Install Gzip by running the following commands:</para>
6 <para><screen><userinput>patch -Np1 -i ../gzip-&gzip-patch-version;.patch &amp;&amp;
7 ./configure --prefix=/usr &amp;&amp;
8 cp gzexe.in{,.backup} &amp;&amp;
9 sed 's%"BINDIR"%/bin%' gzexe.in.backup &gt; gzexe.in &amp;&amp;
10 make &amp;&amp;
11 make install &amp;&amp;
12 mv /usr/bin/gzip /bin &amp;&amp;
13 rm /usr/bin/{gunzip,zcat} &amp;&amp;
14 ln -s gzip /bin/gunzip &amp;&amp;
15 ln -s gzip /bin/zcat &amp;&amp;
16 ln -s gunzip /bin/uncompress</userinput></screen></para>
18 </sect2>