1. 进到目录/etc/yum.repos.d

  2. 备份现有源

    mv CentOS-Base.repo CentOS-Base.repo.bk

  3. 下载网易源,系统是6.3所以地址是这个

    wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

    CentOS5的源路径 http://mirrors.163.com/.help/CentOS5-Base-163.repo

  4. 更新缓存

    yum makecache

    Linux CentOS 更新yum源_Linux


大功告成!