Install and Configure the Yum Priorities plug-in in CentOS
The Yum Priorities plugin can be used to enforce ordered protection of repositories, by associating priorities to repositories. Visit the Yum Priorities CentOS Wiki for more information.
Install Yum Priorities
Run the Yum Priorities install command
yum install yum-priorities
Configure Yum PrioritiesOpen the Yum Priorities configuration file
Ensure the following lines exist
Save and close the file
Open the CentOS base repository configuration file
Add the following text to the end of the Base, Updates, Addons, and Extras repository entries*
Add the following text to the end of the CentOSPlus repository entry*
* A repository entry is specified with the repository name placed between [ and ] (i.e. the base repository entry is specified with [base]).