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.
follow that up with a "rpm --rebuilddb" or RPM will get very confused.
If the database gets messed up, it is required still. Hasn't happened to me
in quite some time, though.
Dr. Horst H. von Brand User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 2654431
Universidad Tecnica Federico Santa Maria +56 32 2654239
Casilla 110-V, Valparaiso, Chile 2340000 Fax: +56 32 2797513