Creating Rpm database

Michael Schwendt fedora at wir-sind-cool.org
Wed May 4 18:05:13 UTC 2005


On Wed, 04 May 2005 15:22:09 +0100, Mark Farmer wrote:

> Michael Schwendt wrote:
> >>You could try rpm --rebuilddb
> >>That should build a new database
> > 
> > 
> > No, it won't do that in this case. The manual page contains a hint why it
> > won't work.
> > 
> 
> Good point :-)
> 
> Extract from the rpm man page:
> 
> use --rebuilddb to rebuild the database indices from the installed package headers.
> 
> The headers are obviously in /var/lib/rpm - I guess the file 'Sha1header' is the one 
> in question?

No. /var/lib/rpm/Packages is the main database.
Don't expect --rebuilddb to _create_ a database out of nothing.




More information about the redhat-list mailing list