EPEL for CentOS or Redhat

注:地址可能会变

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,即Extra Packages for Enterprise Linux,这个软件仓库里有很多非常常用的软件,而且是专门针对RHEL设计的,对RHEL标准yum源是一个很好的补充,完全免费使用,由Fedora项目维护,所以如果你使用的是RHEL,或者CentOS,Scientific等RHEL系的linux,可以非常放心的使用EPEL的yum源。

配置EPEL的yum源也是相当的简单,针对不同的Linux版本,方法如下:

1.如果你使用的是RHEL6.x,CentOS6.x,Scientific6.x等6.x的RHEL系linux的话,执行:

[[email protected] ~]# rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm

2.如果你使用的是5.x系列的,执行:

[[email protected] ~]# rpm -ivh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

3.如果你使用的是4.x系列的,执行:

[[email protected] ~]# rpm -ivh http://download.fedoraproject.org/pub/epel/4/i386/epel-release-4-10.noarch.rpm

其实上面安装的那个包就是在你系统/etc/yum.repos.d/下释放了2个yum源的repo文件而已:

/etc/yum.repos.d/epel.repo          正式版,所有的软件都是稳定可以信赖的

/etc/yum.repos.d/epel-testing.repo  测试版

但是默认情况下,只有正式版是有效状态的,如果你想试试测试版的话,需要修改/etc/yum.repos.d/epel-testing.repo,把enabled=0改成enabled=1即可。

另外,如果你要使用yumdownloader来下载src.rpm包的话,需要把epel.repo里[epel-source]域下的enabled=0也改成enabled=1即可。

当然了,如果你暂时不想使用EPEL的yum源的话,把对应文件里的enabled=1改成enabled=0就行了,如果你完全不需要了,那就直接卸载掉:

[[email protected] ~]# rpm -e epel-release

注意:上面安装的rpm包,如果官方升级了的话,链接也就变了,自己去官方确认。

本篇文章来源于 Linux公社网站(www.linuxidc.com)  原文链接:http://www.linuxidc.com/Linux/2012-10/71850.htm

时间: 2024-08-24 22:01:31

EPEL for CentOS or Redhat的相关文章

centos和redhat下安装postgreSQL

1.确定你要下载的版本:下载地址 2.进入你存放下载文件的目录运行wget http://yum.postgresql.org/9.2/redhat/rhel-5-i386/pgdg-centos92-9.2-6.noarch.rpm,我的是32bit的centos5,其他版本可以在上面的路径中找到相关的链接 3.运行命令 rpm -ivh pgdg-centos92-9.2-6.noarch.rpm 安装 4.运行命令 yum install postgresql92-server 安装ser

centos和redhat下,psycopg2安装

1. yum install postgresql-libs 2. yum install postgresql92-devel.i386 3. wget http://initd.org/psycopg/tarballs/PSYCOPG-2-5/psycopg2-2.5.1.tar.gz 4. tar zxvf psycopg2-2.5.1.tar.gz 5. cd psycopg2-2.5.1 6. python setup.py build_ext –pg-config /usr/pgsq

centos和redhat下安装nginx最新版

在ubuntn下通过agp-get install nginx就可以按照最新版本的nginx,很方便 在ctentos和redhat下需要添加yum 仓库才能安装最新版的nginx,在/etc/yum.repos.d/目录下新建nginx.repo 文件输入以下内容就可以了:[nginx]name=nginx repobaseurl=http://nginx.org/packages/centos/$releasever/$basearch/gpgcheck=0enabled=1 之后运行yum

centos和redhat下 uwsgi配置

1.下载最新稳定版uwsgi,地址为: wget http://projects.unbit.it/downloads/uwsgi-1.9.13.tar.gz 2.解压 tar zxvf uwsgi-1.9.13.tar.gz 3.cd uwsgi-1.9.13 && make 4.移动uwsgi到bin目录,方便调用 mv ./uwsgi /usr/bin 5.进入用户目录建立projectname.ini文件,内容为:[uwsgi]socket = 127.0.0.1:3031chdi

centos和redhat vsftp安装和设定

1.安装vsftp yum install vsftpd 2.配置vsftp 配置文件在 /etc/vsftpd/vsftpd.conf,建议把匿名登录关闭 anonymous_enable=NO 3.设置vsftp为开机启动 chkconfig vsftpd on 通过chkconfig –list可以查看哪些是开机启动的 4.通过useradd ftpuser 添加用户 5.建立ftp用户目录,改变目录所属用户为前面前的用户 6.修改/etc/vsftpd/vsftpd.conf, 添加 u

centos 与 redhat 以及 mysql 与 Oracle

以下仅代表个人观点,仅供参考: centos 与redhat   a.目前我们官方的操作系统建议是centos 5.5 以上版本,已经有客户在使用 centos 6.5 并且已经正常运行了半年以上.我们的软件属于应用层软件,底层需要基于php.nginx和mysql等软件的支持,也就说我们能否支持redhat  linux 6.5 要取决于我们底层php等软件能否正常支持. centos是linux的发行版本之一,它是将redhat的源代码重新编译一遍然后再次发行的版本.原则上,centos只是

Domino Server installation on Linux (Centos or Redhat) – something somewhere

something somewhere welcome in there-:) Just another techki site howto / Linux / Lotus Domino 0 Domino Server installation on Linux (Centos or Redhat) by nicolas · 30/07/2012 I have been struggling a little, on the configuration steps until I figured

什么是EPEL 及 Centos上安装EPEL(转)

什么是EPEL 及 Centos上安装EPEL 转自:http://www.unxmail.com/read.php?67 RHEL以及他的衍生发行版如CentOS.Scientific Linux为了稳定,官方的rpm repository提供的rpm包往往是很滞后的,当然了,这样做这是无可厚非的,毕竟这是服务器版本,安全稳定是重点,官方的rpm repository提供的rpm包也不够丰富,很多时候需要自己编译那太辛苦了,而EPEL恰恰可以解决这两方面的问题. 什么是EPEL? EPEL的全

CentOS和Redhat发行版linux内核版本的对应关系

由于Redhat和CentOS的发行版本现在众多,所以我们应该知道CentOS和Redhat及linux内核之间版本的对应关系对维护系统还是很有帮助的.对应的列表如下: Redhat 9.0———————————————2.4.20-8 RHEL 3 Update 8————————————2.4.21-47 RHEL 4 ————————————————2.6.9-5 RHEL 4 Update 1————————————2.6.9-11 RHEL 4 Update 2————————————