首页 > 代码库 > 如何安装 Epel源到 RHEL/CentOS 7/6/5
如何安装 Epel源到 RHEL/CentOS 7/6/5
通过wget命令下载RPM文件,然后安装。
RHEL/CentOS 7 64 Bit
## 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-64 Bit
## 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
RHEL/CentOS 5 32-64 Bit
## RHEL/CentOS 5 32-Bit ### wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm# rpm -ivh epel-release-5-4.noarch.rpm## RHEL/CentOS 5 64-Bit ### wget http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm# rpm -ivh epel-release-5-4.noarch.rpm
RHEL/CentOS 4 32-64 Bit
## RHEL/CentOS 4 32-Bit ### wget http://download.fedoraproject.org/pub/epel/4/i386/epel-release-4-10.noarch.rpm# rpm -ivh epel-release-4-10.noarch.rpm## RHEL/CentOS 4 64-Bit ### wget http://download.fedoraproject.org/pub/epel/4/x86_64/epel-release-4-10.noarch.rpm# rpm -ivh epel-release-4-10.noarch.rpm
如何检查epel是否安装成功?
使用一下命令:
# yum repolist
输出如下
[root@Lixiaolong ~]# yum repolistLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: mirrors.yun-idc.com * epel: ftp.sjtu.edu.cn * extras: mirrors.yun-idc.com * updates: mirrors.yun-idc.comrepo id repo name statusbase/7/x86_64 CentOS-7 - Base 8,465epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 5,036extras/7/x86_64 CentOS-7 - Extras 30updates/7/x86_64 CentOS-7 - Updates 423repolist: 13,954[root@Lixiaolong ~]#
如何使用epel源安装软件?
例如想查看cacti信息
# yum --enablerepo=epel info cacti
安装则执行以下命令:
# yum --enablerepo=epel install cacti
Note: Epel的配置文件在/etc/yum.repos.d/epel.repo.
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。