Sometime ago I managed to erase the /var/lib/rpm folder which basically contains information about all the rpms in the System
The problem posed is that I cannot query nor Upgrade using the yum
I did the steps mentioned like rpm –rebuild and ll that but it did not help
Its my pure curiosity to know of a method by which we can restore the database of the installed rpm's
I say curiosity, because the server runs fine without it also !!!
Hope no one does this anytime … I lost many days sleep for this
Thanks in advance for reading this post and thinking of a solution
Regards
amRit
Best Answer
Your only chance, if this system is important enough, is to reinstall only to db:
You could use your /root/install.log and /var/log/yum.log to get a list of installed RPMs, or, if you have a similar system you could get the RPM list from there.
That said, if this system can suffer downtime, I'd suggest re-installing as the best way. Otherwise, see the comment above.
Best of luck