tar-inst.xml 869 B

1234567891011121314151617181920212223
  1. <sect2>
  2. <title>Installation of Tar</title>
  3. <para>To be able to directly use bzip2 files with tar, use the tar
  4. patch available from the LFS FTP site. This patch will add the -y option
  5. to tar which works the same as the -z option to tar (which can be used
  6. for gzip files).</para>
  7. <para>Apply the patch by running the following command:</para>
  8. <para><screen><userinput>cd src &amp;&amp;</userinput>
  9. <userinput>patch -i ../../gnutarpatch.txt &amp;&amp;</userinput>
  10. <userinput>cd ..</userinput></screen></para>
  11. <para>Install Tar by running the following commands:</para>
  12. <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls \</userinput>
  13. <userinput>&nbsp;&nbsp;&nbsp;--libexecdir=$LFS/usr/bin --bindir=$LFS/bin &amp;&amp; </userinput>
  14. <userinput>make LDFLAGS=-static &amp;&amp;</userinput>
  15. <userinput>make install</userinput></screen></para>
  16. </sect2>