[Yum-devel] install > ver problems

Jeff Sheltren jeff at osuosl.org
Fri Sep 21 01:58:10 UTC 2007


I ran across a problem when trying to build a package under mock on a  
CentOS 5 host.  It seems that when calling 'yum install'  and passing  
it a package & version, yum will go with the first match it finds  
rather than the higher EVR package.

The problem I'm having is with the mysql(-devel) packages.  I'm  
trying to build a PHP RPM which has a buildreq of 'mysql-devel >  
4.1.0'.  The build fails because when mock calls yum, yum attempts to  
install the mysql-devel from c5 base instead of the one from c5- 
updates and then complains that the mysql version needed is not  
available:
"Error: Missing Dependency: mysql = 5.0.22-2.1 is needed by package  
mysql-devel"

So, here's some troubleshooting I've done
# rpm -q yum
yum-3.0.5-1.el5.centos.2

# yum -d9 install 'mysql-devel > 4.5'
(fails -- see http://rafb.net/p/boeCO625.html )

# yum -d9 install 'mysql-devel'
(works as expected, pulls in mysql-devel from updates -- see http:// 
rafb.net/p/lsnmUh26.html )

Now, if I change the name of the updates repo from 'updates' to  
'aupdates' (alphabetically before the name of base, which is 'base'),  
the first call to yum works...

[edit .repo file, rename 'updates' to 'aupdates']
# yum -d9 install 'mysql-devel > 4.5'
(works -- see http://rafb.net/p/z6h8os74.html )

So it seems to me that yum is going through the repos in alphabetical  
order and taking the first match to the 'pkg > ver' argument.  I've  
set 'plugins=0' in /etc/yum.conf to verify that this isn't a plugin  
issue (I haven't installed any anyway), but the problem persists.  Am  
I just doing something really stupid, or is this a bug in yum?

Thanks,
Jeff




More information about the Yum-devel mailing list