• 检查是否安装 wget 和 ca-certificates
# Debian/Ubuntu:
apt-get install -y wget && apt-get install -y ca-certificates

# RedHat/CentOS:
yum install -y wget && yum install -y ca-certificates

  • 下载脚本
wget git.io/superupdate.sh

  • 运行脚本
bash superupdate.sh

  • 说明
# 对于Debian默认换源为Fastly CDN的mirror,这个源有Fastly的加持对境外主机都有不错的速度。对于Ubuntu和CentOS系统都默认换为阿里云的mirror,这个源有阿里云全球CDN的加持,全球都有不错的速度。
# 对于Debian系统还设置了四套其他的源,阿里云,CloudFront CDN,网易163,中科大的源,请根据需要使用参数一键设置如:

bash superupdate.sh cn
bash superupdate.sh aws
bash superupdate.sh 163
bash superupdate.sh aliyun
  • 还原
bash superupdate.sh restore