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 Priorities
- Open the Yum Priorities configuration file
/etc/yum/pluginconf.d/priorities.conf
- Ensure the following lines exist
[main]
enabled=1
- Save and close the file
- Open the CentOS base repository configuration file
/etc/yum.repos.d/CentOS-Base.repo
- Add the following text to the end of the Base, Updates, Addons, and Extras repository entries*
priority=1
- Add the following text to the end of the CentOSPlus repository entry*
priority=2
* A repository entry is specified with the repository name placed between [ and ] (i.e. the base repository entry is specified with [base]).