.\" Generated by scdoc 1.11.4 .\" Complete documentation for this program is not available as a GNU info page .ie \n(.g .ds Aq \(aq .el .ds Aq ' .nh .ad l .\" Begin generated content: .TH "RPM2ARCHIVE" "1" "2026-01-08" "RPM 6.0.1" .PP .SH NAME rpm2archive - Create tar or cpio archive from RPM Package Manager (RPM) package .PP .SH SYNOPSIS \fBrpm2archive\fR [options] [\fIPACKAGE_FILE\fR] .\&.\&.\& .PP .SH DESCRIPTION \fBrpm2archive\fR converts RPM package files to other archive formats.\& .PP 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 \fI.\&tgz\fR or \fI.\&cpio.\&gz\fR suffix when compressed or \fI.\&tar\fR or \fI.\&cpio\fR otherwise depending on the format.\& The output is compressed in the \fBgzip\fR(1) format by default.\& .PP \fBrpm2archive\fR does not verify package-level signatures or checksums, but it does verify the per-file checksums.\& .PP Supports RPM package formats 3, 4 and 6.\& .PP .SH ARGUMENTS \fIPACKAGE_FILE\fR .RS 4 A binary or source RPM package.\& .PP .RE If no arguments are present, or a dash (\fB-\fR) is given as an argument, data is read from the standard input.\& .PP .SH OPTIONS \fB-n\fR, \fB--nocompression\fR .RS 4 Generate an uncompressed archive.\& If in the file creation mode, use \fI.\&tar\fR as postfix of the filename.\& .PP .RE \fB-f\fR, \fB--format\fR=<\fIFORMAT\fR> .RS 4 Generate archive in specified \fIFORMAT\fR: .PD 0 .IP \(bu 4 \fBpax\fR: Restricted Portable Archive Exchange as used by \fBtar\fR(1) (default) .IP \(bu 4 \fBcpio\fR: The "new" ASCII \fBcpio\fR(5) format.\& Note that this format has a 4GB limit on the individual file size.\& .PD .PP .RE .SH EXIT STATUS On success, 0 is returned, a nonzero failure code otherwise.\& .PP .SH EXAMPLES \fBrpm2archive glint-1.\&0-1.\&i386.\&rpm | tar -xvz\fR .RS 4 Extract \fIglint-1.\&0-1.\&i386.\&rpm\fR package contents with \fBtar\fR(1).\& .PP .RE \fBrpm2archive --nocompression --format=cpio glint-1.\&0-1.\&i386.\&rpm | cpio -idv\fR .RS 4 Extract \fIglint-1.\&0-1.\&i386.\&rpm\fR package contents as an uncompressed \fBcpio\fR(5), compatible with \fBrpm2cpio\fR(1) output.\& .PP .RE \fBrpm2archive glint-1.\&0-1.\&i386.\&rpm ; tar -xvz glint-1.\&0-1.\&i386.\&rpm.\&tgz\fR .RS 4 Extract \fIglint-1.\&0-1.\&i386.\&rpm\fR package contents into an archive named \fIglint-1.\&0-1.\&i386.\&rpm.\&tgz\fR and extract the written archive with \fBtar\fR(1).\& .PP .RE \fBcat glint-1.\&0-1.\&i386.\&rpm | rpm2archive - | tar -tvz\fR .RS 4 Feed \fIglint-1.\&0-1.\&i386.\&rpm\fR package into \fBrpm2archive\fR via standard input, and list contents with \fBtar\fR(1).\& .PP .RE .SH SEE ALSO \fBrpm2cpio\fR(1), \fBrpm\fR(8)