gitmyhub

LinuxMirrors

Shell ★ 7.6k updated 2d ago

GNU/Linux 更换系统软件源脚本及 Docker 安装与换源脚本

Shell scripts that switch your Linux system's package download server to a faster nearby mirror with a single command, no manual config file editing required.

ShellBashsetup: easycomplexity 1/5

LinuxMirrors is a collection of shell scripts that make it easy to switch the software download sources on a Linux computer. When you install software on Linux, your system reaches out to a remote server (called a mirror) to download it. The default server is often slow for users in certain regions, particularly China. These scripts let you point your system at a faster nearby mirror with a single command, instead of manually editing configuration files.

The project supports a wide range of Linux distributions: Debian, Ubuntu, Kali Linux, Linux Mint, Deepin, Fedora, CentOS, Rocky Linux, AlmaLinux, Arch Linux, openSUSE, Alpine, Raspberry Pi OS, and many others. A separate script handles Docker specifically, covering both the installation of Docker and the switching of its image download source. The scripts detect which distribution you are running and apply the appropriate changes automatically.

To use it, you run a one-line command in a terminal that downloads and executes the script. The script then presents you with a menu of available mirror sources, you pick one, and it updates your system's configuration. No manual file editing is required. The project is aimed at Linux users who want faster package downloads and do not want to hunt down instructions for each distribution separately.

The repository is written in Shell (Bash), has an MIT license, and covers both 64-bit and ARM-based systems. The documentation is primarily in Chinese, with versions available in Traditional Chinese and English as well. It has been maintained across many Linux distribution versions and is a practical utility rather than a software application in the traditional sense.

Where it fits