打开网页:http://mirrors.aliyun.com/
从“
文件列表
”找到自己的系统:
Mirror
Last update
Help
2015-07-15 15:36:50
2015-07-16 05:11:52
2015-07-12 03:51:20
2015-07-16 02:06:40
2015-07-16 00:51:24
2015-07-16 06:20:51
2015-07-16 02:00:05
2015-07-16 08:07:31
2015-07-16 08:50:04
2015-07-15 01:05:05
2015-07-16 08:30:55
2015-07-16 03:00:06
2015-07-16 01:52:20
2015-07-16 07:18:55
2015-07-15 02:24:48
2015-07-16 03:44:27
2015-07-14 00:42:09
2015-07-16 04:04:06
2015-01-28 06:09:50
2015-06-26 03:50:35
2015-06-26 02:22:01
2015-07-16 04:06:53
2015-07-15 03:02:24
2015-07-15 15:32:35
2015-07-16 02:35:57
2015-07-16 02:30:08
2015-07-15 13:29:03
2015-06-03 02:26:11
2015-07-16 02:49:37
2015-07-15 02:59:32
2015-07-16 07:22:45
2015-07-15 03:08:28
2015-07-14 01:04:50
2015-07-15 12:20:55
2015-07-16 07:00:23
2015-07-16 02:24:21
2015-07-16 02:40:05
单击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生成缓存
根据上述的描述操作即可快速完成yum源更换。