`
fantaxy025025
  • 浏览: 1247453 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类

centos_添加EPEL软件仓库_以及epel源配置

 
阅读更多

 

Ubuntu下面更新,安装,管理软件非常方便,移入centos麻烦事情就来了。

但是centos是大部分服务器的选择,那就得好好学咯。

一个好的方法就是利用epel。

 

epel介绍:

    官网介绍

    EPEL(http://fedoraproject.org/wiki/EPEL) 是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质量软件包的项目。装上了 EPEL,就像在 Fedora 上一样,可以通过 yum install package-name,随意安装软件。


安装 EPEL :

* RHEL 4(centos 4): su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/4/i386/epel-release-4-9.noarch.rpm'

* RHEL 5(centos 5): su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm'

 

rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-6.noarch.rpm

rpm -Uvh http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm

rpm -Uvh http://mirrors.sohu.com/fedora-epel/6/i386/epel-release-6-8.noarch.rpm

注意看i386是32位,

x86_64是64位。

 

epel装好后运行,来更新稳定包版本:

yum update


epel安装完毕之后,即可使用 yum 来安装软件,比如 Nagios:
yum install nagios

若要查看 EPEL Repo 中是否存在某个软件包:
yum search package-name    

 

安装好之后,运行命令:yum repolist,看看结果

epel    Extra Packages for Enterprise Linux 6 - x86_64    9,412

 

配置EPEL YUM源

 

 

0

9

8

7

%

#

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics