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