1.cd 到/etc/yum.repos.d目录

1
cd /etc/yum.repos.d

2.wget 源
1
wget http://url/xxx.repo

3.执行yum makecache

1
yum makecache