[CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

Wed Apr 22 20:06:40 UTC 2009
Dan Roberts <dan at jlazyh.com>

Ok - something truly bad appears to have happened.    Yes, I will  
concede that cycling the system was a bad thing - but after two hours  
it should have returned from the update, still I was bad.

There are indeed updates that it wants - and I went back to the site  
to get them, but then things continue to show up as missing.
# rpm -Uvh --force rpm-4.4.2-48.el5.i386.rpm
error: Failed dependencies:
	librpm-4.4.so is needed by rpm-4.4.2-48.el5.i386
	librpmbuild-4.4.so is needed by rpm-4.4.2-48.el5.i386
	librpmdb-4.4.so is needed by rpm-4.4.2-48.el5.i386
	librpmio-4.4.so is needed by rpm-4.4.2-48.el5.i386
	popt = 1.10.2 is needed by rpm-4.4.2-48.el5.i386

Clearly I have a pretty big hole here.  Yes I have been spoiled by yum  
and rpm.  Years ago I use to command line build, make and install  
everything - but dropped that habit in favor of the ease of yum.

Are there are set of core files that seem reasonable to pull and  
install -

It is beginning to seem that I may be ahead of the curve to download  
the new Centos 5.3 i386 images and install a fresh system on another  
hard drive and then move my mail, websites and other relevant files  
over.


On Apr 22, 2009, at 1:48 PM, Filipe Brandenburger wrote:

> Hi,
>
> On Wed, Apr 22, 2009 at 15:40, Dan Roberts <dan at jlazyh.com> wrote:
>> # rpm -Uvh --force yum-3.2.19-18.el5.centos.noarch.rpm
>> error: Failed dependencies:
>>        rpm >= 0:4.4.2 is needed by yum-3.2.19-18.el5.centos.noarch
>>        rpm-python is needed by yum-3.2.19-18.el5.centos.noarch
>>        yum-fastestmirror is needed by yum-3.2.19-18.el5.centos.noarch
>> Either I am running this in the wrong location, or there is a lot of
>> other stuff out of whack.
>
> It looks like your system is closer to 5.2 than 5.3.
>
> In that case, I suggest you try to install this RPM of yum instead:
> http://mirror.centos.org/centos/5.2/updates/i386/RPMS/yum-3.2.8-9.el5.centos.2.1.noarch.rpm
>
> If it still asks about dependencies, you will have to download them
> and install/upgrade them manually using RPM.
>
> Look for them here:
> http://mirror.centos.org/centos/5.2/os/i386/CentOS/
> And here:
> http://mirror.centos.org/centos/5.2/updates/i386/RPMS/
>
> Once you get to install yum-3.2.8-9.el5.centos.2.1, yum should start
> working again.
>
> When you got that done, you can try to use it to upgrade again, but
> this time I advise you to do it on a screen session from an SSH
> connection, and not through Webmin. And do not reboot the server in
> the middle of the upgrade, since that is probably what started your
> problems in this case.
>
> HTH,
> Filipe
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos