Centos的yum源更换为阿里云源
2016-12-08 17:08
363 查看
1、备份
2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/
3、之后运行yum makecache生成缓存
原文章链接:
http://www.cnblogs.com/miclesvic/p/6135433.html
更多功能:
http://blog.csdn.net/dylloveyou/article/details/53106577
# 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 makecache
原文章链接:
http://www.cnblogs.com/miclesvic/p/6135433.html
更多功能:
http://blog.csdn.net/dylloveyou/article/details/53106577
相关文章推荐
- CentOS 修改主机名
- CentOS 6.5使用yum快速搭建LAMP环境
- CentOS6.5安装vncserver实现图形界面操作【阿里云ECS安装桌面成功!】
- Centos编译安装 LAMP (apache-2.4.7 + mysql-5.5.35 + php 5.5.8)+ Redis
- 新人掌握的五大Linux终端命令的技巧
- git的基本使用(1)
- Linux free -m 详细说明
- “SIOCADDRT: Network is unreachable”不可达到底指的什么意思
- centos7 改用BBR内核
- [每日一记] Linux less 命令下的操作
- centos7+jdk1.8+scala+spark+IEDA(mac可参考)集群环境搭建
- linux pam
- Linux下ftp常见问题总结
- Linux常用命令学习
- 在linux系统中安装VSCode(Visual Studio Code)
- linux常用命令
- 修改linux的hosts 后提示“无效的参数”
- python linux 开启 一个新端口 查看文件
- VMware虚拟机安装红帽系统无法上网解决办法
- Centos 开机取消进度条