[CentOS] Recover rpm DB corrupted by disk failure?
Bart Schaefer
barton.schaefer at gmail.comMon Feb 23 20:15:50 UTC 2009
- Previous message: [CentOS] Recover rpm DB corrupted by disk failure?
- Next message: [CentOS] Recover rpm DB corrupted by disk failure?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 I ended up backing up/removing /var/lib/rpm and then running "rpm --initdb" before running the --justdb command shown above. I was able to pull all but 73 out of more than 1000 packages listed in /var/log/rpmpkgs from /var/cache/yum plus the CentOS 3.9 CD set.
- Previous message: [CentOS] Recover rpm DB corrupted by disk failure?
- Next message: [CentOS] Recover rpm DB corrupted by disk failure?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list