tar-inst.xml 952 B

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