CentOS系统更换软件安装源:
第一步:安装wget。如果你的系统已安装了wget可以直接跳到下一步。
[root@local~]#yum install wget
第二步:备份你的原镜像文件,避免出错后可以恢复(这里是把原文件重新命名)
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
第三步:下载新的CentOS-Base.repo到/etc/yum.repos.d/
CentOS 5:wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
CentOS 6:wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
第四步:运行yum makecache生成缓存
[root@local~]#yum makecache
转载于:https://www.cnblogs.com/zhoujingyu/p/4949126.html
最后
以上就是震动毛豆最近收集整理的关于修改Linux安装软件镜像源为阿里云的全部内容,更多相关修改Linux安装软件镜像源为阿里云内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复