Introduction to cpio

The cpio package contains tools for archiving.

Package Information

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/cpio

Installation of cpio

Install cpio by running the following commands:

./configure CPIO_MT_PROG=mt \
            --prefix=/usr \
            --bindir=/bin \
            --libexecdir=/tmp \
            --with-rmt=/usr/sbin/rmt &&

If you have teTeX-3.0 installed and wish to create alternate forms of the documentation, issue the any or all of the following commands:

make -C doc pdf &&
make -C doc ps &&
texi2html -o doc/cpio.html doc/cpio.texi &&
makeinfo --plaintext -o doc/cpio.txt doc/cpio.texi

To test the results, issue make check

Now, as the root user:

make install

If you built any of the alternate forms of documentation, install it by issuing the following commands as the root user:

install -v -m755 -d /usr/share/doc/cpio-2.9 &&
install -v -m644 doc/cpio.{pdf,ps,dvi,html,txt} \

Command Explanations

CPIO_MT_PROG=mt: This parameter forces the building and installation of the mt program.

--bindir=/bin: This parameter installs cpio to /bin instead of /usr/bin as recommended by the FHS guidelines.

--libexecdir=/tmp: This parameter is used so that /usr/libexec is not created.

--with-rmt=/usr/sbin/rmt: This parameter inhibits building the rmt program as it is already installed by the Tar package in LFS.


Installed Programs: cpio and mt
Installed Libraries: None
Installed Directories: None

Short Descriptions


copies files to and from archives.


controls magnetic tape drive operations.

Last updated on 2007-07-11 12:15:17 -0500