更换本地的yum源为阿里云提供的镜像
来源:互联网 发布:苹果手机2333软件 编辑:程序博客网 时间:2024/05/04 15:41
阿里云提供的yum镜像地址为:http://mirrors.aliyun.com/
Mirror Last update Help
找到自己的使用系统,点击help,可以查看更换说明,以centos为例:http://mirrors.aliyun.com/help/centos
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生成缓存
0 0
- 更换本地的yum源为阿里云提供的镜像
- 利用阿里云提供的镜像快速更换本地的yum源
- 利用阿里云提供的镜像快速更换本地的yum源
- 阿里云提供的镜像快速更换本地的yum源
- Centos的yum源更换为国内的阿里云
- Centos的yum源更换为阿里云源
- Centos的yum源更换为阿里云源
- 将Centos的yum源更换为阿里云源
- 将Centos的yum源更换为阿里云
- 为CentOS更换阿里云的yum源
- 修改yum的镜像服务器为阿里云
- 将Centos的yum源更换为国内的阿里云源
- 将Centos的yum源更换为国内的阿里云源
- 超简单将Centos的yum源更换为国内的阿里云源
- 将Centos的yum源更换为国内的阿里云源
- 将Centos的yum源更换为国内的阿里云源
- 将Centos的yum源更换为国内的阿里云源(亲测可用)
- Centos的yum源更换为国内的阿里云源
- Java开发中的23种设计模式详解
- mysql添加唯一约束语句
- 练习打字第五天!
- python中的赋值
- 内存管理---伙伴系统---
- 更换本地的yum源为阿里云提供的镜像
- Mysql和Oracle 用Mybatis批量增加,删除,更新
- Linux查看CPU和MEM前10进程
- 机器学习中模型评估与选择中的几个小问题
- 预编译头文件:*.h.gch文件
- 导入用户类的存储工具代码
- 线段树总结
- app开发外包的流程、需求、报价,需要知道的细节!
- Catalan数(卡特兰数)