把文件里面的$releasever全部替换为版本号,即6 最后保存!
[base]
name=CentOS-6 - Base - 163.com
baseurl=http:
//mirrors
.163.com
/centos/6/os/
$basearch/
gpgcheck=1
gpgkey=http:
//mirror
.centos.org
/centos/RPM-GPG-KEY-CentOS-6
[updates]
name=CentOS-6 - Updates - 163.com
baseurl=http:
//mirrors
.163.com
/centos/6/updates/
$basearch/
gpgcheck=1
gpgkey=http:
//mirror
.centos.org
/centos/RPM-GPG-KEY-CentOS-6
[extras]
name=CentOS-6 - Extras - 163.com
baseurl=http:
//mirrors
.163.com
/centos/6/extras/
$basearch/
gpgcheck=1
gpgkey=http:
//mirror
.centos.org
/centos/RPM-GPG-KEY-CentOS-6
[centosplus]
name=CentOS-6 - Plus - 163.com
baseurl=http:
//mirrors
.163.com
/centos/6/centosplus/
$basearch/
gpgcheck=1
enabled=0
gpgkey=http:
//mirror
.centos.org
/centos/RPM-GPG-KEY-CentOS-6
[contrib]
name=CentOS-6 - Contrib - 163.com
baseurl=http:
//mirrors
.163.com
/centos/6/contrib/
$basearch/
gpgcheck=1
enabled=0
gpgkey=http:
//mirror
.centos.org
/centos/RPM-GPG-KEY-CentOS-6