当前位置: > CentOS > CentOS教程 >

RHEL/CentOS 7.x使用EPEL第三方yum源

时间:2014-12-14 13:52来源:linux.it.net.cn 作者:IT网
EPEL的全称叫 Extra Packages for Enterprise Linux 。EPEL是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质量软件包的项目。装上了 EPEL之后,就相当于添加了一个第三方源。

今天,偶然间发现,基于CentOS/RHEL 7.x的源也有了!
1、安装配置epel
## RHEL/CentOS 7 64-Bit ##
 # wget http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm
 # rpm -ivh epel-release-7-0.2.noarch.rpm

附:
## RHEL/CentOS 6 32-Bit ##
# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm 
# rpm -ivh epel-release-6-8.noarch.rpm 
## RHEL/CentOS 6 64-Bit ## 
# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm 
# rpm -ivh epel-release-6-8.noarch.rpm

2、查看epel源
[root@ZCShou yum.repos.d]# yum repolist
已加载插件:fastestmirror, langpacks, priorities
Loading mirror speeds from cached hostfile
 * base: mirrors.btte.net
 * epel: ftp6.sjtu.edu.cn
 * extras: mirrors.btte.net
 * rpmforge: ftp.neowiz.com
 * updates: mirrors.btte.net
991 packages excluded due to repository priority protections
源标识              源名称                                             状态
base/7/x86_64       CentOS-7 - Base                                        8,465
epel/x86_64         Extra Packages for Enterprise Linux 7 - x86_64      5,001+34
extras/7/x86_64     CentOS-7 - Extras                                         30
rpmforge            RHEL 7 - RPMforge.net - dag                        3,761+957
updates/7/x86_64    CentOS-7 - Updates                                       423
repolist: 17,680

如上,注意红色部分!!


3、查看某个包的详细信息:
# yum --enablerepo=epel info htop

如下:
Loading mirror speeds from cached hostfile
 * base: mirrors.btte.net
 * epel: ftp6.sjtu.edu.cn
 * extras: mirrors.btte.net
 * rpmforge: ftp.riken.jp
 * updates: mirrors.btte.net
991 packages excluded due to repository priority protections
可安装的软件包
名称    :htop
架构    :x86_64
版本    :1.0.3
发布    :3.el7
大小    :87 k
源    :epel/x86_64
简介    : Interactive process viewer
网址    :http://hisham.hm/htop/
协议    : GPL+
描述    : htop is an interactive text-mode process viewer for Linux, similar to
         : top(1).
(责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容