yum源配置

下面的yum配置可直接在rhel下面直接使用:

将下面的Centos5或Centos6模块直接放到red hat linux操作系统的/etc/yum.repos.d/rhel-debuginfo.repo文件中即可:

Centos6

[base]

name=centos-6 - Base

baseurl=http://mirrors.sohu.com/centos/6/os/x86_64/

enabled=1

gpgcheck=1

gpgkey=http://mirrors.sohu.com/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6

 

#released updates

[update]

name=CentOS-6 - Updates

baseurl=http://mirrors.sohu.com/centos/6/updates/x86_64/

gpgcheck=1

gpgkey=http://mirrors.sohu.com/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6

 

#additional packages that may be useful

[extras]

name=CentOS-6 - Extras

baseurl=http://mirrors.sohu.com/centos/6/extras/$basearch/

gpgcheck=1

gpgkey=http://mirrors.sohu.com/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6

 

#additional packages that extend functionality of existing packages

[centosplus]

name=CentOS-6 - Plus

baseurl=http://mirrors.sohu.com/centos/6/centosplus/$basearch/

gpgcheck=1

enabled=0

gpgkey=http://mirrors.sohu.com/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6

 

#contrib - packages by Centos Users

[contrib]

name=CentOS-6 - Contrib

baseurl=http://mirrors.sohu.com/centos/6/contrib/x86_64/$basearch/

gpgcheck=1

enabled=0

gpgkey=http://mirrors.sohu.com/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6

-----------------------------------------------------------------------------

Centos5

[base]

name=centos-5 - Base

baseurl=http://mirrors.sohu.com/centos/5/os/x86_64/

enabled=1

gpgcheck=1

gpgkey=http://mirrors.sohu.com/centos/5/os/x86_64/RPM-GPG-KEY-CentOS-5

 

#released updates

[update]

name=CentOS-5 - Updates

baseurl=http://mirrors.sohu.com/centos/5/updates/x86_64/

gpgcheck=1

gpgkey=http://mirrors.sohu.com/centos/5/os/x86_64/RPM-GPG-KEY-CentOS-5

 

#additional packages that may be useful

[extras]

name=CentOS-5 - Extras

baseurl=http://mirrors.sohu.com/centos/5/extras/$basearch/

gpgcheck=1

gpgkey=http://mirrors.sohu.com/centos/5/os/x86_64/RPM-GPG-KEY-CentOS-5

 

#additional packages that extend functionality of existing packages

[centosplus]

name=CentOS-5 - Plus

baseurl=http://mirrors.sohu.com/centos/5/centosplus/$basearch/

gpgcheck=1

enabled=0

gpgkey=http://mirrors.sohu.com/centos/5/os/x86_64/RPM-GPG-KEY-CentOS-5

 

#contrib - packages by Centos Users

[contrib]

name=CentOS-5 - Contrib

baseurl=http://mirrors.sohu.com/centos/5/contrib/x86_64/$basearch/

gpgcheck=1

enabled=0

gpgkey=http://mirrors.sohu.com/centos/5/os/x86_64/RPM-GPG-KEY-CentOS-5

你可能感兴趣的:(yum)