table of contents
| RPM2ARCHIVE(1) | General Commands Manual | RPM2ARCHIVE(1) |
NAME¶
rpm2archive - Create tar or cpio archive from RPM Package Manager (RPM) package
SYNOPSIS¶
rpm2archive [options] [PACKAGE_FILE] ...
DESCRIPTION¶
rpm2archive converts RPM package files to other archive formats.
If the standard output is a regular file or a pipe, the archive is written to the standard output. If the standard output is a terminal, the output is written to a file by the same name, appended with a .tgz or .cpio.gz suffix when compressed or .tar or .cpio otherwise depending on the format. The output is compressed in the gzip(1) format by default.
rpm2archive does not verify package-level signatures or checksums, but it does verify the per-file checksums.
Supports RPM package formats 3, 4 and 6.
ARGUMENTS¶
PACKAGE_FILE
If no arguments are present, or a dash (-) is given as an argument, data is read from the standard input.
OPTIONS¶
-n, --nocompression
-f, --format=<FORMAT>
EXIT STATUS¶
On success, 0 is returned, a non-zero failure code otherwise.
EXAMPLES¶
rpm2archive glint-1.0-1.i386.rpm | tar -xvz
rpm2archive --nocompression --format=cpio glint-1.0-1.i386.rpm | cpio -idv
rpm2archive glint-1.0-1.i386.rpm ; tar -xvz glint-1.0-1.i386.rpm.tgz
cat glint-1.0-1.i386.rpm | rpm2archive - | tar -tvz
SEE ALSO¶
| 2025-11-07 | RPM 6.0.0 |