[Deploy] CentOS yum source, deploy centosyum Source
Install yum Source
A. rpm software package is provided for general software. After this package is installed using the rpm command, a yum repository source is automatically added, and then the software can be installed using yum.
Install the rpm package
rpm -ivh http://repo.somesite.com/somesoftware.rpm
Remove rpm package
rpm -e packagename
EPEL
In addition to the built-in centos source, it is estimated that it is a mandatory source.
Introduction
Https://fedoraproject.org/wiki/EPEL/zh-cn
Install
1. Install yum
yum install epel-release
Install Based on search results
2. rpm Installation
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
If you use CentOS6 address to change to https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
RPMForge
Introduction
Https://wiki.centos.org/AdditionalResources/Repositories/RPMForge
Rpm package directory
Http://pkgs.repoforge.org/rpmforge-release/
Other sources (CentOS)
Https://wiki.centos.org/AdditionalResources/Repositories
Yum Priorities
If more sources are installed, this plug-in is required. The priority of the source is used for yum command package search.
Install
yum install yum-priorities
Configuration
Open/Etc/yum/pluginconf. d/priorities. conf
vi /etc/yum/pluginconf.d/priorities.conf
Make sure that the file contains enabled = 1. If you want to disable the yum priority plug-in, change it to enabled = 0.
[main]enabled=1
Add priority configuration in the/etc/yum. repos. d/*. repo file. 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.
priority=1