Redhat linux yum源配置(上海交大)

来源:互联网 发布:阿里云短信接口文档 编辑:程序博客网 时间:2024/06/05 16:25

yum源配置文件位置:/etc/yum.repos.d

两个配置文件,名字分别是:rhel-source.repo和rhel-source.repo

文件内容:

# CentOS-Base.repo## The mirror system uses the connecting IP address of the client and the# update status of each mirror to pick mirrors that are updated to and# geographically close to the client.  You should use this for CentOS updates# unless you are manually picking other mirrors.## If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead.##[base]name=CentOS-6 - Base - 163.combaseurl=http://mirrors.163.com/centos/6/os/x86_64/#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=osgpgcheck=1gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6#released updates [updates]name=CentOS-6 - Updates - 163.combaseurl=http://mirrors.163.com/centos/6/updates/x86_64/#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updatesgpgcheck=1gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6#additional packages that may be useful[extras]name=CentOS-6 - Extras - 163.combaseurl=http://mirrors.163.com/centos/6/extras/x86_64/#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=extrasgpgcheck=1gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6#additional packages that extend functionality of existing packages[centosplus]name=CentOS-6 - Plus - 163.combaseurl=http://mirrors.163.com/centos/6/centosplus/x86_64/#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=centosplusgpgcheck=1enabled=0gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6#contrib - packages by Centos Users[contrib]name=CentOS-6 - Contrib - 163.combaseurl=http://mirrors.163.com/centos/6/contrib/x86_64/#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=contribgpgcheck=1enabled=0gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6