国内 CentOS 5.2 YUM更新源
1、进入目录
cd /etc/yum.repos.d/
2、下载文件
[root@test-linux yum.repos.d]# wget
记得rm 删除原来的 CentOS-Base.repo
3 你就可以开始更新了 , yum install gcc
就可以了
如果出现错误:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
#vi /etc/yum.repos.d/CentOS-Base.repo
修改内容: changed the gpgcheck=1 to gpgcheck=0 for all the lines
即:把gpgcheck=1全部改为gpgcheck=0
阅读(827) | 评论(0) | 转发(0) |