* Basil Chupin
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'?
which one works for you? then that is the correct invocation! -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org