[BlueOnyx:08984] Re: Yum update problem

Michael Stauber mstauber at blueonyx.it
Sun Nov 6 19:10:15 -05 2011


Hi Chris,

> I think it's from a PHP upgrade mistake to install the new Wordpress, we
> may have caused an issue with yum from it.
> 
> Can we recover from it?

Should be possible. But it requires a few steps:

1.) Remove the "atomic" YUM repository from /etc/yum.repos.d/

2.) Find out which RPMs came aboard via the "atomic" YUM repository. 
/var/log/yum.log may shed some light on this, although it doesn't really log 
which RPMs ame from which repository. It still may give you some clues which 
RPMs were installed since you activated the atomic repository that nuked your 
box.

3.) Force the removal of all RPMs that came from the atomic YUM repository. In 
your case it seems like it's mostly PHP related RPMs. So a good start would be 
this:

rpm -qa|grep ^php

That returns a list of installed RPMs whose name starts with "php". 

Remove them all like this:

rpm -e --nodeps name-of-rpm 

Take notes which RPMs you remove. 

4.) Reinstall the removed RPMs via YUM:

yum install name-of-rpm

Please note: When you remove the RPMs, you may specify version numbers, too. 
But when you do a "yum install", you leave the version number away. YUM will 
automatically fetch the latest version anyway.

Once all is done, you can try a "yum update" again and see if that now goes 
through, or if it still runs into conflicts.

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list