rpm2cpio(1)

rpm2cpio1

Extract cpio archive from rpm package manager (rpm) package

Usage

rpm2cpio PACKAGE_FILE

rpm2cpio -

Overview

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

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

Arguments

PACKAGE_FILE

A binary or source RPM package.

If dash (-) is given as the argument, data is read from the standard input.

Exit status

On success, 0 is returned, a nonzero 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).

From rpm-tools 6.0.1-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.