tar-inst.xml 752 B

12345678910111213141516171819202122
  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 -j 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>patch -Np1 -i ../tar-1.13.patch</userinput></screen></para>
  9. <para>Install Tar by running the following commands:</para>
  10. <para><screen><userinput>./configure --prefix=$LFS/usr \
  11. &nbsp;&nbsp;&nbsp;&nbsp;--disable-nls --libexecdir=$LFS/usr/bin \
  12. &nbsp;&nbsp;&nbsp;&nbsp;--bindir=$LFS/bin &amp;&amp;
  13. make LDFLAGS=-static &amp;&amp;
  14. make install</userinput></screen></para>
  15. </sect2>