Yum Priorities

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

  1. Run the Yum Priorities install command
    yum install yum-priorities

Configure Yum Priorities

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

Open Source Software: