table of contents
| RPMDB(8) | System Manager's Manual | RPMDB(8) |
NAME¶
rpmdb - RPM Database Tool
SYNOPSIS¶
rpmdb [options] {--initdb|--rebuilddb}
rpmdb [options] {--verifydb}
rpmdb [options] {--exportdb|--importdb}
DESCRIPTION¶
The rpmdb is used for rpm database maintenance operations.
OPERATIONS¶
--initdb
--rebuilddb
Can also be used to convert between different rpmdb formats.
--verifydb
--exportdb
--importdb
OPTIONS¶
See rpm-common(8) for the options common to all rpm executables.
CONFIGURATION¶
There are several configurables affecting the rpmdb operations, but in particular the following (see rpm-config(5) for details):
- %_dbpath
- %_db_backend
EXIT STATUS¶
On success, 0 is returned, a non-zero failure code otherwise.
EXAMPLES¶
rpmdb --initdb --dbpath /tmp/testdb
rpmdb --rebuilddb
rpmdb --verifydb --root /mnt
rpmdb --exportdb > /tmp/headers
rpmdb --importdb --define "_db_backend ndb" --dbpath /tmp/newdb < /tmp/headers
OPTIONS¶
See rpm-common(8) for the options common to all operations.
SEE ALSO¶
popt(3), rpm(8), rpm-common(8)
rpmdb --help - as rpm(8) supports customizing the options via popt aliases it's impossible to guarantee that what's described in the manual matches what's available.
| 2025-11-07 | RPM 6.0.0 |