1. 程式人生 > >更換本地的yum源為阿里雲提供的映象

更換本地的yum源為阿里雲提供的映象

Mirror Last update Help
CPAN 2016-03-31 15:49:25
CRAN 2016-05-07 04:39:28
CTAN 2016-05-07 04:11:50
2016-05-07 01:23:34
2016-05-07 16:56:19 help
2016-05-07 02:50:21 help
ceph 2016-05-07 03:15:51 help
2016-05-07 09:01:43 help
2016-05-07 16:06:24 help
2016-05-04 01:05:05
2016-05-07 03:00:08 help
2016-05-07 02:05:05 help
2016-05-07 03:00:04 help
2016-05-07 00:05:36 help
epel 2016-05-07 14:26:46 help
2016-05-07 02:57:58 help
2016-05-06 23:29:36 help
2016-05-07 00:43:20 help
2016-05-07 04:00:55 help
kali 2016-05-07 02:19:28
2016-05-07 04:00:41
2016-05-06 03:03:19
2016-05-07 15:30:30
2016-05-07 02:36:46
2016-05-07 13:29:16 help
2016-05-07 02:20:09 help
pypi 2016-05-07 02:57:07 help
2016-05-07 03:16:21 help
2016-05-07 04:01:39
2016-05-07 03:21:58 help
2016-05-07 01:30:07
2016-05-07 19:01:04 help
2016-05-07 02:40:20

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生成快取