感谢网易的同学,速度很快,配置文件如下。
如果强制使用5的源(用于升级系统到centos5),如下:
[base]
name=CentOS-5 – Base
baseurl=
gpgcheck=1
gpgkey=
[updates]
name=CentOS-5 – Updates
baseurl=
gpgcheck=1
gpgkey=
如果根据系统使用源,则如下:
[base]
name=CentOS-$releasever ¨C Base
baseurl=
gpgcheck=1
gpgkey=
[updates]
name=CentOS-$releasever Updates
baseurl=
gpgcheck=1
gpgkey=
[addons]
name=CentOS-$releasever Addons
baseurl=
gpgcheck=1
gpgkey=
[extras]
name=CentOS-$releasever Extras
baseurl=
gpgcheck=1
gpgkey=
[centosplus]
name=CentOS-$releasever Plus
baseurl=
gpgcheck=1
enabled=0
gpgkey=
包子猜您可能还喜欢下列文章: