差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
mirrors:help:centos [2012/05/13 21:34]
127.0.0.1 外部编辑
mirrors:help:centos [2014/07/09 11:42] (当前版本)
高一凡 添加CentOS 7
行 3: 行 3:
   * i386   * i386
   * x86_64   * x86_64
-  * SRPMS 
 =====收录版本===== =====收录版本=====
   * 5   * 5
   * 6   * 6
 +  * 7
 =====使用说明===== ​ =====使用说明===== ​
 首先备份CentOS-Base.repo 首先备份CentOS-Base.repo
行 135: 行 135:
 </​file>​ </​file>​
  
-运行yum makecache生成缓存+这是CentOS 7的: 
 +<file repo CentOS-Base.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-$releasever - Base
 +#​mirrorlist=http://​mirrorlist.centos.org/?​release=$releasever&​arch=$basearch&​repo=os
 +baseurl=http://​mirrors.ustc.edu.cn/​centos/​$releasever/​os/​$basearch/​
 +gpgcheck=1
 +gpgkey=file:///​etc/​pki/​rpm-gpg/​RPM-GPG-KEY-CentOS-7
 +
 +#released updates
 +[updates]
 +name=CentOS-$releasever - Updates
 +# mirrorlist=http://​mirrorlist.centos.org/?​release=$releasever&​arch=$basearch&​repo=updates
 +baseurl=http://​mirrors.ustc.edu.cn/​centos/​$releasever/​updates/​$basearch/​
 +gpgcheck=1
 +gpgkey=file:///​etc/​pki/​rpm-gpg/​RPM-GPG-KEY-CentOS-7
 +
 +#additional packages that may be useful
 +[extras]
 +name=CentOS-$releasever - Extras
 +# mirrorlist=http://​mirrorlist.centos.org/?​release=$releasever&​arch=$basearch&​repo=extras
 +baseurl=http://​mirrors.ustc.edu.cn/​centos/​$releasever/​extras/​$basearch/​
 +gpgcheck=1
 +gpgkey=file:///​etc/​pki/​rpm-gpg/​RPM-GPG-KEY-CentOS-7
 +
 +#additional packages that extend functionality of existing packages
 +[centosplus]
 +name=CentOS-$releasever - Plus
 +# mirrorlist=http://​mirrorlist.centos.org/?​release=$releasever&​arch=$basearch&​repo=centosplus
 +baseurl=http://​mirrors.ustc.edu.cn/​centos/​$releasever/​centosplus/​$basearch/​
 +gpgcheck=1
 +enabled=0
 +gpgkey=file:///​etc/​pki/​rpm-gpg/​RPM-GPG-KEY-CentOS-7
 +</​file>​
 +
 +运行yum makecache生成缓存
 =====相关链接===== =====相关链接=====