[CentOS] centosplus + priority plugin

Thu Jan 31 02:20:22 UTC 2008
Christopher Chan <christopher at ias.com.hk>

I have a Centos 4 box that has been updated all the way to 4.6 without 
using the centosplus repository.

Now I want to use the centosplus repository for Centos 4 to get the 
latest LAMP, mod_perl, perl and other perl modules so that I can install 
rt 3.6.6 and its necessary modules.

However, for some reason, the latest perl package in the centosplus 
repository does not appear on the radar when I run yum check-update. Has 
anybody ran into this and get around the problem?

Contents of yum.conf and Centos-Base.repo and output from yum 
check-update follow.

Christopher

cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=centos-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1
plugins=1
exclude=postfix* cyrus-sasl* dovecot*
--------------------------------------------------------------------
cat /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for 
CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS 
updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://ftp.hostrino.com/pub/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
exclude=php* httpd* postgres* MySQL* mysql* perl perl-DBD-MySQL 
perl-DBD-Pg perl-DBI perl-suidperl unixODBC* mod_auth_mysql 
mod_auth_pgsql mod_perl mod_perl-devel mod_ssl
priority=1

#released updates
[update]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://ftp.hostrino.com/pub/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
exclude=php* httpd* postgres* MySQL* mysql* perl perl-DBD-MySQL 
perl-DBD-Pg perl-DBI perl-suidperl unixODBC* mod_auth_mysql 
mod_auth_pgsql mod_perl mod_perl-devel mod_ssl
priority=1

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
baseurl=http://ftp.hostrino.com/pub/centos/$releasever/addons/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://ftp.hostrino.com/pub/centos/$releasever/extras/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://ftp.hostrino.com/pub/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=2

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
baseurl=http://ftp.hostrino.com/pub/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

----------------------------------------------------------------
yum check-update
Loading "priorities" plugin
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Excluding Packages from CentOS-4 - Updates
Finished
Excluding Packages from CentOS-4 - Base
Finished
43 packages excluded due to repository priority protections

httpd.x86_64                             2.0.59-1.el4s1.10.el4. centosplus
httpd-manual.x86_64                      2.0.59-1.el4s1.10.el4. centosplus
mod_perl.x86_64                          2.0.3-1.el4s1.3        centosplus
mod_ssl.x86_64                           1:2.0.59-1.el4s1.10.el centosplus
mysql.x86_64                             5.0.54-1.el4.centos    centosplus
mysql-devel.x86_64                       5.0.54-1.el4.centos    centosplus
mysql-server.x86_64                      5.0.54-1.el4.centos    centosplus
mysqlclient10.x86_64                     3.23.58-9.2.c4         centosplus
perl-DBD-MySQL.x86_64                    3.0008-1.el4.centos    centosplus
perl-DBD-Pg.x86_64                       1.49-1.el4s1           centosplus
perl-DBI.x86_64                          1.54-1.el4s1           centosplus
php.x86_64                               5.1.6-3.el4s1.8        centosplus
php-gd.x86_64                            5.1.6-3.el4s1.8        centosplus
php-ldap.x86_64                          5.1.6-3.el4s1.8        centosplus
php-mbstring.x86_64                      5.1.6-3.el4s1.8        centosplus
php-pear.noarch                          1:1.4.11-1.el4s1.1     centosplus
php-pgsql.x86_64                         5.1.6-3.el4s1.8        centosplus
postgresql.x86_64                        8.1.9-1.el4s1.1        centosplus
postgresql-devel.x86_64                  8.1.9-1.el4s1.1        centosplus
postgresql-libs.x86_64                   8.1.9-1.el4s1.1        centosplus
postgresql-server.x86_64                 8.1.9-1.el4s1.1        centosplus
unixODBC.x86_64                          2.2.12-1.el4s1.1       centosplus