利用阿里云提供的镜像快速更换本地的yum源
来源:互联网 发布:mac无法安装pkg 编辑:程序博客网 时间:2024/05/18 12:30
1、服务器的文件列表地址
http://mirrors.aliyun.com/
2、单击help进入(如我这里当今centos 的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生成缓存
1 0
- 利用阿里云提供的镜像快速更换本地的yum源
- 利用阿里云提供的镜像快速更换本地的yum源
- 阿里云提供的镜像快速更换本地的yum源
- 更换本地的yum源为阿里云提供的镜像
- CentOS更换国内yum源(aliyun阿里镜像)
- Centos的yum源更换为国内的阿里云
- Centos的yum源更换为阿里云源
- Centos的yum源更换为阿里云源
- 将Centos的yum源更换为阿里云源
- 将Centos的yum源更换为阿里云
- 为CentOS更换阿里云的yum源
- linux阿里云服务器更换镜像的方法
- 阿里云提供的maven中央仓库镜像设置
- 修改yum的镜像服务器为阿里云
- centos镜像作为本地源的yum安装
- RHEL7利用iso镜像制作本地yum源
- linux 利用iso镜像制作本地yum源
- 将Centos的yum源更换为国内的阿里云源
- android应用APP常见安全问题
- 使用OpenGL实现遮罩效果
- 带你读开源—ASP.NET_MVC(十五)
- 数据结构中的二叉搜索树
- leetCode练习(32)
- 利用阿里云提供的镜像快速更换本地的yum源
- WPF教程(六) XAML基础
- Raising Bacteria 细菌繁殖
- 抑郁症患者眼中的世界与自己是怎样的?
- 13个实用的Apache Rewrite重写规则
- poj 2941 Homogeneous Squares 解题报告
- 最优化理论中的常用背景知识
- Android studio 修改工程名、包名
- 归并排序