Centos7更换yum源
来源:互联网 发布:淘宝一千零一夜的老板 编辑:程序博客网 时间:2024/05/18 18:20
完全参考:http://mirrors.aliyun.com/help/centos?spm=5176.bbsr150321.0.0.d6ykiD
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
或者
curl -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
或者
curl -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
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3、之后运行yum makecache生成缓存
阅读全文
0 0
- centos7 更换yum源
- CentOS7 更换yum源
- Centos7更换yum源
- Centos7更换yum源
- centos7 更换阿里yum‘源
- centos7更换yum源为163
- Centos7更换阿里云yum源
- rhel-server-7.1更换yum源(CentOS7)
- yum更换源
- RHEL6更换yum源
- RHEL更换yum源
- Centos更换yum源
- centos 更换yum源
- 更换yum源
- CentoOS更换yum源
- centos更换yum源
- 更换yum源脚本
- 更换yum源
- Linux基础操作2 文件操作命令以及系统文件说明:
- C# (不实现接口成员)
- 【技术干货】跨境茶话会第4期丨响应式编程的应用
- Android 7.0手机打开相机或相册报错解决方案
- vue.js 表单参数验证方法
- Centos7更换yum源
- WIN10运行软件,窗口不显示 解决办法
- 使用Fresco加载图片
- Java分割字符串
- SLAM中多传感器融合的时间同步问题
- javaScript闭包
- 使用logstash的logstash-input-kafka插件读取kafka中的数据
- 灰度图转colormap
- 有关Oracle最大连接数的问题