Topic: php upgrade: dependency problems solved

Hi,

On a Centos 5.3 box, I wanted to upgrade from php 5.1 to php 5.2
I ran into the same depsolving issues I saw here on the forum,
but I found a solution.

first of all, add this line to /etc/yum.repos.d/remi.repo:

exclude=php*5.3.0*

================================================
[remi]
name=Les RPM de remi pour Enterprise Linux 5 - $basearch
baseurl=http://rpms.famillecollet.com/enterprise/5/remi/$basearch/
    http://iut-info.univ-reims.fr/remirpms/ … $basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
failovermethod=priority
exclude=php*5.3.0*

[remi-test]
name=Les RPM de remi en test pour Enterprise Linux 5 - $basearch
baseurl=http://rpms.famillecollet.com//enterprise/5/test/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
================================================

I ran the following command to start the upgrade process:

yum --enablerepo=remi update php-* mysql*

but got following errors:

php-pecl-memcache-3.0.4-2.el5.remi.1.i386 from remi has depsolving problems
  --> Missing Dependency: php(api) = 20090626 is needed by package php-pecl-memcache-3.0.4-2.el5.remi.1.i386 (remi)
php-pecl-memcache-3.0.4-2.el5.remi.1.i386 from remi has depsolving problems
  --> Missing Dependency: php(zend-abi) = 20090626 is needed by package php-pecl-memcache-3.0.4-2.el5.remi.1.i386 (remi)
Error: Missing Dependency: php(zend-abi) = 20090626 is needed by package php-pecl-memcache-3.0.4-2.el5.remi.1.i386 (remi)
Error: Missing Dependency: php(api) = 20090626 is needed by package php-pecl-memcache-3.0.4-2.el5.remi.1.i386 (remi)

So I uninstalled the php-pecl-memcache rpm and ran the update command again.
Everything worked fine afterwards.

I had a similar problem a couple of months ago on a Centos 5.2 box.
But there the problem was that I had the php-readline rpm installed
and that rpm was not available in the remi repo.
Uninstalling php-readline allowed me to upgrade.

I guess you'll probably run into problems when you need those specific rpms on your server,
but this is what worked for me.

after an upgrade it's always good to run 'php -v'
if no errors pop up, you're good.

hope this helps.
gr, Paul

Re: php upgrade: dependency problems solved

Your exclude solution will only work while 5.2.10 still is in the repository (will be replace shortly by  5.3.1, I only keep 2 versions in the repository)

For php-pecl-memcache you need the previous version you can find in the archives.

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi