CentOS默認自帶CentOS-Base.repo源,但官方源中去除了不少有版權爭議的軟件,並且安裝的軟件也不是最新的穩定版。 Fedora自帶的源中也找不到不少多媒體軟件,若是須要安裝,必需先添加其餘源,如RPMFusion和RPMForge等第三方軟件庫。linux
下面GoFace來一一介紹各類第三方軟件庫,如下軟件庫適用於與RHEL徹底兼容的linux發行版,如 CentOS,Fedora,Scientific Linux。Scientific Linux你們可能有點陌生,它與CentOS相似,是RedHat Linux的克隆版,GoFace以前有過介紹:http://blog.51osos.com/linux/scientific-linux/ 。centos
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://fedoraproject.org/wiki/EPELide
Fedora EPEL 下載:http://mirrors.fedoraproject.org/publiclist/EPEL/網站
EPEL 下載地址:http://download.fedora.redhat.com/pub/epel/url
請針對不一樣的版本下載相應的包。spa
Remi源你們或許不多據說,不過Remi源GoFace強烈推薦,尤爲對於不想編譯最新版的linux使用者,由於Remi源中的軟件幾乎都是最 新穩定版。或許您會懷疑穩定不?放心吧,這些都是Linux骨灰級的玩家編譯好放進源裏的,他們對於系統環境和軟件編譯參數的熟悉程度毋庸置疑。插件
Remi下載地址:http://rpms.famillecollet.com/rest
您也須要針對不一樣的版本號下載。
RPMForge是CentOS系統下的軟件倉庫,擁有4000多種的軟件包,被CentOS社區認爲是最安全也是最穩定的一個軟件倉庫。
RPMForge官方網站:http://repoforge.org/
RPMForge下載地址:
32位:http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/
64位:http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/
若是您如今正在使用Fedora 15,對RPMFusion必定不陌生吧,各類音頻軟件如MPlayer在標準源中是沒有的,通常先安裝RPMFusion源,以後就能夠放便地yum install各類須要的軟件啦。
CentOS官方說RPMFusion軟件庫裏面的軟件穩定性不如rpmforge。
RPMFusion官網:http://rpmfusion.org/
Fedora 13, 14 and 15:
su -c ’yum localinstall –nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.
noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm’
RHEL 6/CentOS 6 :
su -c ’rpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/6/i386/rpmfusion-free-release-6-0.1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/testing/6/i386/rpmfusion-nonfree-release-6-0.1.noarch.rpm’
其餘版本請詳見:http://rpmfusion.org/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.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/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.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
#wget http://rpms.famillecollet.com/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設置便可使用。
本文結束,明天GoFace將給你們介紹使用第三方源配置服務器軟件。
GoFace原創,轉載請註明聲明及本文連接:http://blog.51osos.com/linux/rhel-centos-fedora-epel-remi-rpmforge-rpmfusion/