How To Install yum-plugin-priorities on CentOS 7
Introduction
In this tutorial we learn how to install yum-plugin-priorities
on CentOS 7.
What is yum-plugin-priorities
This plugin allows repositories to have different priorities. Packages in a repository with a lower priority can’t be overridden by packages from a repository with a higher priority even if repo has a later version.
We can use yum
or dnf
to install yum-plugin-priorities
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install yum-plugin-priorities.
Install yum-plugin-priorities on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install yum-plugin-priorities
using yum
by running the following command:
Install yum-plugin-priorities on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install yum-plugin-priorities
using dnf
by running the following command:
How To Uninstall yum-plugin-priorities on CentOS 7
To uninstall only the yum-plugin-priorities
package we can use the following command:
References
Summary
In this tutorial we learn how to install yum-plugin-priorities
on CentOS 7 using yum
and dnf
.