Centos系统快速添加yum源

我常用的yum源如下:

阿里云yum源:http://mirrors.aliyun.com/repo/Centos-7.repo

小红帽yum源:https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

快速添加一个yum源

yum-config-manager --add-repo http://mirrors.aliyun.com/repo/Centos-7.repo

如果提示没有yum-config-manager命令,执行yum -y install yum-utils 安装即可,然后再执行一次上面的命令

原文地址:https://www.cnblogs.com/biaopei/p/10299735.html