天天看點

centOS 第三方YUM源

1、安裝CentOS yum源優先級插件yum-priorities來設定YUM優先級

yum install yum-plugin-priorities.noarch

2、設定CentOS預設yum源的優先級為最高

cd  /etc/yum.repos.d/

vi CentOS-Base.repo    

#在[base]、[updates]、[extras]組下面添加priority=1,在[centosplus]、[contrib]組下面添加priority=2

備注:priority的優先級為1到99,設定為1即優先級最高,1-10為系統保留,第三方yum源的優先級從11-99

3、安裝epel yum源

rpm -ivh  http://mirrors.ustc.edu.cn/epel/6/x86_64/epel-release-6-8.noarch.rpm

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

vi /etc/yum.repos.d/epel.repo   #修改epel yum源優先級,priority=11

4、安裝rpmforge yum源

rpm -ivh http://repository.it4i.cz/mirrors/repoforge/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

vi  /etc/yum.repos.d/rpmforge.repo  #修改rpmforge yum源優先級,priority=12

5、安裝rpmfusion yum源

rpm -ivh http://download1.rpmfusion.org/free/el/updates/testing/6/i386/rpmfusion-free-release-6-0.1.noarch.rpm

vi  /etc/yum.repos.d/rpmfusion-free-updates-testing.repo   #修改rpmfusion yum源優先級,priority=13

6、安裝atomic yum源

wget http://www.atomicorp.com/installers/atomic  #下載下傳

sh ./atomic   #安裝

vi  /etc/yum.repos.d/atomic.repo  #修改atomic yum源優先級,priority=14

7、更新YUM軟體包

yum check-update

8、centOS第三方YUM源大全

1)remi源

http://rpms.famillecollet.com

2)epel源

http://mirrors.ustc.edu.cn/epel

3)rpmforge源

http://repoforge.org/use

4)rpmfusion源

http://mirrors.163.com/rpmfusion

5)centalt源

http://centos.alt.ru/repository

6)Percona源

http://www.percona.com/downloads/percona-release

7)webmin源

需要先建立webmin的下載下傳說明及位置

vim /etc/yum.repos.d/webmin.repo

[Webmin]

name=Webmin Distribution Neutral

baseurl=http://download.webmin.com/download/yum

enabled=1

9、國内YUM源

阿裡源:

163源:

搜狐源:

本文轉自 80後小菜鳥 51CTO部落格,原文連結:http://blog.51cto.com/zhangxinqi/1926770

繼續閱讀