基础操作

更新yum源

最近CentOS 6已经停止更新支持,同时官方也把yum源删除了

目前CentOS 6系统使用yum命令安装软件包基本都是失败,因此需要更换yum源

  1. wget -O /etc/yum.repos.d/CentOS-Base.repo http://file.kangle.odata.cc/repo/Centos-6.repo
  2. wget -O /etc/yum.repos.d/epel.repo http://file.kangle.odata.cc/repo/epel-6.repo
  3. yum clean all
  4. yum makecache

瓦雀