[CentOS] dependency issue

Thu Aug 16 12:36:44 UTC 2012
Steve Clark <sclark at netwolves.com>

Hello List,

I am trying to install php-snmp into my CentOS 6.2 system and it doesn't work,
and I am not sure why. It looks like it is trying to install php-snmp from 6.3.
Error: Package: php-snmp-5.3.3-14.el6_3.i686 (updates)
            Requires: php-common = 5.3.3-14.el6_3
            Installed: php-common-5.3.13-1.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)

Also why wouldn't 5.3.13-1 be a higher revision than 5.3.3-14?

[root at Z703108 ~]# cat /etc/redhat-release
CentOS release 6.2 (Final)

[root at Z703108 ~]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base cr elrepo epel extras rpmforge updates
Cleaning up Everything
Cleaning up list of fastest mirrors

[root at Z703108 ~]# rpm -qa | grep php
php-5.3.13-1.el6.i686
php-pgsql-5.3.13-1.el6.i686
php-common-5.3.13-1.el6.i686
php-ldap-5.3.13-1.el6.i686
php-cli-5.3.13-1.el6.i686
php-pdo-5.3.13-1.el6.i686

[root at Z703108 ~]# yum --disablerepo=\* --enablerepo=base,updates update php
Loaded plugins: fastestmirror
Determining fastest mirrors
  * base: centos.digitalcompass.net
  * updates: centosmirror.quintex.com
base | 3.7 kB     00:00
base/primary_db | 3.5 MB     00:24
updates | 3.5 kB     00:00
updates/primary_db | 1.7 MB     00:11
Setting up Update Process
No Packages marked for Update

[root at Z703108 ~]# yum --disablerepo=\* --enablerepo=base,updates install php-snmp
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
  * base: centos.digitalcompass.net
  * updates: centosmirror.quintex.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-snmp.i686 0:5.3.3-14.el6_3 will be installed
--> Processing Dependency: php-common = 5.3.3-14.el6_3 for package: php-snmp-5.3.3-14.el6_3.i686
--> Finished Dependency Resolution
Error: Package: php-snmp-5.3.3-14.el6_3.i686 (updates)
            Requires: php-common = 5.3.3-14.el6_3
            Installed: php-common-5.3.13-1.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
                php-common = 5.3.13-1.el6
            Available: php-common-5.3.3-3.el6_2.8.i686 (base)
                php-common = 5.3.3-3.el6_2.8
            Available: php-common-5.3.3-14.el6_3.i686 (updates)
                php-common = 5.3.3-14.el6_3
  You could try using --skip-broken to work around the problem


-- 
Stephen Clark
*NetWolves*
Director of Technology
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.clark at netwolves.com
http://www.netwolves.com