RPMDB(8)
π RPMDB(8) β the RPM Database Tool π
okay bestie, welcome to rpmdb(8), straight out of the System Manager's Manual β¨ this is the little tool that takes care of your RPM database's whole self-care routine β think of it as the spa day for your package headers π§βοΈ
πΈ NAME πΈ
rpmdb β the RPM Database Tool π
β¨ SYNOPSIS β¨
rpmdb [options] {--initdb|--rebuilddb}
rpmdb [options] {--verifydb}
rpmdb [options] {--exportdb|--importdb}
likeβ¦ pick your lane, bestie. two of these, or one, or two. that's the whole vibe chart π
π¦ DESCRIPTION π¦
the rpmdb is used for rpm database maintenance operations. that's it. that's the job. it's giving janitor but make it couture π§Ήβ¨
π OPERATIONS π
--initdbβ creates a brand-new database if one doesn't already exist. and if one does exist? nope, it does not get overwritten. she's respectful like that π an existing db stays untouched, periodt.--rebuilddbβ rebuilds the database from the installed package headers. rebuilding discards any unreadable (corrupt) headers from the database, but it also compacts the database in case it has grown large over time π«Ά so it's a glow-up AND a declutter. no cap.
she can also be used to convert between different rpmdb formats π format-shifting icon.
--verifydbβ performs a low-level integrity check on the database. rarely useful β for actual system health,rpm --verify -ais a far more meaningful operation. so like, she's cute but she's not the main character here π--exportdbβ exports the database in header-list format, suitable for transporting to another host or database type πβ¨ the data is output to standard output.--importdbβ imports a database from a header-list format as created by--exportdbπ₯ the data is read from standard input.
π OPTIONS π
see rpm-common(8) for the options common to all rpm executables π«‘ that's where the shared wardrobe lives.
π 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 nonzero failure code otherwise π (as she should).
π EXAMPLES π
like, here's how the girlies actually run it:
rpmdb --initdb --dbpath /tmp/testdbβ initialize a new database in the/tmp/testdbdirectory.rpmdb --rebuilddbβ rebuild the system rpmdb.rpmdb --verifydb --root /mntβ verify the system database of a system image mounted at/mnt.rpmdb --exportdb > /tmp/headersβ export the system database to the/tmp/headersfile.rpmdb --importdb --define "_db_backend ndb" --dbpath /tmp/newdb < /tmp/headersβ import the contents of the/tmp/headersheader list to a (new) ndb-format database in/tmp/newdb.
raw and exact, bestie:
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. yes, again. she said what she said π€·βοΈ
π₯ SEE ALSO π₯
rpmdb --helpβ asrpm(8)supports customizing the options via popt aliases, it's impossible to guarantee that what's described in the manual matches what's available. so likeβ¦ run--helpand trust your own eyes, fr fr πhttp://www.rpm.org/π
and that's the whole page, bestie!! this one's from RPM 6.1.0, dated 2026-08-20, in the System Manager's Manual section β mwah, iconic, go maintain your database responsibly π«Άπβ¨ππ¦πΈ
π¦ where this page comes from
- ubuntu stonking: rpm 6.1.0-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms