On 31/01/2019 07.46, Basil Chupin wrote:
On 28/1/19 8:58 am, Carlos E. R. wrote:
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!
There's nothing better than creating confusion... :-(.
So, which is it: 'rpm --rebuilddb' or 'rpmdb --rebuilddb'?
The later. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)