cd /etc/yum.repos.d/ wget wget http://mirrors.163.com/.help/CentOS6-Base-163.repo sed -i "s/$releasever/6/" CentOS6-Base-163.repo