由于红帽官方停止了CentOS7的支持,并且CentOS官方源也无法适应,以下教程可以一键切换到阿里源
请在终端输入:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
运行完成后请reboot重启
教程原帖来自于:https://www.ruibaicloud.cn/newsview?id=4