[CentOS] dumb developer explodes yum

Sun Jun 15 20:43:17 UTC 2014
Gordon Messmer <gordon.messmer at gmail.com>

On 06/15/2014 09:46 AM, Tim Dunphy wrote:
> Hi thanks for your input. I should've realized the versions were different.
> But when I try that suggestion you made, this is the result I get:
>
> [root at host1 i386]# rpm -Uvh elfutils-libs-0.137-3.el5.i386.rpm
> elfutils-0.137-3.el5.i386.rpm

You are missing elfutils-libelf.  There should be three packages.

Your original message doesn't make much sense to me, though.

[root at uszmpaplp005lc i386]# rpm -Uvh rpm-libs-4.4.2-37.el5.i386.rpm
error: Failed dependencies:
         libelf.so.1 is needed by rpm-libs-4.4.2-37.el5.i386

Sure, and libelf.so.1 is in elfutils-libelf.  But you also wrote:

[root at uszmpaplp005lc i386]# rpm -qa | grep elf
elfutils-libelf-0.137-3.el5

What, exactly, got removed?  Was it one of the files in /var/lib/rpm?  
One of the "Provide" files, maybe?

If that's what happened, then you need to get a copy of *all* of the 
packages currently installed and use them to rebuild the rpm database:

rpm -qa --qf '%{NAME}\n' | sort
# Get all of those packages
rpm -Uvh --justdb --replacepkgs --replacefiles *

And make sure they're the same version you have installed.