分享

RHEL/CentOS/Fedora各种源(EPEL、Remi、RPMForge、RPMFusion)

 用勿龍潛 2012-04-27
RHEL/CentOS/Fedora各种源(EPEL、Remi、RPMForge、RPMFusion)
CentOS默认自带CentOS-Base.repo源,但官方源中去除了很多有版权争议的软件,而且安装的软件也不是最新的稳定版。Fedora自带的源中也找不到很多多媒体软件,如果需要安装,必需先添加其他源,如RPMFusion和RPMForge等第三方软件库。

下面GoFace来一一介绍各种第三方软件库,以下软件库适用于与RHEL完全兼容的linux发行版,如CentOS,Fedora,Scientific Linux。Scientific Linux大家可能有点陌生,它与CentOS类似,是RedHat Linux的克隆版,GoFace之前有过介绍:http://blog./linux/scientific-linux/ 。

EPEL源

EPEL,即Extra Packages for Enterprise Linux,是由 Fedora 社区创建维护,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质量软件包的项目。EPEL中含有大量的软件,对官方标准源是一个很好的补充。

“EPEL (Extra Packages for Enterprise Linux  ) is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL).”

wiki:http:///wiki/EPEL

Fedora EPEL 下载:http://mirrors./publiclist/EPEL/

EPEL 下载地址:http://download.fedora./pub/epel/

请针对不同的版本下载相应的包。

Remi源

Remi源大家或许很少听说,不过Remi源GoFace强烈推荐,尤其对于不想编译最新版的linux使用者,因为Remi源中的软件几乎都是最新稳定版。或许您会怀疑稳定不?放心吧,这些都是Linux骨灰级的玩家编译好放进源里的,他们对于系统环境和软件编译参数的熟悉程度毋庸置疑。

Remi下载地址:http://rpms./

您也需要针对不同的版本号下载。

RPMForge源

RPMForgeCentOS系统下的软件仓库,拥有4000多种的软件包,被CentOS社区认为是最安全也是最稳定的一个软件仓库。

RPMForge官方网站:http:///

RPMForge下载地址:

32位:http://apt./redhat/el6/en/i386/rpmforge/RPMS/

64位:http://apt./redhat/el6/en/x86_64/rpmforge/RPMS/

RPMFusion源

如果您现在正在使用Fedora 15,对RPMFusion一定不陌生吧,各种音频软件如MPlayer在标准源中是没有的,一般先安装RPMFusion源,之后就可以放便地yum install各种需要的软件啦。

CentOS官方说RPMFusion软件库里面的软件稳定性不如rpmforge。

RPMFusion官网:http:///

Fedora 13, 14 and 15:

su -c ’yum localinstall –nogpgcheck http://download1./free/fedora/rpmfusion-free-release-stable.

noarch.rpm http://download1./nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm’

RHEL 6/CentOS 6 :

su -c ’rpm -Uvh http://download1./free/el/updates/testing/6/i386/rpmfusion-free-release-6-0.1.noarch.rpm http://download1./nonfree/el/updates/testing/6/i386/rpmfusion-nonfree-release-6-0.1.noarch.rpm’

其他版本请详见:http:///Configuration

如何使用各种源

以上源对CentOS等系统完全兼容,但各软件库之间并不能保证完全兼容没有冲突。如果您需要使用以上源,您需要安装yum-priorities插件。安装yum-priorities插件后,您可以给各个源设置优先级priority。一般设置官方标准源优先级为1,最高,第三方推荐>10

priority=N (N为1到99的正整数,数值越小越优先)

[base], [addons], [updates], [extras] … priority=1
[CentOSplus],[contrib] … priority=2
其他第三的软件源为:priority=N (推荐N>10)

#vi CentOS-Base.repo

[base]

name=CentOS-$releasever - Base

mirrorlist=http://mirrorlist./?release=$releasever&arch=$basearch&repo=os

#baseurl=http://mirror./centos/$releasever/os/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

priority=1

#released updates

……

#wget http://download.fedora./pub/epel/6/x86_64/epel-release-6-5.noarch.rpm

#wget http://rpms./enterprise/remi-release-6.rpm

[root@GoGo yum.repos.d]# ls

CentOS-Base.repo       CentOS-Media.repo  epel-testing.repo

CentOS-Debuginfo.repo  epel.repo          remi.repo

vi remi.repo 将[remi] 中的 enabled=0 改成 enabled=1 来启用 remi 源

[root@GoGo yum.repos.d]# rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[root@GoGo yum.repos.d]# rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-remi

在remi.repo中和epel.repo中添加priority设置即可使用。

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多