1.输入wget --version
查看是否有安装wegt,有的话会直接显示版本号,如果没有安装输入yum install wget
执行安装。
2.输入yum install ca-certificates
安装ca-certificates。
3.下载脚本,示例是海外机器所以使用海外下载脚本。
海外下载脚本
国内加速下载脚本
wget https://mirror.ghproxy.com/https://raw.githubusercontent.com/oooldking/script/master/superupdate.sh
4.输入bash superupdate.sh
运行更换软件源。