You should make sure that you have Priorities installed.
yum-priorities is available in the CentOS 5 repositories:
yum install yum-priorities
Plugins are enabled in CentOS 5 by default.
Make sure that yum-priorities is enabled by editing the /etc/yum/pluginconf.d/priorities.conf file, and ensuring that it contains the following lines:
Edit the .repo files in /etc/yum.repos.d/ and set up priorities by adding the line:
to a repository entry, where N is an integer number from 1 to 99.
The recommended settings are:
[base], [addons], [updates], [extras] ... priority=1[centosplus],[contrib] ... priority=2Third Party Repos such as rpmforge ... priority=N (where N is > 10 and based on your preference)
Download the rpmforge-release package. Choose one of the two links below, depending on your architecture. If you are unsure of which one to use you can check your architecture with the command uname -i
(You can find a complete list of rpmforge-release package packages at http://dag.wieers.com/packages/rpmforge-release/ but it is recommended that you use one of the two listed above).
Install DAG’s GPG key
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
Verify the package you have downloaded
rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm
Security warning: The rpmforge-release package imports GPG keys into your RPM database. As long as you have verified the package and trust Dag then it should be safe.
Install the package
rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm
This will add a yum repository config file and import the appropriate GPG keys. At this point, you can set the priority of the RPMForge repository, and also of the CentOS repositories if you have not done so yet.
Fatto questo occorre aggiungere un altro repository:
[root@vmonitor-pub ~]# cat /etc/yum.repos.d/alcancelibre.org.repo
name=Enterprise Linux $releasever – $basearch – AL Desktop
rpm –import AL-RPM-KEY
Test with this command:
It should output these two lines:
Loading "priorities" plugin...76 packages excluded due to repository priority protections
The number above may differ, but there should be several packages shown as being excluded.
If so then it looks like things are working so try installing something like this
yum install mysql.i386 mysql-devel.i386 mysql-server.i386 mysql-test.i386 php-mysql.i386 php-pear-MDB2-Driver-mysql.noarch
yum install snort-mysql+flexresp.i386 snort-rep.i386 snort-snmp+flexresp.i386 php-acid.noarch mysql-server wget http://www.andrew.cmu.edu/user/rdanyliw/snort/acid-0.9.6b23.tar.gz wget http://heanet.dl.sourceforge.net/sourceforge/adodb/adodb505.tgz tar -zxvf acid-0.9.6b23.tar.gz tar -zxvf adodb505.tgz alias cp=cp cp -r acid/ /var/www/ cp -r adodb5/ /var/www/acid/ alias cp="cp -i" mysqladmin create snort mysql snort < /usr/share/doc/snort-188.8.131.52/create_mysql mysql snort < /var/www/acid/create_acid_tbls_mysql.sql edit /var/www/acid/acid_conf.php cp /etc/snort/snort.conf /etc/snort/snort.conf.ORIG edit /etc/snort/snort.conf download rules http://www.snort.org/vrt/ ....