yum源的默认仓库文件夹是/etc/yum.repos.d/,只有在这个目录第一层的*.repo结尾的文件,才会被yum读取
1. 下载wget命令
yum install wget
-y
2. 备份旧的yum仓库源
cd
/etc
/yum
.repos
.d
/
mkdir repobak
mv
*.repo repobak
3. 下载阿里的yum源仓库
wget
-O
/etc
/yum
.repos
.d
/CentOS
-Base
.repo http
://mirrors
.aliyun
.com
/repo
/Centos
-7.repo
4.下载第二个仓库 —— epel仓库
wget
-O
/etc
/yum
.repos
.d
/epel
.repo http
://mirrors
.aliyun
.com
/repo
/epel
-7.repo
转载请注明原文地址:https://blackberry.8miu.com/read-37453.html