Centos的yum源更换为国内的阿里云源
来源:互联网 发布:机器视觉主流算法 编辑:程序博客网 时间:2024/06/06 11:38
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/
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
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3、之后运行yum makecache生成缓存
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、下载新的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
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3、之后运行yum makecache生成缓存
阅读全文
0 0
- Centos的yum源更换为国内的阿里云
- 将Centos的yum源更换为国内的阿里云源
- 将Centos的yum源更换为国内的阿里云源
- 超简单将Centos的yum源更换为国内的阿里云源
- 将Centos的yum源更换为国内的阿里云源
- 将Centos的yum源更换为国内的阿里云源
- 将Centos的yum源更换为国内的阿里云源(亲测可用)
- Centos的yum源更换为国内的阿里云源
- 超简单将Centos的yum源更换为国内的阿里云源
- 超简单将Centos的yum源更换为国内的阿里云源
- 将Centos的yum源更换为国内的阿里云源
- 将Centos的yum源更换为国内的阿里云源
- Centos的yum源更换为国内的阿里云源
- 超简单将Centos的yum源更换为国内的阿里云源
- 将Centos的yum源更换为国内的阿里云源
- 超简单将Centos的yum源更换为国内的阿里云源
- 超简单将Centos的yum源更换为国内的阿里云源
- 将Centos的yum源更换为国内的阿里云源
- 牛客网优惠码-直通BAT面试算法精品课购买
- Java设计模式-命令模式
- Intellij IDEA unresolved javascript function
- Spring整合hibernate配置
- makefile极好的极全面的自学博文
- Centos的yum源更换为国内的阿里云源
- 在Linux的Eclipse中编译使用动态链接库
- DES加解密工具类
- python 中trick 总结(一)
- Android_UI:Drawable
- Spring管理hibernate
- Unity Mecanim动画的实现(十):动画混合树、子状态机和状态行为
- Android中怎样防止内存泄漏?
- 收集各种API文档,提供下载.chm文件,HTML、java、w3school、servlet、js、spring、等等。