Total Pageviews

Thursday, 12 March 2009

How to Rebuild Your rpm Database

Sometimes seems that the Pubkeys on your rpm database doesn't rebuild properly. Try the following to ensure proper update of the Pubkeys :

1. cd /var/lib
2. tar -czvf /root/rpmdb-old.tar.gz rpm
3. rm -f /var/lib/rpm/__db*
4. cd /var/lib/rpm
5. mv Pubkeys Pubkeys.old
6. rpm -vv --rebuilddb

No comments: