更换CentOS的下载源为阿里源
来源:互联网 发布:苹果版手机淘宝 编辑:程序博客网 时间:2024/05/01 06:29
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生成缓存
#yum clean all
#yum makecache
0 0
- 更换CentOS的下载源为阿里源
- 更换 CentOS 7 的下载源为阿里云
- 更换CentOS 7 的下载源为阿里云
- 更换 CentOS 7 的下载源为阿里云
- 更换 CentOS 7 的下载源为阿里云
- Centos更换为阿里源
- Centos的yum源更换为国内的阿里云
- Centos的yum源更换为阿里云源
- Centos的yum源更换为阿里云源
- 将Centos的yum源更换为阿里云源
- 将Centos的yum源更换为阿里云
- 为CentOS更换阿里云的yum源
- 更换CentOS7的下载源为阿里云
- CentOS 7 更换阿里云的源
- 更换CentOS源为阿里云国内源
- centos更换默认yum源为阿里云
- CentOS系统更换软件安装源 为阿里云
- centos更换阿里yum源
- MySQL 5.7 root登录问题
- VM的几种网络连接方式
- Android设置textview的字体之间的间距
- IIC总线协议总结
- js中如何定义常量
- 更换CentOS的下载源为阿里源
- 计算机视觉中的ICP算法
- 从开闭原则,讲讲初级的代码设计
- iOS开发中@property的属性weak nonatomic strong readonly等介绍
- Mac系统硬盘复制之后启动慢的问题
- 使用Chrome DevTools的Timeline和Profiles提高Web应用程序的性能
- Maven下载-安装和配置(二)
- linux iostat 命令的使用
- 单例没你想的那么简单