tar-inst.xml 882 B

123456789101112131415161718192021222324252627282930313233343536
  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. <para>
  13. <screen>
  14. <userinput>cd src &amp;&amp;</userinput>
  15. <userinput>patch -i ../../gnutarpatch.txt &amp;&amp;</userinput>
  16. <userinput>cd ..</userinput>
  17. </screen>
  18. </para>
  19. <para>
  20. Install Tar by running the following commands:
  21. </para>
  22. <para>
  23. <screen>
  24. <userinput>./configure --prefix=$LFS/usr --disable-nls \</userinput>
  25. <userinput>&nbsp;&nbsp;&nbsp;--libexecdir=$LFS/usr/bin --bindir=$LFS/bin &amp;&amp; </userinput>
  26. <userinput>make LDFLAGS=-static &amp;&amp;</userinput>
  27. <userinput>make install</userinput>
  28. </screen></para>
  29. </sect2>