RHEL 使用CenOS的yum源repo檔案

denglt發表於2014-03-12

 Red Hat Enterprise Linux Server release 5.6:

[base]
name=CentOS-5 - Base
baseurl=http://centos.ustc.edu.cn/centos/5/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#released updates
[update]
name=CentOS-5 - Updates
baseurl=http://centos.ustc.edu.cn/centos/5/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
baseurl=http://centos.ustc.edu.cn/centos/5/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
baseurl=http://centos.ustc.edu.cn/centos/5/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
baseurl=http://centos.ustc.edu.cn/centos/5/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-5 - Contrib
baseurl=http://centos.ustc.edu.cn/centos/5/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages in testing
[testing]
name=CentOS-5 - Testing
baseurl=http://centos.ustc.edu.cn/centos/5/testing/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5


 Red Hat Enterprise Linux Server release 6.0:

[base] 
name=CentOS-6 - Base 
repo=os 
baseurl=http://mirrors.163.com/centos/6/os/$basearch/ 
gpgcheck=1 
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 
 
#released updates 
[update] 
name=CentOS-6 - Updates 
baseurl=http://mirrors.163.com/centos/6/updates/$basearch/ 
gpgcheck=1 
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 
 
#packages used/produced in the build but not released 
#[addons] 
#name=CentOS-6 - Addons 
#baseurl=http://mirrors.163.com/centos/5/addons/$basearch/ 
#gpgcheck=1 
#gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 
 
#additional packages that may be useful 
[extras] 
name=CentOS-6 - Extras 
baseurl=http://mirrors.163.com/centos/6/extras/$basearch/ 
gpgcheck=1 
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 
 
 
#additional packages that extend functionality of existing packages 
[centosplus] 
name=CentOS-6 - Plus 
baseurl=http://mirrors.163.com/centos/6/centosplus/$basearch/ 
gpgcheck=1 
enabled=1 
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 
 
#contrib - packages by Centos Users 
[contrib] 
name=CentOS-6 - Contrib 
baseurl=http://mirrors.163.com/centos/6/contrib/$basearch/ 
gpgcheck=1 
enabled=0 
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/195110/viewspace-1109405/,如需轉載,請註明出處,否則將追究法律責任。

相關文章