Install the Yum source priority plug-in Yum Priorities in CentOS

Source: Internet
Author: User

Install the Yum source priority plug-in Yum Priorities in CentOS

Install the priority control plug-in using YUM
There are many Linux distributions, and many individuals or organizations have maintained installation/upgrade sources for specific purposes. The Yum Priorities plugin can be used to forcibly protect the source. By setting different priorities for various sources, the system administrator can set certain sources (such as official sources of Linux releases) to the highest priority, this ensures system stability (and may not be updated to the latest software version provided by other sources ).
Install Yum Priorities
1. Because the experimental system is CentOS6.4-64, according to the majority of yum installation and download systems on the Internet, the system prompts that no package is available, so you can search for the yum-plugin-priorities rpm package and install it.
Http://rpmfind.net/linux/rpm2html/search.php? Query = & submit = Search +... & Amp; system = & amp; arch =

2. Configure Yum Priorities
Use a text editor to open the Yum Priorities configuration file and ensure that the configuration file contains the following lines:

Edit CentOS-Base source profile/etc/yum. repos. d/CentOS-Base.repo
1. Add priority = 1 to the back of the source records of [base], [updates], and [extras] respectively.
2. Add priority = 2 to the end of the [centosplus] source record
Note: The priority ranges from 1 ~ The 99 number indicates that 1 has the highest priority. If a source with a lower priority has a newer version of a software, if the source with a higher priority does not have a higher priority, the system cannot install or upgrade the plug-in to the later version. By default, the graphic interface YUM tool includes priority plug-ins.
To disable the YUM priority function, you only need to change enable = 1 to enable = 0 in/etc/yum/pluginconf. d/priorities. conf.
For more information about the Yum Priorities plugin, see the official documentation:
Https://wiki.centos.org/zh/PackageManagement/Yum/Priorities
Install EPEL Source
EPEL (Extra Packages for Enterprise Linux, an additional software package for Enterprise Linux) is a high-quality software Repository Project maintained by the Fedora team and provides RHEL/CentOS software Packages they do not provide by default. This source is compatible with RHEL and derivative versions such as CentOS and Scientific Linux.
The yum command can be used to obtain tens of thousands of software from the EPEL source that is not available on the CentOS built-in source. Most of the packages provided by EPEL are based on their corresponding Fedora Packages and do not conflict with or replace their files with the software of the Enterprise Edition Linux release.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.