6f84a7ffa364d8caad7123b5ff80eea9916983c5
[platform/upstream/libsolv.git] / doc / gen / rpmdb2solv.1
1 '\" t
2 .\"     Title: rpmdb2solv
3 .\"    Author: [see the "Author" section]
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
5 .\"      Date: 09/14/2018
6 .\"    Manual: LIBSOLV
7 .\"    Source: libsolv
8 .\"  Language: English
9 .\"
10 .TH "RPMDB2SOLV" "1" "09/14/2018" "libsolv" "LIBSOLV"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el       .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 rpmdb2solv \- convert the rpm database into a solv file
32 .SH "SYNOPSIS"
33 .sp
34 \fBrpmdb2solv\fR [\fIOPTIONS\fR] [\fIREFFILE\&.solv\fR]
35 .SH "DESCRIPTION"
36 .sp
37 The rpmdb2solv tool reads rpm\(cqs installed packages database and writes it in solv file format to standard output\&. You can make use of an old version of the database by specifying a \fIREFFILE\&.solv\fR file\&.
38 .PP
39 \fB\-o\fR \fIOUTFILE\fR
40 .RS 4
41 Write the generated solv to
42 \fIOUTFILE\fR
43 instead of standard output\&.
44 .RE
45 .PP
46 \fB\-P\fR
47 .RS 4
48 Print percentages as packages are being read in\&. The output format is like rpm\(cqs \-\-percent option\&.
49 .RE
50 .PP
51 \fB\-r\fR \fIROOTDIR\fR
52 .RS 4
53 Use
54 \fIROOTDIR\fR
55 as root directory\&.
56 .RE
57 .PP
58 \fB\-k\fR
59 .RS 4
60 Read pubkeys from the rpm database instead of installed packages\&. Note that many distributions stopped storing pubkeys in the database but use a directory like
61 \fB/var/lib/rpm/pubkeys\fR
62 instead\&.
63 .RE
64 .PP
65 \fB\-A\fR
66 .RS 4
67 Also scan the
68 \fB/usr/share/appdata\fR
69 for installed appdata files and create pseudo packages for each file\&.
70 .RE
71 .PP
72 \fB\-p\fR \fIPRODDIR\fR
73 .RS 4
74 Also read SUSE product files from directory
75 \fIPRODDIR\fR\&. The standard directory is
76 \fB/etc/products\&.d\fR\&.
77 .RE
78 .PP
79 \fB\-n\fR
80 .RS 4
81 Do not read any packages from the rpm database\&. This is useful together with
82 \fB\-p\fR
83 to only convert SUSE products\&.
84 .RE
85 .PP
86 \fB\-X\fR
87 .RS 4
88 Autoexpand SUSE pattern and product provides into packages\&.
89 .RE
90 .SH "SEE ALSO"
91 .sp
92 rpms2solv(1)
93 .SH "AUTHOR"
94 .sp
95 Michael Schroeder <mls@suse\&.de>