扩展 centos6 yum源

扩展 centos yum源

由於centos自帶源,缺少一些新版本的包,所以在這裡列出2個不錯的源

1. epel-release

1
2
3
4
5
6
7
# 目前最新:6-8
# x86_64
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# x86
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

2. ius-release

1
2
3
4
5
6
7
# 目前最新:6-5
# x86_64
rpm -ivh http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/epel-release-6-5.noarch.rpm
# x86
rpm -ivh http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/i386/epel-release-6-5.noarch.rpm

3. 出错提示:

1
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again

3.0.0.1. 需要安装 curl ca-certificates

1
yum install curl ca-certificates -y