wget -O /etc/yum.repos.d/CentOS-Base.repo http://file.kangle.odata.cc/repo/Centos-6.repo

wget -O /etc/yum.repos.d/epel.repo http://file.kangle.odata.cc/repo/epel-6.repo

yum clean all 
yum makecache

yum install -y vim 
本文提供了针对CentOS6系统中遇到Yum源404错误的解决方案,通过wget下载新的CentOS-Base.repo和epel.repo文件,并使用yum清理缓存,重新生成缓存,最后安装vim作为示例。
wget -O /etc/yum.repos.d/CentOS-Base.repo http://file.kangle.odata.cc/repo/Centos-6.repo

wget -O /etc/yum.repos.d/epel.repo http://file.kangle.odata.cc/repo/epel-6.repo

yum clean all 
yum makecache

yum install -y vim 

被折叠的 条评论
为什么被折叠?