5.16. Installing Tar

5.16.1. Installation of Tar

If you want to be able to directly use bzip2 files with tar, use the tar patch avaiable from the LFS FTP site. This patch will add the -y option to tar which works the same as the -z option to tar (which you can use for gzip files).

Apply the patch by running the following command:


cd src &&
patch -i ../../gnutarpatch.txt &&
cd ..

Install Tar by running the following commands:


./configure --prefix=$LFS/usr --disable-nls \
   --libexecdir=$LFS/usr/bin &&
make LDFLAGS=-static &&
make prefix=$LFS/usr install &&
mv $LFS/usr/bin/tar $LFS/bin

5.16.2. Contents

The tar package contains the tar and rmt programs.

5.16.3. Description

5.16.3.1. tar

tar is an archiving program designed to store and extract files from an archive file known as a tarfile.

5.16.3.2. rmt

rmt is a program used by the remote dump and restore programs in manipulating a magnetic tape drive through an interprocess communication connection.