mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 21:49:13 +00:00
90e3cb3f0e
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3203 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
55 lines
1.4 KiB
XML
55 lines
1.4 KiB
XML
<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> </title><para> </para></sect2>
|
|
|
|
<sect2>
|
|
<title>Installation of Gzip</title>
|
|
|
|
<para>Prepare Gzip for compilation:</para>
|
|
|
|
<screen><userinput>./configure --prefix=/usr</userinput></screen>
|
|
|
|
<para>The <command>gzexe</command> script has the location of the
|
|
<command>gzip</command> 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 > 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>
|
|
|