blob: 8580114fda642bf1e8136749772ea006c0e436fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
.\" Automatically generated by Pandoc 3.1.3
.\"
.\" Define V font for inline verbatim, using C font in formats
.\" that render this, and otherwise B font.
.ie "\f[CB]x\f[]"x" \{\
. ftr V B
. ftr VI BI
. ftr VB B
. ftr VBI BI
.\}
.el \{\
. ftr V CR
. ftr VI CI
. ftr VB CB
. ftr VBI CBI
.\}
.TH "RPM2ARCHIVE" "8" "27 January 2020" "" ""
.hy
.SH NAME
.PP
rpm2archive - Create tar archive from RPM Package Manager (RPM) package.
.SH SYNOPSIS
.PP
\f[B]rpm2archive\f[R] \f[B]{-n|--nocompression}\f[R]
\f[B]{-f|--format=pax|cpio}\f[R] \f[I]FILES\f[R]
.SH DESCRIPTION
.PP
\f[B]rpm2archive\f[R] converts the .rpm files specified as arguments to
tar archives on standard out.
.PP
If a \[aq]-\[aq] argument is given, an rpm stream is read from standard
in.
.PP
If standard out is connected to a terminal, the output is written to tar
files with a \[dq].tgz\[dq] suffix, gzip compressed by default.
.PP
In opposite to \f[B]rpm2cpio\f[R] \f[B]rpm2archive\f[R] also works with
RPM packages containing files greater than 4GB which are not supported
by cpio.
Unless \f[B]rpm2cpio\f[R] \f[B]rpm2archive\f[R] needs a working rpm
installation which limits its usefulness for some disaster recovery
scenarios.
.SH OPTIONS
.TP
\f[B]-n, --nocompression\f[R]
Generate uncompressed tar archive and use \[dq].tar\[dq] as postfix of
the file name.
.TP
\f[B]-f, --format=pax|cpio\f[R]
Generate archive in specified format: \f[B]pax\f[R] (the default format)
or \f[B]cpio\f[R].
Note that the cpio format cannot host files over 4GB in size and is only
supported here for backwards compatibility.
.SH EXAMPLES
.PP
.PD 0
.P
.PD
\f[B]\f[BI]rpm2archive glint-1.0-1.i386.rpm | tar -xvz\f[B]\f[R]
.PD 0
.P
.PD
\f[B]\f[BI]rpm2archive glint-1.0-1.i386.rpm ; tar -xvz
glint-1.0-1.i386.rpm.tgz\f[B]\f[R]
.PD 0
.P
.PD
\f[B]\f[BI]cat glint-1.0-1.i386.rpm | rpm2archive - | tar -tvz\f[B]\f[R]
.SH SEE ALSO
.PP
\f[B]rpm2cpio\f[R](8), \f[B]rpm\f[R](8)
.SH AUTHOR
.IP
.nf
\f[C]
Florian Festi <ffesti\[at]redhat.com>
\f[R]
.fi
|