1, yum configuration file (/etc/yum.conf), repo file (/ETC/YUM.REPOS.D) detailed
Http://www.centos.org/docs/5/html/5.1/Deployment_Guide/c1-yum.html
2, yum special parameters
--INSTALLROOT=ROOT Specifies the root directory when installing software
--enablerepo=repoidglob temporarily enable a download source
--disablerepo=repoidglob temporarily deactivate a download source
--exclude=package Exclude a Package
--noplugins temporarily deactivate all plugins
--disableplugin=plugin temporarily deactivate the specified plugin
3, Case 1: Disable a source
Why should the source be banned.
"Note: If you are considering using a Third-party software library, you should seriously consider how to prevent" updates "from these repositories from inadvertently taking over the core part of CentOS. One of these methods defaults to deactivating them, enabling them if necessary, "http://wiki.centos.org/zh/AdditionalResources/Repositories?action=show&redirect =zh%2frepositories
Edit/etc/yum.repos.d/example.repo
Enabled=0
Or
Yum--disablerepo=some-repository Install Some-package
Yum--enablerepo=some-disabled-repository Install Some-package
YUM Remove Repo (Repository) –yum Disable repo (Repository), http://www.if-not-true-then-false.com/2010/ yum-remove-repo-repository-yum-disable-repo-repository/
4, CentOS use of the software library
Http://wiki.centos.org/zh/AdditionalResources/Repositories?action=show&redirect=zh%2FRepositories
Well-known Third-party software libraries: Rpmforge, Elrepo, Atrpms, Epel, and Rpmfusion