aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/tar-inst.xml
blob: 5b7805e87341827d89c15bb6ac7c7ec61eab764e (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
<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>

<sect2>
<title>Installation of Tar</title>

<para>A patch may be applied to give tar direct support for
bzip2 files. This patch adds the <emphasis>-j</emphasis> option
to tar, which is similar to the <emphasis>-z</emphasis> option
used for gzip files.</para>

<para>Apply the patch by running the following command:</para>

<para><screen><userinput>patch -Np1 -i ../tar-&tar-patch-version;.patch</userinput></screen></para>

<para>Prepare Tar to be compiled:</para>

<para><screen><userinput>LDFLAGS="-static" ./configure --prefix=$LFS/static --disable-nls</userinput></screen></para>

<para>Continue with compiling the package:</para>

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

<para>Finish installing the package:</para>

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

</sect2>