[CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin
craigwhite at azapple.com
Wed Apr 22 20:00:48 UTC 2009
On Wed, 2009-04-22 at 13:40 -0600, Dan Roberts wrote:
> Hi Filipe -
> Clearly I have indeed got things broken -
> # rpm -q yum
> package yum is not installed
> So I downloaded the rpm for a reinstall as you suggested - but clearly
> I have more to get and install -
> I downloaded to my home directory and ran the rpm -Uvh from there
> # 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.
you've been spoiled by the dependency resolution by yum which doesn't
exist with rpm so in order to get yum installed, you going to need to do
some manual downloading and installation of dependencies.
I wouldn't recommend that you use '--force' for any rpm commands unless
you know what you're doing.
Open a web browser and depending upon your installation (I am using i386
(it's possible that you may need something from updates)
and you will undoubtedly need to download
possibly popt and maybe some python stuff - and install locally like...
rpm -Uvh *rpm
and you will probably have to also do that for yum and
yum-fastest-mirror packages as well. Once yum is installed, you can then
update the rest.
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the CentOS