tar-inst.xml 993 B

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