10.61. Tar-1.15.1

#### Cross-Compiled Linux From Scratch - Version 1.0.0rc2-x86_64-Multilib

### Chapter 10. Installing Basic System Software

- Prev

  Sysvinit-2.86

- Next

  Texinfo-4.8

- Up.
- Home

# 10.61. Tar-1.15.1

The Tar package contains an archiving program.

## 10.61.1. Installation of Tar

Apply a patch to fix some issues with the test suite when using GCC-4.1.1:

    patch -Np1 -i ../tar-1.15.1-gcc4_fix_tests-1.patch

Tar has a bug when the `-S` option is used with files larger than 4 GB. The following patch properly fixes this issue:

    patch -Np1 -i ../tar-1.15.1-sparse_fix-1.patch

This patch fixes a security vulnerability in Tar:

    patch -Np1 -i ../tar-1.15.1-security_fixes-1.patch

Prepare Tar for compilation:

    CC="gcc ${BUILD64}" ./configure --prefix=/usr \
       --bindir=/bin --libexecdir=/usr/sbin

Compile the package:

    make

To test the results, issue: `make check`.

Install the package:

    make install

## 10.61.2. Contents of Tar

Installed programs: rmt and tar

### Short Descriptions

rmt | Remotely manipulates a magnetic tape drive through an interprocess communication connection
tar | Creates, extracts files from, and lists the contents of archives, also known as tarballs

- Prev

  Sysvinit-2.86

- Next

  Texinfo-4.8

- Up.
- Home.