| 1 |
.\" Generated by scdoc 1.11.4 |
| 2 |
.\" Complete documentation for this program is not available as a GNU info page |
| 3 |
.ie \n(.g .ds Aq \(aq |
| 4 |
.el .ds Aq ' |
| 5 |
.nh |
| 6 |
.ad l |
| 7 |
.\" Begin generated content: |
| 8 |
.TH "RPM2ARCHIVE" "1" "2026-04-10" "RPM 6.0.1" |
| 9 |
.PP |
| 10 |
.SH NAME |
| 11 |
rpm2archive - Create tar or cpio archive from RPM Package Manager (RPM) package |
| 12 |
.PP |
| 13 |
.SH SYNOPSIS |
| 14 |
\fBrpm2archive\fR [options] [\fIPACKAGE_FILE\fR] .\&.\&.\& |
| 15 |
.PP |
| 16 |
.SH DESCRIPTION |
| 17 |
\fBrpm2archive\fR converts RPM package files to other archive formats.\& |
| 18 |
.PP |
| 19 |
If the standard output is a regular file or a pipe, the archive is written |
| 20 |
to the standard output.\& If the standard output is a terminal, the output |
| 21 |
is written to a file by the same name, appended with a \fI.\&tgz\fR or \fI.\&cpio.\&gz\fR |
| 22 |
suffix when compressed or \fI.\&tar\fR or \fI.\&cpio\fR otherwise depending on the format.\& |
| 23 |
The output is compressed in the \fBgzip\fR(1) format by default.\& |
| 24 |
.PP |
| 25 |
\fBrpm2archive\fR does not verify package-level signatures or checksums, but |
| 26 |
it does verify the per-file checksums.\& |
| 27 |
.PP |
| 28 |
Supports RPM package formats 3, 4 and 6.\& |
| 29 |
.PP |
| 30 |
.SH ARGUMENTS |
| 31 |
\fIPACKAGE_FILE\fR |
| 32 |
.RS 4 |
| 33 |
A binary or source RPM package.\& |
| 34 |
.PP |
| 35 |
.RE |
| 36 |
If no arguments are present, or a dash (\fB-\fR) is given as an argument, |
| 37 |
data is read from the standard input.\& |
| 38 |
.PP |
| 39 |
.SH OPTIONS |
| 40 |
\fB-n\fR, \fB--nocompression\fR |
| 41 |
.RS 4 |
| 42 |
Generate an uncompressed archive.\& If in the file creation mode, |
| 43 |
use \fI.\&tar\fR as postfix of the filename.\& |
| 44 |
.PP |
| 45 |
.RE |
| 46 |
\fB-f\fR, \fB--format\fR=<\fIFORMAT\fR> |
| 47 |
.RS 4 |
| 48 |
Generate archive in specified \fIFORMAT\fR: |
| 49 |
.PD 0 |
| 50 |
.IP \(bu 4 |
| 51 |
\fBpax\fR: Restricted Portable Archive Exchange as used by \fBtar\fR(1) |
| 52 |
(default) |
| 53 |
.IP \(bu 4 |
| 54 |
\fBcpio\fR: The "new" ASCII \fBcpio\fR(5) format.\& Note that this format |
| 55 |
has a 4GB limit on the individual file size.\& |
| 56 |
.PD |
| 57 |
.PP |
| 58 |
.RE |
| 59 |
.SH EXIT STATUS |
| 60 |
On success, 0 is returned, a nonzero failure code otherwise.\& |
| 61 |
.PP |
| 62 |
.SH EXAMPLES |
| 63 |
\fBrpm2archive glint-1.\&0-1.\&i386.\&rpm | tar -xvz\fR |
| 64 |
.RS 4 |
| 65 |
Extract \fIglint-1.\&0-1.\&i386.\&rpm\fR package contents with \fBtar\fR(1).\& |
| 66 |
.PP |
| 67 |
.RE |
| 68 |
\fBrpm2archive --nocompression --format=cpio glint-1.\&0-1.\&i386.\&rpm | cpio -idv\fR |
| 69 |
.RS 4 |
| 70 |
Extract \fIglint-1.\&0-1.\&i386.\&rpm\fR package contents as an uncompressed |
| 71 |
\fBcpio\fR(5), compatible with \fBrpm2cpio\fR(1) output.\& |
| 72 |
.PP |
| 73 |
.RE |
| 74 |
\fBrpm2archive glint-1.\&0-1.\&i386.\&rpm ; tar -xvz glint-1.\&0-1.\&i386.\&rpm.\&tgz\fR |
| 75 |
.RS 4 |
| 76 |
Extract \fIglint-1.\&0-1.\&i386.\&rpm\fR package contents into an |
| 77 |
archive named \fIglint-1.\&0-1.\&i386.\&rpm.\&tgz\fR and extract the written |
| 78 |
archive with \fBtar\fR(1).\& |
| 79 |
.PP |
| 80 |
.RE |
| 81 |
\fBcat glint-1.\&0-1.\&i386.\&rpm | rpm2archive - | tar -tvz\fR |
| 82 |
.RS 4 |
| 83 |
Feed \fIglint-1.\&0-1.\&i386.\&rpm\fR package into \fBrpm2archive\fR via standard |
| 84 |
input, and list contents with \fBtar\fR(1).\& |
| 85 |
.PP |
| 86 |
.RE |
| 87 |
.SH SEE ALSO |
| 88 |
\fBrpm2cpio\fR(1), \fBrpm\fR(8) |