[repository
]
section to the /etc/yum.conf
file, or to a .repo
file in the /etc/yum.repos.d/
directory. All files with the .repo
file extension in this directory are read by yum
, and it is recommended to define your repositories here instead of in /etc/yum.conf
.You can install repository priorities: wiki.centos.org/…um/Priorities
But a better solution might be to leave the extra repos disabled in the yum configuration and install/update the packages you want from them with:
yum --enablerepo=reponame install packagename
Working with yum, an intro from IBM: www.ibm.com/…-102-5/index.html
uname -r yum list kernel.* #find what's installed yum remove kernel-2.6.18-8.1.15.el5 #remove old
showdupesfromrepos=1
vi /etc/yum.conf
yum list --showduplicates all php
yum install yum-utils repoquery -i php