在CentOS上安装EPEL

请注意EPEL 的安装包是独立编译的,所以它可以安装在32位和64位系统中。

1. 下载rmp包:wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

2. 安装rpm包:rpm -ivh epel-release-6-8.noarch.rpm

3. 检查epel源:yum repolist  如出现如下类似提示则表示成功了;

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.vonline.vn
 * epel: buaya.klas.or.id
 * extras: centos-hn.viettelidc.com.vn
 * updates: mirrors.fibo.vn
repo id        repo name                                              status
base           CentOS-6 - Base                                         6,381
epel           Extra Packages for Enterprise Linux 6 - x86_64         10,023
extras         CentOS-6 - Extras                                          13
updates        CentOS-6 - Updates                                      1,555
repolist: 18,019

4. 安装epel的时候,执行yum repolist 可能会报错:Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

解决办法:处理很简单,修改文件“/etc/yum.repos.d/epel.repo”, 将baseurl的注释取消, mirrorlist注释掉。即可。


你可能感兴趣的:(EPEL)