Installing Tar

Installation of Tar

If you want to apply the Bzip2 tar patch which gives you the -y option to tar so you can use bzip2 files with tar, first download the patch from http://sourceware.cygnus.com/bzip2/ and apply it by running the following command within the src directory under the tar-1.13 directory:



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

Install Tar by running the following commands:



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

Contents

The tar package contains the tar and rmt programs.

Description

tar

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

rmt

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