I, stupidly, uninstalled Python (I was having trouble with it for something else I needed) and didn't realise Yum needed it. So when I tried installing Python with a Yum command of course it didn't work.
I've managed to reinstall Python, and am now trying to get Yum working again but to install the Yum RPM I need some other dependencies installed, however one RPM needed is elfutils-libelf
I'm trying to install elfutils-libelf using the following command:
rpm -Uvh http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/elfutils-libelf-0.97.1-5.i386.rpm
When I run that command I get the following output:
error: Failed dependencies: elfutils-libelf = 0.97-5 is needed by (installed) elfutils-0.97-5.i386
Seeing as that's the RPM I'm trying to install, it doesn't make an awful lot of sense, to me.
I ran the following command and got the following output:
rpm -qa | grep elfutils-libelf
elfutils-libelf-0.97-5
So it looks installed.... I've tried uninstalling it to reinstall it but there's other dependencies preventing me from doing that.
My knowledge on Linux is very limited, so forgive me.
EDIT-
I ran the following command:
wget http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/elfutils-libelf-0.97.1-5.i386.rpm rpm -i elfutils-libelf-0.97.1-5.i386.rpm
And got the following output:
file /usr/lib/libelf.so.1 from install of elfutils-libelf-0.97.1-5 conflicts with file from package elfutils-libelf-0.97-5