components/rpm2cpio/man/rpm2cpio.1
author John Beck <John.Beck@Oracle.COM>
Fri, 05 Jun 2015 13:16:26 -0700
changeset 4436 3a75dfb8c83b
child 7820 a2b9a7de9e1a
permissions -rw-r--r--
21210440 add rpm2cpio.1 to Userland

'\" te
.\" Copyright (c) 2001, Sun Microsystems, Inc.,  All Rights Reserved.
.TH rpm2cpio 1 "20 Aug 2001" "SunOS 5.12" "User Commands"
.SH NAME
rpm2cpio \- convert Red Hat Package (RPM) to cpio archive
.SH SYNOPSIS
.LP
.nf
\fBrpm2cpio\fR [\fIfile\fR.rpm]
.fi

.SH DESCRIPTION
.sp
.LP
The \fBrpm2cpio\fR utility converts the \fB\&.rpm\fR file specified as its sole argument to a \fBcpio\fR archive on standard output. (See NOTES.) If no argument is given, an rpm stream is read from standard input. In both cases, \fBrpm2cpio\fR will fail and print a usage message if the standard output is a terminal. Therefore, the output is usually redirected to a file or piped through the \fBcpio\fR(1) utility.
.SH EXAMPLES
.LP
\fBExample 1 \fRConverting an rpm file
.sp
.in +2
.nf
example% \fBrpm2cpio Device3Dfx-1.1-2.src.rpm | cpio -itv\fR
CPIO archive found!
-rw-r--r--  1 root  root  2635 Sep 13 16:39 1998, 3dfx.gif
-rw-r--r--  1 root  root 11339 Sep 27 16:03 1998, Dev3Dfx.tar.gz
-rw-r--r--  1 root  root  1387 Sep 27 16:04 1998, Device3Dfx-1.1-2.spec
31 blocks
.fi
.in -2
.sp

.LP
\fBExample 2 \fRConverting from standard input
.sp
.in +2
.nf
example% \fBrpm2cpio < Device3Dfx-1.1-2.src.rpm | cpio -itv\fR
CPIO archive found!
-rw-r--r--  1 root  root  2635 Sep 13 16:39 1998, 3dfx.gif
-rw-r--r--  1 root  root 11339 Sep 27 16:03 1998, Dev3Dfx.tar.gz
-rw-r--r--  1 root  root  1387 Sep 27 16:04 1998, Device3Dfx-1.1-2.spec
31 blocks
.fi
.in -2
.sp

.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp

.sp
.TS
tab() box;
cw(2.75i) |cw(2.75i) 
lw(2.75i) |lw(2.75i) 
.
ATTRIBUTE TYPEATTRIBUTE VALUE
_
Availabilitypackage/rpm
.TE

.SH SEE ALSO
.sp
.LP
\fBcpio\fR(1), \fBattributes\fR(5)
.SH NOTES
.sp
.LP
\fBrpm2cpio\fR handles versions 3 and 4 \fBRPM\fRs.