利用阿里雲提供的映象快速更換本地的yum源
阿新 • • 發佈:2019-02-15
開啟網頁:http://mirrors.aliyun.com/
從“
檔案列表
”找到自己的系統:Mirror | Last update | Help |
---|---|---|
CPAN | 2015-07-15 15:36:50 | |
CRAN | 2015-07-16 05:11:52 | |
CTAN | 2015-07-12 03:51:20 | |
2015-07-16 02:06:40 | ||
2015-07-16 00:51:24 | help | |
2015-07-16 06:20:51 | help | |
2015-07-16 02:00:05 | help | |
2015-07-16 08:07:31 | help | |
2015-07-15 01:05:05 | ||
2015-07-16 03:00:06 |
|
|
2015-07-16 01:52:20 | help | |
epel | 2015-07-16 07:18:55 | help |
2015-07-15 02:24:48 | help | |
2015-07-16 03:44:27 | help | |
2015-07-14 00:42:09 | help | |
2015-07-16 04:04:06 | help | |
kali | 2015-06-26 03:50:35 | |
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-15 13:29:03 | help | |
2015-06-03 02:26:11 | help | |
pypi | 2015-07-16 02:49:37 | help |
2015-07-15 02:59:32 | help | |
2015-07-16 07:22:45 | ||
2015-07-15 03:08:28 | help | |
2015-07-14 01:04:50 | ||
2015-07-16 07:00:23 | help | |
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源更換。