資源描述:
《yum安裝第三方軟件配置good》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫。
1、Centos6.0使用第三方Y(jié)UM源(EPEL,RPMForge,RPMFusion)yum是centos下很方便的rpm包管理工具,配置第三方軟件庫使你的軟件庫更加豐富。以下簡單的講下配置的步驟。首先,需要安裝yum-priorities插件:yuminstallyum-priorities–y該插件的作用主要是設(shè)置調(diào)用源時(shí)的優(yōu)先級(jí)的,一般將官方的優(yōu)先級(jí)設(shè)置為最高編輯CentOS-Base.repo文件,用vi編輯,如果不會(huì)操作,請百度vivi/etc/yum.repos.d/CentOS-Base.repo在每
2、個(gè)[]段的最后加上priority=[]字段來設(shè)置每個(gè)鏡像的優(yōu)先級(jí),1為最高,99為最低。一般的配置為:[base],[updates],[extras]…priority=1[CentOSplus],[contrib]…priority=2然后保存二、下載與安裝相應(yīng)EPEL的rpm文件包安裝epel.repo,下載地址為mirrors.ustc.edu.cn/fedora/epel/6/i386/或dl.fedoraproject.org/pub找與自己系統(tǒng)版本相符的包(這一步只能自行下載!)######rpm-
3、ivhhttp://mirrors.ustc.edu.cn/fedora/epel/6/i386/epel-release-6-7.noarch.rpm32位#####rpm-ivhhttp://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-7.noarch.rpm64位thefollowinglinkiscorrect:rpm-ivhhttp://mirrors.ustc.edu.cn/epel/6/x86_64/epel-release-6-8.
4、noarch.rpmrpm--import/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6vi/etc/yum.repos.d/epel.repo設(shè)置/etc/yum.repos.d/epel.repo中源的級(jí)別為priority=11(比上面高就行)。三、下載與安裝相應(yīng)rpmforge的rpm文件包安裝rpmforge.repo,下載地址為http://pkgs.repoforge.org/rpmforge-release/找與自己系統(tǒng)版本相符的包wgethttp://pkgs.repofo
5、rge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm32位wgethttp://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm64位wgethttp://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txtrpm--importRPM-GPG-KEY.dag.txt或者rpm--impor
6、thttp://apt.sw.be/RPM-GPG-KEY.dag.txtrpm-Krpmforge-release-0.5.2-2.el6.rf.i686.rpm32位檢查安裝文件rpm-Krpmforge-release-0.5.2-2.el6.rf.x86_64.rpm64位檢查安裝文件rpm-ivhrpmforge-release-0.5.2-2.el6.rf.i686.rpm32位安裝程序rpm-ivhrpmforge-release-0.5.2-2.el6.rf.x86_64.rpm64位安裝程序vi/
7、etc/yum.repos.d/rpmforge.repo設(shè)置/etc/yum.repos.d/rpmforge.repo文件中源的級(jí)別為priority=12(比上面高就行)。四、下載與安裝相應(yīng)rpmfusion的rpm文件包安裝rpmfusion.repo,下載地址為http://download1.rpmfusion.or32位安裝rpm-ivhhttp://download1.rpmfusion.org/free/el/updates/testing/6/i386/rpmfusion-free-releas
8、e-6-0.1.noarch.rpmrpm-ivhhttp://download1.rpmfusion.org/nonfree/el/updates/testing/6/i386/rpmfusion-nonfree-release-6-0.1.noarch.rpm64位安裝rpm-ivhhttp://download1.rpmfusion.org/free/