[CentOS] RE: trying to upgrade from Centos 4.0 to current -- repair RPM database

Sat Aug 20 16:15:42 UTC 2005
Pasi Pirhonen <upi at papat.org>


On Sat, Aug 20, 2005 at 10:03:17AM -0500, Bryan J. Smith wrote:


> Execute:  
>   # rm /var/lib/rpm __db.00?
>   # rpm --initdb

Oh please, don't do that :)

man page

'Use --initdb to create a new database, use --rebuilddb to rebuild the
database indices from the installed package headers.'

As in --initdb would efectively nuke all your bookkeeping about
installed RPMS.

Pasi Pirhonen - upi at iki.fi - http://iki.fi/upi/