Although package managers make installing and updating software an almost trivial task, there can still be some pain points if we're not careful. For example, we can configure multiple repositories, including third-party repositories not maintained by CentOS, and the version of a package in one repository can conflict with the same in another. This recipe uses the Priorities plugin to prioritize the repositories we use to help avoid such pitfalls.
This recipe requires a CentOS system with a working network connection. Administrative privileges are also required, either by logging in with the root
account or through the use of sudo
.
Follow these steps to prioritize which repositories yum
downloads software from:
Open the
/etc/yum.conf
file with your text editor. Locate theplugins
option and verify that its value is set to1
to enable plugin support. Update the value if necessary:plugins = 1
Install the
yum-plugin...