6.60. Tar-1.26

The Tar package contains an archiving program.

Approximate build time: 2.4 SBU
Required disk space: 34 MB

6.60.1. Installation of Tar

Add a program that generates a man page for tar from the source code:

patch -Np1 -i ../tar-1.26-manpage-1.patch

Fix an incompatibility between this package and Glibc-2.18:

sed -i -e '/gets is a/d' gnu/stdio.in.h

Prepare Tar for compilation:

./configure --prefix=/usr \
            --bindir=/bin \

The meaning of the configure options:


This forces the test for mknod to be run as root. It is generally considered dangerous to run this test as the root user, but as it is being run on a system that has only been partially built, overriding it is OK.

Compile the package:


To test the results (about 1 SBU), issue:

make check

Install the package:

make install
make -C doc install-html docdir=/usr/share/doc/tar-1.26

Finally, generate the man page and place it in the proper location:

perl tarman > /usr/share/man/man1/tar.1

6.60.2. Contents of Tar

Installed programs: rmt and tar
Installed directory: /usr/share/doc/tar-1.26

Short Descriptions


Remotely manipulates a magnetic tape drive through an interprocess communication connection


Creates, extracts files from, and lists the contents of archives, also known as tarballs