Linux yum源更换阿里云的源

1.备份

mv /etc/yum.repos.d/Centos-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

2.下载新的CentOS-Base.repo 到/etc/yum.repos.d/

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

3.

# yum grouplist

#yum groupinstall Development Tools

猜你喜欢

转载自www.cnblogs.com/hotMemo/p/9211870.html