2.安装阿里yum源

1.删除自带的yum源:
#cd /etc/yum.repos.d/
#rm -rf *
 
2.配置远程yum源:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
(两种任选一个就好)
###将$releasever替换为6,不用做这步
 
3.进行验证yum源配置成功:
清除缓存yum源
#yum clean all
 
4.链接远程的yum源
#yum makecache
 
5.查看已配置好的yum源信息“
#yum repolist
posted @ 2019-08-01 11:30  AllenHU320  阅读(993)  评论(0编辑  收藏  举报