Re: Recover rpm DB corrupted by disk failure?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, Feb 23, 2009 at 9:10 AM, Akemi Yagi <amyagi@xxxxxxxxx> 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.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux