CentOS配置epel源

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
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
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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值