
The priorities are also in effect when a new package is installed - if a package is in more than one repository, it will be installed from the repository with the highest priority. Packages from repositories with a lower priority will never be used to upgrade packages that were installed from a repository with a higher priority. The priorities plugin can be used to enforce ordered protection of repositories, by associating priorities to repositories. It functions in a substantially similar ways in these three CentOS major releases

CentOS-6 has reverted to yum-plugin-priorities. It is named yum-priorities on CentOS-5 but was named yum-plugin-priorities on CentOS-4. Note: This plugin has carried at least two differing names over time. This can let you choose which packages a less important repo will supersede those of a more important one.

It can be used in conjunction with the 'exclude' and/or 'includepkg' options, as well as the 'enabled=0' option to disable a repo by default. Many people find the priorities plugin to be a useful tool if properly configured, and used with an understanding of the functionality and a recognition of the limitations and potential issues.
