[CentOS] failed yum upgrade aftermath
Aleksandar Milivojevic
alex at milivojevic.org
Sun Dec 18 03:22:39 UTC 2005
Robert Hanson wrote:
> it had a failed (lost remote connection) yum update on centos 4.x and i am
> trying to finish...
>
> --> Processing Dependency: php = 4.3.9-3.8 for package: php-mysql
> --> Finished Dependency Resolution
> Error: Missing Dependency: php = 4.3.9-3.8 is needed by package php-mysql
Most likely it failed somewhere in the middle of updating php packages.
Leaving you with inconsistent mix of old and new versions of PHP
packages. What you might do is to update php by hand, and then finish
the update process using yum.
First get list of currently installed PHP packages:
rpm -qa | grep php
Then download them manually from any CentOS mirror (or simply use the
ones from installation media, they'd get updated when you run yum
anyhow). If the php package itself is missing, add it (might be it was
corrupted or something when update process broke). You'll probably need
to force things a bit:
rpm -Uhv --force --nodeps --oldpackage list-of-rpm-files
Replace "list-of-rpm-files" with filenames of RPM packages you are about
to reinstall. The "oldpackage" option is needed if you choose to
"update" with packages from installation CD-ROM (since those might be
the older version then some of allready installed packages).
When done, simply re-run "yum update" to finish.
More information about the CentOS
mailing list