On Thu, 13 Nov 2008, Rick Stevens wrote:
José Matos wrote:
> On Thursday 13 November 2008 19:04:13 Antonio Olivares wrote:
>> a reboot cures it :)
>
> If I am not mistaken the reboot removes the existing locks. I even think
> that there is a place that does really this:
>
> rm -rf /var/lib/rpm/__db.*
>
> That has been the case for all versions of Fedora and even before in Red
> Hat Linux...
"rm -f /var/lib/rpm/__db.*" deletes the RPM database.
No it certainly does not delete the RPM database :) The __db*.* files are
Berkeley DB environment which contains among other things the database
locking information.
You really should follow that up with a "rpm --rebuilddb"
or RPM will
get very confused.
Database rebuild is very rarely necessary.
- Panu -