Yum Database Fixup

|
I was updating an old Fedora Core 5 image (old = 5 months without updates) and the rpm database went ka-boom when it tried to update 500+ modules! So, after Google-ing around, I found a couple of possible fixes. This is the one that worked. As root, use the following commands:
% rm /var/lib/rpm/__db*
% rpm --rebuilddb
% yum clean all
Note - the filename in the rm command is [underscore][underscore]db*. The rpm rebuild took about 20 minutes and, after running the yum clean-up, the yum update worked like a champ.