centos6.7更换yum源
来源:互联网 发布:日本外汇储备数据 编辑:程序博客网 时间:2024/05/22 03:51
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
参考: http://mirrors.aliyun.com/help/centos?spm=5176.bbsr150321.0.0.d6ykiD
1 0
- centos6.7更换yum源
- CentOS6.5更换yum源
- Linux-CentOS6.7——yum源的更换
- CentOS6.1更换yum光盘源
- centos6.5更换163的yum源
- RedHat6.6 更换CentOS6 yum和yum源
- centos6.7更换源
- CentOS 7更换yum源
- centos 7 更换yum源
- YUM更换源(2)--更新Centos6.2 yum的163源
- RHL6.3更换为CentOS6.3yum工具和yum源的实践记录
- centos6.7更换jdk
- Redhat7 更换Centos 7 yum源
- CentOS 7更换国内yum源
- yum更换源
- RHEL6更换yum源
- RHEL更换yum源
- Centos更换yum源
- hihoCoder 1233 Boxes(状态压缩)
- D-SIFT
- 详解pkg-config --cflags --libs glib-2.0的作用
- Linux中,getrlimit(),setrlimit(),getrusage()
- 一个长度为N的数组中包含正数 负数 0,请实现一个函数找出和为0的最长子数列
- centos6.7更换yum源
- 【ACM】HDOJ 1009 FatMouse' Trade
- 贝叶斯网络
- iOS项目开发实战——UIImageView的使用与图片显示模式
- Unity3D 多进程注意事项
- LeetCode----Majority Element
- HDU-3567 Eight II
- 百度地图环境搭建的问题
- Python 学习(6)---简单的网页爬虫程序