Monday, 4 June 2012

Install and Configure the Yum Priorities plug-in in CentOS

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 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]).

Further Reading:

  1. Update CentOS
  2. Install and Configure the EPEL Repository
  3. Install and Configure the Remi Repository
  4. Installing and Configuring LAMP on CentOS
     

No comments :

Post a Comment