The official CentOS source removes some copyright-related software, so you want to install the software or manually download the installation, or use a different source. Below I recommend the common two sources, these two sources basically can satisfy the general server usage demand.
1. First, to determine the system architecture and version before adding the source
To view the system version:
[Email protected] ~]$ cat/etc/redhat-releasecentos Linux release 7.3.1611 (Core) [[email protected] ~]$ uname-r3.10.0-5 14.el7.x86_64[[email protected] ~]$ uname-alinux bogon 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 16:42:41 UTC x86_64 x 86_64 x86_64 Gnu/linux
To see that the system version is 7.3.1611 architecture is x86_64 64-bit system
2. See what sources are already on the current CentOS7
[[email protected] ~]$ Yum repolist loaded plugin: fastestmirror, langpacksloading mirror speeds from cached Hostfile * base:mirror s.aliyun.com * extras:mirror.bit.edu.cn * updates:mirrors.sohu.com source identity Source name status base/7/x86_64 CentOS-7- Base 9,363extras/7/x86_64 CentOS-7-Extras 451updates/7/x86_64 CentOS-7-Updates
3. Next, install the Epel source
EPEL website Address: Https://fedoraproject.org/wiki/EPEL
Click Chinese Simplified
Scroll down and find
CentOS users can install and enable the Epel source directly from the following command. "Root User Rights required"
[[email protected] ~]$ yum install epel-release loaded plugin: Fastestmirror, LangPacks you need root privileges to execute this command. [[email protected] ~]$ su root password: ABRT has detected a ' 1 ' issue. For more information please do: ABRT-CLI list--since 1505290164[[email protected] sxd]# yum install epel-release loaded plugin: Fastestmirror, Langpacksloading mirror speeds from cached Hostfile * base:mirrors.btte.net * extras:mirrors.cqu.edu.cn * Updates:mirro Rs.cqu.edu.cn is resolving dependencies--Checking transaction---> Package epel-release.noarch.0.7-9 will be installed--resolve dependency completion dependency resolution ================== ============================================================== Package schema version source Size ================================================================================ Installing: epel-release N Oarch 7-9 Extras k transaction summary ================================================================ ================ Installation 1 package total Downloads: K Installation size: KIs This ok [y/d/n]:
4. After the installation is complete, manually update the source to take effect immediately
Type the command:
Yum Makecache
5. Re-view the source, Epel has been installed successfully
[Root@bogon sxd]# yum repolist loaded plugin: fastestmirror, langpacksloading mirror speeds from cached Hostfile * BASE:MIRRORS.BTT E.net * epel:mirrors.tuna.tsinghua.edu.cn * extras:mirrors.cqu.edu.cn * updates:mirrors.cqu.edu.cn source identity Source name Status base/7/x86_64 CentOS-7-Base 9,363epel/x86_64 Extra Packages for Enterprise Linux 7-x86_64 11,898extras/7/x86_64 CentOS-7-Extras 451updates/7/x86_64 CentOS-7-Updates
Reference Address: https://blog.itnmg.net/centos-yum-source/
https://www.tecmint.com/enable-rpmforge-repository/
Http://www.live-in.org/archives/998.html
"Linux" CentOS7 add a common source