On 27/01/2019 21.04, Dave Howorth wrote:
On Sun, 27 Jan 2019 14:00:15 +0100 "Carlos E. R." <> wrote:
4-Why isn't rebuilddb in the rpm manual?
It is on another manual. Let me see if I can find it [...] no luck so far [...]
man -K rebuilddb
finds it.
RPMDB(8)
rpm {--initdb|--rebuilddb} [-v] [--dbpath DIRECTORY] [--root DIRECTORY]
Use --initdb to create a new database if one doesn't already exist (existing database is not overwrit- ten), use --rebuilddb to rebuild the database indices from the installed package headers.
Well, there it is :-)
If you found "rpm --rebuilddb" in some doc, it is old and has not been corrected. It is "rpmdb --rebuilddb".
Err, surely you yourself found it. Although it is labelled 'RPMDB(8)' it actually claims 'rpm {--initdb|--rebuilddb} ...'.
You are right! It is there. I think it was previously 'rpm {--initdb|--rebuilddb} ...', and then moved to rpmdb. The documentation was just moved to another man, but not edited. Bug found! -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)