On Fri, 14 Nov 2008, Horst H. von Brand wrote:
Rick Stevens <ricks(a)nerd.com> 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.
It doesn't. The database lives in files called Basename and so on. file(1)
tells you the files with names starting with uppercase are BDB files, the
rest is assorted data.
Actually the only thing that really matters is /var/lib/rpm/Packages.
Basenames and such are just indexes that can be rebuilt as long as
Packages exists as is intact.
- Panu -