Estimated build time: 1 minute Estimated required disk space: 7 MB |
To be able to directly use bzip2 files with tar, use the tar patch available from the LFS FTP site. This patch will add the -j option to tar which works the same as the -z option to tar (which can be used for gzip files).
Apply the patch by running the following command:
patch -Np1 -i ../tar-1.13.patch |
Install Tar by running the following commands:
./configure --prefix=$LFS/usr --disable-nls \ --libexecdir=$LFS/usr/bin --bindir=$LFS/bin && make LDFLAGS=-static && make install |
The tar package contains the rmt and tar programs.
rmt is a program used by the remote dump and restore programs in manipulating a magnetic tape drive through an interprocess communication connection.
tar is an archiving program designed to store and extract files from an archive file known as a tar file.
Tar-1.13 needs the following to be installed:
sh from the bash package
ar from the binutils package
as from the binutils package
ld from the binutils package
cmp from the diffutils package
chmod from the fileutils package
cp from the fileutils package
ln from the fileutils package
ls from the fileutils package
mv from the fileutils package
rm from the fileutils package
cc from the gcc package
egrep from the grep package
grep from the grep package
make from the make package
patch from the patch package
sed from the sed package
basename from the sh-utils package
expr from the sh-utils package
sleep from the sh-utils package
uname from the sh-utils package
cat from the textutils package
tr from the textutils package