database mess up

Rick Stevens ricks at nerd.com
Thu Jan 22 00:46:20 UTC 2009


Patrick Dupre wrote:
> Hello,
> 
> For a reason that I ignore my database is totallt mess up.
> rpm --rebuilddb only rebuild iy partially.
> The packages are installed, but rpm --rebuilddb does not see them.
> How can I recover them without resintalling them manually ?

As root:

	# cd /var/lib/rpm
	# rm -f __db.* (that's two underscores before the "db" bit)
	# rpm --rebuilddb


----------------------------------------------------------------------
- Rick Stevens, Systems Engineer                      ricks at nerd.com -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-         It is better to have loved and lost.  Cheaper, too!        -
----------------------------------------------------------------------




More information about the fedora-list mailing list