Tar

From Gentoo Linux Wiki

Jump to: navigation, search

GNU tar

"The tar program provides the ability to create tar archives, as well as various other kinds of manipulation. For example, you can use tar on previously created archives to extract files, to store additional files, or to update or list files which were already stored.

Initially, tar archives were used to store files conveniently on magnetic tape. The name `tar' comes from this use; it stands for tape archiver. Despite the utility's name, tar can direct its output to available devices, files, or other programs (using pipes). tar may even access remote devices or files (as archives)."

Contents

[edit] Wiki Entries

[edit] Portage Tree

[edit] Beware of buggy tar variants

To utilize an LS120 laser servo diskette drive for multivolume backups, it is necessary to install the heirloom variant of tar. There is currently a serious bug in gnutar, which prevents a multivolume backup from being restored.

[edit] Installation of heirloom tar

[edit] Lock the tar package into the package database

It is necessary to lock the tar package into the package database, to prevent its subsequent removal or update by the package management system. Add the following entry to the /etc/portage/profile/package.provided configuration file:

app-arch/tar

[edit] Create a directory for building the heirloom tar variant

cd ~
mkdir heirloom
cd heirloom

[edit] Obtain the heirloom package sources

wget http://garr.dl.sourceforge.net/sourceforge/heirloom/heirloom-070715.tar.bz2

[edit] Unpack the heirloom sources into the heirloom directory

bunzip2 heirloom-070715.tar.bz2
tar xf heirloom-070715.tar

[edit] Compile the tar package

cd heirloom-070715/tar
cc tar.c

[edit] Compress the tar man page

gzip tar.1

[edit] Obtain appropriate system administrative privileges

It is necessary to obtain root privileges to install the updated files:

su root

[edit] Rename the existing tar installation files

mv /bin/tar /bin/tar.del
mv /usr/share/man/man1/tar.1.gz /usr/share/man/man1/tar.1.gz.del

[edit] Install the replacement files

cp tar /bin
cp tar.1.gz /usr/share/man/man1/

[edit] External Links

Personal tools