[CentOS] Recover rpm DB corrupted by disk failure?

Bart Schaefer barton.schaefer at gmail.com
Mon Feb 23 18:03:50 UTC 2009


On Mon, Feb 23, 2009 at 9:10 AM, Akemi Yagi <amyagi at gmail.com> wrote:
> Check the contents of /var/log/rpmpkgs (and .1 .2 etc).
> Get all packages listed there into a single directory.
> cd to that directory and issue the command:
>
> rpm -ivh --noscripts --notriggers --justdb *.rpm
>
> to restore your /var/lib/rpm/Packages file

Are there any files I should remove or zero out or the like before
beginning this process?



More information about the CentOS mailing list