CentOS配置EPEL
EPEL (Extra Packages for Enterprise Linux,企业版Linux的额外软件包) 是Fedora小组维护的一个软件仓库项目,为RHEL/CentOS提供他们默认不提供的软件包。这个源兼容RHEL及像CentOS和Scientific Linux这样的衍生版本。
方法一:
1、判断本机系统版本:
[root@localhost home]# lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.6 (Final)
Release: 6.6
Distributor ID: CentOS
Description: CentOS release 6.6 (Final)
Release: 6.6
Codename: Final
2、根据版本下载EPEL的rpm安装包
CentOS下的6.x和5.x版本下载页面如下:
http://download.fedoraproject.org/pub/epel/6/i386/repoview/epel-release.html
上述链接会被重定向到下载速度比较快的一个镜像源,点击页面中的epel-release-6-8.noarch下载
例如:
3、安装
rpm -ivh epel-release-6-8.noarch.rpm
5. 检查EPEL 源
安装好EPEL 源后,用yum 命令来检查是否添加到源列表
[root@localhost home]# yum repolist
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
epel/metalink | 5.1 kB 00:00
* base: mirrors.opencas.cn
* epel: mirrors.opencas.cn
* extras: mirror.bit.edu.cn
* updates: mirrors.opencas.cn
epel | 4.3 kB 00:00
epel/primary_db | 5.7 MB 00:23
repo id repo name status
base CentOS-6 - Base 6,575
epel Extra Packages for Enterprise Linux 6 - x86_64 11,747
extras CentOS-6 - Extras 44
updates CentOS-6 - Updates 488
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
epel/metalink | 5.1 kB 00:00
* base: mirrors.opencas.cn
* epel: mirrors.opencas.cn
* extras: mirror.bit.edu.cn
* updates: mirrors.opencas.cn
epel | 4.3 kB 00:00
epel/primary_db | 5.7 MB 00:23
repo id repo name status
base CentOS-6 - Base 6,575
epel Extra Packages for Enterprise Linux 6 - x86_64 11,747
extras CentOS-6 - Extras 44
updates CentOS-6 - Updates 488
repolist: 18,854
6、安装测试(标准库中是没有phpldapadmin的)
[root@localhost httpd]# yum install phpldapadmin
Loaded plugins: fastestmirror, refresh-packagekit, security
...
...
Installed:
phpldapadmin.noarch 0:1.2.3-1.el6
Complete!
7、完成
方法二:yum安装
yum install epel-release -y