CentOS的yum源更换为aliyun 作者: rontian 时间: 2019-07-13 分类: Linux #### 备份 `mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup` #### CentOS5 `wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo` #### CentOS6 `wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo` #### CentOS7 `wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo` #### 生成缓存 `yum makecache` 标签: none
评论已关闭