rpm2cpio - Man Page

Extract cpio archive from RPM Package Manager (RPM) package

Examples (TL;DR)

Synopsis

rpm2cpio FILE

Description

rpm2cpio converts the specified rpm package to a cpio(1) archive on the standard ouput.

Note: the cpio(5) format cannot host individual files over 4GB in size, and so this tool is considered obsolete.  Use rpm2archive instead.

Arguments

FILE

An rpm package file. If - is passed, standard input is used.

Options

rpmcpio has no options.

Exit Status

On success, 0 is returned, a non-zero failure code otherwise.

Examples

rpm2cpio glint-1.0-1.i386.rpm | cpio -dium

Extract glint-1.0-1.i386.rpm contents relative to current directory.

cat glint-1.0-1.i386.rpm | rpm2cpio - | cpio -tv

View glint-1.0-1.i386.rpm file list with cpio(1).

See Also

cpio(1), rpm(8), rpm2archive(1)

Referenced By

rpm(8), rpm2archive(1), rpmbuild(1).

2025-04-17