One-click replacement of Linux software source script: SuperUpdate.sh

888u

Last update at :2024-02-06,Edit by888u

Sometimes, Linux source updates are very slow, especially when using the default source in mainland China. Due to the network environment in mainland China, updates often fail and are slow. In this case, changing to a more suitable or closer or faster software source will make your Linux installation and update operations smoother and smoother. This script is suitable for CentOS 5, 6, 7, Ubuntu 14.04, 16.04, 18.04, Debian 7, 8, 9, one-click matching and source change.

Manually changing the source is also very simple. You only need to click a few steps to complete it. This script only completes these simple steps with one click, changing the software source for you faster. Although relatively simple, it can be a lot more convenient for people who manage multiple Linux servers or who often reinstall the system.

No more nonsense, the script is pure. In addition to modifying the software source files, no other files or configurations will be added, and other irrelevant settings will not be modified. There is no residue, and the code is not encrypted. This is also the principle of my script. , the function code only has about a hundred lines, please check yourself.

Installation script

wget git.io/superupdate.sh bash superupdate.sh

Use wget -qO- git.io/superupdate.sh | bash to change sources with one click. If you get an error in the first step or there is no output after execution, please check whether wget and ca-certificates are installed. Please use

apt-get install -y wget && apt-get install -y ca-certificates

Please use centos

yum install -y wget && yum install -y ca-certificates

For Debian, the default source is the mirror of Fastly CDN. This source has the blessing of Fastly and has good speed for overseas hosts. For Ubuntu and CentOS systems, the default source is Alibaba Cloud's mirror. This source is supported by Alibaba Cloud's global CDN and has good speeds around the world.

For the Debian system, four other sets of sources are also set up, Alibaba Cloud, CloudFront CDN, NetEase 163, and the source of the University of Science and Technology of China. Please use the one-click setting of parameters as needed

bash superupdate.sh cn bash superupdate.sh 163 bash superupdate.sh aliyun bash superupdate.sh aws

If the configured files are not satisfied, restore them with one click

bash superupdate.sh restore

Respect copyright, original link: https://www.oldking.net/697.html

Recommended site searches: domain name query, agency service IP, private server website space, cheapest cloud server, vps US server, cloud server rental, foreign domain name, personal registered domain name, domain name information query, Hong Kong server,

One-click replacement of Linux software source script: SuperUpdate.sh

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码