Linuxyum源切换阿里云软件源
2018-01-02 04:09
260 查看
- 备份本机软件源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
下载新的CentOS-Base.repo 到/etc/yum.repos.d/
-
CentOS 5
get -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
之后运行yum makecache生成缓存
yum makecache
相关文章推荐
- ubuntu linux 更换 阿里云 软件源 安装 svn
- 阿里云ECS服务切换云数据库RDS
- Eclipse 切换 maven为阿里云源
- Ubuntu使用阿里云软件源
- maven仓库切换为阿里云的仓库
- [备忘录]-Ubuntu使用阿里云软件源
- 1虚拟机下U盘或磁盘挂载,Ubuntu下的网络配置,图形化界面和命令界面之间的切换,软件源配置
- open suse 42.1常用软件源(包括阿里云)
- 码云所用阿里云高防出现网络故障,已切换DNS,未生效请见说明
- 云计算之路-阿里云上:RDS数据库连接数过万引发故障,主备库切换后恢复正常
- 切换ubuntu server的apt-get下载源为阿里云国内地址
- Ubuntu16.04 替换阿里云软件源
- 切换阿里云maven
- Linux修改阿里云软件源
- Linux 默认软件源切换
- Ubuntu16.04 替换阿里云软件源
- Redhat Enterprise Linux 6 (RHEL 6) YUM源切换至阿里云的CentOS 6 YUM源
- 更换阿里云软件源
- Redhat Enterprise Linux 6 (RHEL 6) YUM源切换至阿里云的CentOS 6 YUM源
- 阿里云如何把包月的SSD磁盘切换成阿里的普通磁盘