[CentOS] Damaged rpm database?

Sat Oct 6 14:04:36 UTC 2007
Akemi Yagi <amyagi at gmail.com>

On 10/6/07, M. Fioretti <mfioretti at nexaima.net> wrote:
> On Sat, Oct 06, 2007 04:24:35 AM -0700, Akemi Yagi (amyagi at gmail.com) wrote:
> > On 10/6/07, Steven Haigh <netwiz at crc.id.au> wrote:
> >
> > > 2)  rpm --rebuilddb will do what you need.
> >
> > Run this command with lots of caution.  Take a look at this page:
> >
> > http://www.oldrpm.org/hintskinks/repairdb/
> >
> > and try a step-by-step repair procedure.
> >
>
> In my case, these two commands seem to have restored things without
> problems:
>
>         rm -f /var/lib/rpm/__db*
>         rpm -vv --rebuilddb
>
> meaning that now, rpm -qa --last doesn't give anymore any error.
> Should I run some other check before officially declaring the problem
> solved?
>
> Thanks,
>         Marco

If the rebuilding process went through without any problem, it is
likely that you have repaired the rpm database successfully.

Akemi