CentOS默認自帶CentOS-Base.repo源,但官方源中去除了很多有版權爭議的軟件,而且安裝的軟件也不是最新的穩定版。Fedora自帶的源中也找不到很多多媒體軟件,如果需要安裝,必需先添加其他源,如RPMFusion和RPMForge等第三方軟件庫。
下面GoFace來一一介紹各種第三方軟件庫,以下軟件庫適用於與RHEL完全兼容的linux發行版,如CentOS,Fedora,Scientific Linux。Scientific Linux大家可能有點陌生,它與CentOS類似,是RedHat Linux的克隆版,GoFace相關閱讀:官方正式發布 Scientific Linux 6.4 版本 http://www.linuxidc.com/Linux/2013-03/81910.htm。
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/EPEL
Fedora EPEL 下載:http://mirrors.fedoraproject.org/publiclist/EPEL/
EPEL 下載地址:http://download.fedora.redhat.com/pub/epel/
請針對不同的版本下載相應的包。
Remi源大家或許很少聽說,不過Remi源GoFace強烈推薦,尤其對於不想編譯最新版的linux使用者,因為Remi源中的軟件幾乎都是最新穩定版。或許您會懷疑穩定不?放心吧,這些都是Linux骨灰級的玩家編譯好放進源裡的,他們對於系統環境和軟件編譯參數的熟悉程度毋庸置疑。
Remi下載地址:http://rpms.famillecollet.com/
您也需要針對不同的版本號下載。
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將給大家介紹使用第三方源配置服務器軟件。