Compare commits

...

17 Commits

Author SHA1 Message Date
Super Manito
fec7c28054 更新文档 2025-11-02 03:43:42 +08:00
Super Manito
1ddf1fb708 Docker 脚本新增适配 Kylin Server 操作系统 2025-11-02 02:37:25 +08:00
Super Manito
c84ed20dfa 更新文档 2025-11-01 02:13:19 +08:00
Super Manito
655c8cdabe 优化 2025-11-01 02:00:21 +08:00
Super Manito
cbda99f56e 更新文档 2025-10-26 11:40:49 +08:00
Super Manito
f667facae7 更新文档 2025-10-24 17:51:12 +08:00
Super Manito
51be34be62 Docker 脚本指定镜像仓库命令选项新增支持指定多个地址 2025-10-23 05:35:17 +08:00
Super Manito
06bc87f75e bug fix 2025-10-22 15:09:33 +08:00
Super Manito
e26bd0d3f2 优化 2025-10-20 08:17:07 +08:00
Super Manito
cab4cd8977 更新文档 2025-10-20 01:23:57 +08:00
Super Manito
535cc8f751 优化 2025-10-20 01:23:16 +08:00
Super Manito
e81a8fda94 更新文档 2025-10-16 02:17:52 +08:00
Super Manito
cae539f6b7 新增部分软件源 2025-10-14 15:32:16 +08:00
Super Manito
61868705dd 更新文档 2025-10-14 02:16:16 +08:00
Super Manito
784f792b0c 更新文档 2025-10-12 08:05:40 +08:00
Super Manito
bf2adc1adf 新增适配 I18n 2025-10-12 07:22:53 +08:00
Super Manito
f896adb8b6 更新文档 2025-10-12 05:13:57 +08:00
57 changed files with 5380 additions and 1552 deletions

33
.github/CONTRIBUTING.md vendored Normal file
View File

@@ -0,0 +1,33 @@
# 参与共建
这篇指南会指导你如何为 LinuxMirrors 贡献自己的一份力量,请你在提 issue 或者 pull request 之前花几分钟来阅读一遍这篇指南。
## 行为准则
我们有一份 [行为准则](https://github.com/SuperManito/LinuxMirrors/blob/main/CODE_OF_CONDUCT.md),希望所有的贡献者都能遵守,请花时间阅读一遍全文以确保你能明白哪些是可以做的,哪些是不可以做的。
## 透明的开发
我们所有的工作都会放在 [GitHub](https://github.com/SuperManito/LinuxMirrors) 上。不管是核心团队的成员还是外部贡献者的 pull request 都需要经过同样流程的 review。
## Pull Request
请确保你的代码符合我们的编码规范,并且通过了所有的测试。提交前请务必在本地客户端进行测试,确保脚本的功能和性能符合预期,不会出现任何致命性的错误。
---
# Contributing to LinuxMirrors
The following is a set of guidelines for contributing to LinuxMirrors. Please spend several minutes reading these guidelines before you create an issue or pull request.
## Code of Conduct
We have adopted a [Code of Conduct](https://github.com/SuperManito/LinuxMirrors/blob/main/CODE_OF_CONDUCT.md) that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.
## Open Development
All work on LinuxMirrors happens directly on [GitHub](https://github.com/SuperManito/LinuxMirrors). Both core team members and external contributors send pull requests which go through the same review process.
## Pull Request
Please ensure that your code complies with our coding standards and passes all tests. Before submitting, be sure to test it on your local client to ensure that the script's functionality and performance meet expectations and that there are no fatal errors.

View File

@@ -1,3 +1,11 @@
2025-11-02
* Adapted for Kylin Server to docker script [#1ddf1fb](https://github.com/SuperManito/LinuxMirrors/commit/1ddf1fb708987cf59c4ef56b0a0410caf1b8e726)
2025-10-12
* Added support for I18n [#bf2adc1](https://github.com/SuperManito/LinuxMirrors/commit/bf2adc1adf4f2de4820f617a23aabf247a47281c)
2025-09-28
* Adapted for openSUSE 16 [#a934676](https://github.com/SuperManito/LinuxMirrors/commit/a934676aeb4dfc1d008b2b46ecea5811d7382317)

View File

@@ -1,3 +1,11 @@
2025-11-02
* Docker 脚本新增适配 Kylin Server 操作系统 [#1ddf1fb](https://github.com/SuperManito/LinuxMirrors/commit/1ddf1fb708987cf59c4ef56b0a0410caf1b8e726)
2025-10-12
* 新增适配 I18n [#bf2adc1](https://github.com/SuperManito/LinuxMirrors/commit/bf2adc1adf4f2de4820f617a23aabf247a47281c)
2025-09-28
* 适配 openSUSE 16 [#a934676](https://github.com/SuperManito/LinuxMirrors/commit/a934676aeb4dfc1d008b2b46ecea5811d7382317)

View File

@@ -1,3 +1,11 @@
2025-11-02
* Docker 腳本新增適配 Kylin Server 作業系統 [#1ddf1fb](https://github.com/SuperManito/LinuxMirrors/commit/1ddf1fb708987cf59c4ef56b0a0410caf1b8e726)
2025-10-12
* 新增適配 I18n [#bf2adc1](https://github.com/SuperManito/LinuxMirrors/commit/bf2adc1adf4f2de4820f617a23aabf247a47281c)
2025-09-28
* 適配 openSUSE 16 [#a934676](https://github.com/SuperManito/LinuxMirrors/commit/a934676aeb4dfc1d008b2b46ecea5811d7382317)

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -4,7 +4,7 @@
<img src="/docs/assets/images/brand/light/3.png" alt="LinuxMirrors" width="140">
</picture>
<h1>LinuxMirrors</h1>
<p>GNU/Linux mirror switching script & docker installation and registry mirror switching script</p>
<p>GNU/Linux mirror switching script & Docker installation and registry mirror switching script</p>
<p><a href="README.md">简体中文</a> | <a href="README.zh-Hant.md">繁體中文</a> | English</p>
<p>
<a href="https://github.com/SuperManito/LinuxMirrors/blob/main/LICENSE"><img src="https://shields.io/github/license/SuperManito/LinuxMirrors?color=%23007bff" alt="License: MIT"></a>
@@ -12,7 +12,7 @@
<a href="https://deepwiki.com/SuperManito/LinuxMirrors"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a><br>
</p>
<p>
<a href="https://hellogithub.com/repository/775d5b3d0aa04e90be9162104e757f2e" target="_blank">
<a href="https://hellogithub.com/repository/775d5b3d0aa04e90be9162104e757f2e" target="_blank" rel="noopener noreferrer">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.hellogithub.com/v1/widgets/recommend.svg?rid=775d5b3d0aa04e90be9162104e757f2e&claim_uid=mXoISqgeyYLDf1a&theme=dark" width="250">
<img src="https://api.hellogithub.com/v1/widgets/recommend.svg?rid=775d5b3d0aa04e90be9162104e757f2e&claim_uid=mXoISqgeyYLDf1a&theme=neutral" alt="FeaturedHelloGitHub" width="250">
@@ -26,103 +26,103 @@
<th align="center">Supported Versions</th>
</tr>
<tr>
<td><a href="https://www.debian.org" target="_blank"><sub><img src="/docs/assets/images/icon/debian.svg" width="16" height="16"></sub></a>&nbsp;Debian</td>
<td><a href="https://www.debian.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/debian.svg" width="16" height="16"></sub></a>&nbsp;Debian</td>
<td align="center">8 ~ 13</td>
</tr>
<tr>
<td><a href="https://ubuntu.com" target="_blank"><sub><img src="/docs/assets/images/icon/ubuntu.svg" width="16" height="16"></sub></a>&nbsp;Ubuntu</td>
<td><a href="https://ubuntu.com" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/ubuntu.svg" width="16" height="16"></sub></a>&nbsp;Ubuntu</td>
<td align="center">14 ~ 25</td>
</tr>
<tr>
<td><a href="https://www.kali.org" target="_blank"><sub><img src="/docs/assets/images/icon/kali-linux.svg" width="16" height="16"></sub></a>&nbsp;Kali Linux</td>
<td><a href="https://www.kali.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/kali-linux.png" width="16" height="16"></sub></a>&nbsp;Kali Linux</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://linuxmint.com" target="_blank"><sub><img src="/docs/assets/images/icon/linux-mint.ico" width="16" height="16"></sub></a>&nbsp;Linux Mint</td>
<td><a href="https://linuxmint.com" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/linux-mint.ico" width="16" height="16"></sub></a>&nbsp;Linux Mint</td>
<td align="center">19 ~ 22 / LMDE 6</td>
</tr>
<tr>
<td><a href="https://www.deepin.org" target="_blank"><sub><img src="/docs/assets/images/icon/deepin.png" width="16" height="16"></sub></a>&nbsp;Deepin</td>
<td><a href="https://www.deepin.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/deepin.png" width="16" height="16"></sub></a>&nbsp;Deepin</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://zorin.com/os" target="_blank"><sub><img src="/docs/assets/images/icon/zorin-os.png" width="16" height="16"></sub></a>&nbsp;Zorin OS</td>
<td><a href="https://zorin.com/os" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/zorin-os.png" width="16" height="16"></sub></a>&nbsp;Zorin OS</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://www.armbian.org" target="_blank"><sub><img src="/docs/assets/images/icon/armbian.png" width="16" height="16"></sub></a>&nbsp;Armbian</td>
<td><a href="https://www.armbian.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/armbian.png" width="16" height="16"></sub></a>&nbsp;Armbian</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank"><sub><img src="/docs/assets/images/icon/proxmox.svg" width="16" height="16"></sub></a>&nbsp;Proxmox VE</td>
<td><a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/proxmox.svg" width="16" height="16"></sub></a>&nbsp;Proxmox VE</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://www.raspberrypi.com/software" target="_blank"><sub><img src="/docs/assets/images/icon/raspberry-pi.png" width="16" height="16"></sub></a>&nbsp;Raspberry Pi OS</td>
<td><a href="https://www.raspberrypi.com/software" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/raspberry-pi.png" width="16" height="16"></sub></a>&nbsp;Raspberry Pi OS</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><sub><img src="/docs/assets/images/icon/redhat.svg" width="16" height="16"></sub></a>&nbsp;Red Hat Enterprise Linux</td>
<td><a href="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/redhat.svg" width="16" height="16"></sub></a>&nbsp;Red Hat Enterprise Linux</td>
<td align="center">7 ~ 10</td>
</tr>
<tr>
<td><a href="https://fedoraproject.org" target="_blank"><sub><img src="/docs/assets/images/icon/fedora.ico" width="16" height="16"></sub></a>&nbsp;Fedora</td>
<td><a href="https://fedoraproject.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/fedora.ico" width="16" height="16"></sub></a>&nbsp;Fedora</td>
<td align="center">30 ~ 42</td>
</tr>
<tr>
<td><a href="https://www.centos.org" target="_blank"><sub><img src="/docs/assets/images/icon/centos.svg" width="16" height="16"></sub></a>&nbsp;CentOS</td>
<td><a href="https://www.centos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/centos.svg" width="16" height="16"></sub></a>&nbsp;CentOS</td>
<td align="center">7 ~ 8 / Stream 8 ~ 10</td>
</tr>
<tr>
<td><a href="https://rockylinux.org" target="_blank"><sub><img src="/docs/assets/images/icon/rocky-linux.svg" width="16" height="16"></sub></a>&nbsp;Rocky Linux</td>
<td><a href="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/rocky-linux.svg" width="16" height="16"></sub></a>&nbsp;Rocky Linux</td>
<td align="center">8 ~ 10</td>
</tr>
<tr>
<td><a href="https://almalinux.org" target="_blank"><sub><img src="/docs/assets/images/icon/almalinux.svg" width="16" height="16"></sub></a>&nbsp;AlmaLinux</td>
<td><a href="https://almalinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/almalinux.svg" width="16" height="16"></sub></a>&nbsp;AlmaLinux</td>
<td align="center">8 ~ 10</td>
</tr>
<tr>
<td><a href="https://www.oracle.com/linux" target="_blank"><sub><img src="/docs/assets/images/icon/oracle-linux.png" width="16" height="16"></sub></a>&nbsp;Oracle Linux</td>
<td><a href="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/oracle-linux.png" width="16" height="16"></sub></a>&nbsp;Oracle Linux</td>
<td align="center">8 ~ 10</td>
</tr>
<tr>
<td><a href="https://www.openeuler.org/zh" target="_blank"><sub><img src="/docs/assets/images/icon/openeuler.ico" width="16" height="16"></sub></a>&nbsp;openEuler</td>
<td><a href="https://www.openeuler.org/zh" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/openeuler.ico" width="16" height="16"></sub></a>&nbsp;openEuler</td>
<td align="center">20 ~ 25</td>
</tr>
<tr>
<td><a href="https://www.opencloudos.org" target="_blank"><sub><img src="/docs/assets/images/icon/opencloudos.png" width="16" height="16"></sub></a>&nbsp;OpenCloudOS</td>
<td><a href="https://www.opencloudos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/opencloudos.png" width="16" height="16"></sub></a>&nbsp;OpenCloudOS</td>
<td align="center">8.6 ~ 9 / Stream 23</td>
</tr>
<tr>
<td><a href="https://www.openkylin.top" target="_blank"><sub><img src="/docs/assets/images/icon/openkylin.ico" width="16" height="16"></sub></a>&nbsp;openKylin</td>
<td><a href="https://www.openkylin.top" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/openkylin.ico" width="16" height="16"></sub></a>&nbsp;openKylin</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://openanolis.cn" target="_blank"><sub><img src="/docs/assets/images/icon/anolis.png" width="16" height="16"></sub></a>&nbsp;Anolis OS</td>
<td><a href="https://openanolis.cn" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/anolis.png" width="16" height="16"></sub></a>&nbsp;Anolis OS</td>
<td align="center">8 / 23</td>
</tr>
<tr>
<td><a href="https://www.opensuse.org" target="_blank"><sub><img src="/docs/assets/images/icon/opensuse.svg" width="16" height="16"></sub></a>&nbsp;openSUSE</td>
<td><a href="https://www.opensuse.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/opensuse.svg" width="16" height="16"></sub></a>&nbsp;openSUSE</td>
<td align="center">Leap 15 ~ 16 / Tumbleweed</td>
</tr>
<tr>
<td><a href="https://archlinux.org" target="_blank"><sub><img src="/docs/assets/images/icon/arch-linux.ico" width="16" height="16"></sub></a>&nbsp;Arch Linux</td>
<td><a href="https://archlinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/arch-linux.ico" width="16" height="16"></sub></a>&nbsp;Arch Linux</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://manjaro.org" target="_blank"><sub><img src="/docs/assets/images/icon/manjaro.svg" width="16" height="16"></sub></a>&nbsp;Manjaro</td>
<td><a href="https://manjaro.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/manjaro.svg" width="16" height="16"></sub></a>&nbsp;Manjaro</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://www.alpinelinux.org" target="_blank"><sub><img src="/docs/assets/images/icon/alpine.png" width="16" height="16"></sub></a>&nbsp;Alpine Linux</td>
<td><a href="https://www.alpinelinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/alpine.png" width="16" height="16"></sub></a>&nbsp;Alpine Linux</td>
<td align="center">v3 / edge</td>
</tr>
<tr>
<td><a href="https://www.gentoo.org" target="_blank"><sub><img src="/docs/assets/images/icon/gentoo.svg" width="16" height="16"></sub></a>&nbsp;Gentoo</td>
<td><a href="https://www.gentoo.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/gentoo.svg" width="16" height="16"></sub></a>&nbsp;Gentoo</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://nixos.org" target="_blank"><sub><img src="/docs/assets/images/icon/nixos.svg" width="16" height="16"></sub></a>&nbsp;NixOS</td>
<td><a href="https://nixos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/nixos.svg" width="16" height="16"></sub></a>&nbsp;NixOS</td>
<td align="center">19 ~ 25</td>
</tr>
</table>
@@ -156,19 +156,19 @@
- ### GNU/Linux System Software Mirror Switching
```bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh)
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --en
```
- ### Docker Installation & Mirror Switching
```bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh)
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --en
```
- ### Docker Switch Registry Mirror
```bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --only-registry
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --en --only-registry
```
## Special Thanks

View File

@@ -12,7 +12,7 @@
<a href="https://deepwiki.com/SuperManito/LinuxMirrors"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a><br>
</p>
<p>
<a href="https://hellogithub.com/repository/775d5b3d0aa04e90be9162104e757f2e" target="_blank">
<a href="https://hellogithub.com/repository/775d5b3d0aa04e90be9162104e757f2e" target="_blank" rel="noopener noreferrer">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.hellogithub.com/v1/widgets/recommend.svg?rid=775d5b3d0aa04e90be9162104e757f2e&claim_uid=mXoISqgeyYLDf1a&theme=dark" width="250">
<img src="https://api.hellogithub.com/v1/widgets/recommend.svg?rid=775d5b3d0aa04e90be9162104e757f2e&claim_uid=mXoISqgeyYLDf1a&theme=neutral" alt="FeaturedHelloGitHub" width="250">
@@ -26,103 +26,103 @@
<th align="center">适配版本</th>
</tr>
<tr>
<td><a href="https://www.debian.org" target="_blank"><sub><img src="/docs/assets/images/icon/debian.svg" width="16" height="16"></sub></a>&nbsp;Debian</td>
<td><a href="https://www.debian.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/debian.svg" width="16" height="16"></sub></a>&nbsp;Debian</td>
<td align="center">8 ~ 13</td>
</tr>
<tr>
<td><a href="https://ubuntu.com" target="_blank"><sub><img src="/docs/assets/images/icon/ubuntu.svg" width="16" height="16"></sub></a>&nbsp;Ubuntu</td>
<td><a href="https://ubuntu.com" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/ubuntu.svg" width="16" height="16"></sub></a>&nbsp;Ubuntu</td>
<td align="center">14 ~ 25</td>
</tr>
<tr>
<td><a href="https://www.kali.org" target="_blank"><sub><img src="/docs/assets/images/icon/kali-linux.svg" width="16" height="16"></sub></a>&nbsp;Kali Linux</td>
<td><a href="https://www.kali.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/kali-linux.png" width="16" height="16"></sub></a>&nbsp;Kali Linux</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://linuxmint.com" target="_blank"><sub><img src="/docs/assets/images/icon/linux-mint.ico" width="16" height="16"></sub></a>&nbsp;Linux Mint</td>
<td><a href="https://linuxmint.com" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/linux-mint.ico" width="16" height="16"></sub></a>&nbsp;Linux Mint</td>
<td align="center">19 ~ 22 / LMDE 6</td>
</tr>
<tr>
<td><a href="https://www.deepin.org" target="_blank"><sub><img src="/docs/assets/images/icon/deepin.png" width="16" height="16"></sub></a>&nbsp;Deepin深度</td>
<td><a href="https://www.deepin.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/deepin.png" width="16" height="16"></sub></a>&nbsp;Deepin深度</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://zorin.com/os" target="_blank"><sub><img src="/docs/assets/images/icon/zorin-os.png" width="16" height="16"></sub></a>&nbsp;Zorin OS</td>
<td><a href="https://zorin.com/os" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/zorin-os.png" width="16" height="16"></sub></a>&nbsp;Zorin OS</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://www.armbian.org" target="_blank"><sub><img src="/docs/assets/images/icon/armbian.png" width="16" height="16"></sub></a>&nbsp;Armbian</td>
<td><a href="https://www.armbian.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/armbian.png" width="16" height="16"></sub></a>&nbsp;Armbian</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank"><sub><img src="/docs/assets/images/icon/proxmox.svg" width="16" height="16"></sub></a>&nbsp;Proxmox VE</td>
<td><a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/proxmox.svg" width="16" height="16"></sub></a>&nbsp;Proxmox VE</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://www.raspberrypi.com/software" target="_blank"><sub><img src="/docs/assets/images/icon/raspberry-pi.png" width="16" height="16"></sub></a>&nbsp;Raspberry Pi OS</td>
<td><a href="https://www.raspberrypi.com/software" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/raspberry-pi.png" width="16" height="16"></sub></a>&nbsp;Raspberry Pi OS</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><sub><img src="/docs/assets/images/icon/redhat.svg" width="16" height="16"></sub></a>&nbsp;Red Hat Enterprise Linux</td>
<td><a href="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/redhat.svg" width="16" height="16"></sub></a>&nbsp;Red Hat Enterprise Linux</td>
<td align="center">7 ~ 10</td>
</tr>
<tr>
<td><a href="https://fedoraproject.org" target="_blank"><sub><img src="/docs/assets/images/icon/fedora.ico" width="16" height="16"></sub></a>&nbsp;Fedora</td>
<td><a href="https://fedoraproject.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/fedora.ico" width="16" height="16"></sub></a>&nbsp;Fedora</td>
<td align="center">30 ~ 42</td>
</tr>
<tr>
<td><a href="https://www.centos.org" target="_blank"><sub><img src="/docs/assets/images/icon/centos.svg" width="16" height="16"></sub></a>&nbsp;CentOS</td>
<td><a href="https://www.centos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/centos.svg" width="16" height="16"></sub></a>&nbsp;CentOS</td>
<td align="center">7 ~ 8 / Stream 8 ~ 10</td>
</tr>
<tr>
<td><a href="https://rockylinux.org" target="_blank"><sub><img src="/docs/assets/images/icon/rocky-linux.svg" width="16" height="16"></sub></a>&nbsp;Rocky Linux</td>
<td><a href="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/rocky-linux.svg" width="16" height="16"></sub></a>&nbsp;Rocky Linux</td>
<td align="center">8 ~ 10</td>
</tr>
<tr>
<td><a href="https://almalinux.org" target="_blank"><sub><img src="/docs/assets/images/icon/almalinux.svg" width="16" height="16"></sub></a>&nbsp;AlmaLinux</td>
<td><a href="https://almalinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/almalinux.svg" width="16" height="16"></sub></a>&nbsp;AlmaLinux</td>
<td align="center">8 ~ 10</td>
</tr>
<tr>
<td><a href="https://www.oracle.com/linux" target="_blank"><sub><img src="/docs/assets/images/icon/oracle-linux.png" width="16" height="16"></sub></a>&nbsp;Oracle Linux</td>
<td><a href="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/oracle-linux.png" width="16" height="16"></sub></a>&nbsp;Oracle Linux</td>
<td align="center">8 ~ 10</td>
</tr>
<tr>
<td><a href="https://www.openeuler.org/zh" target="_blank"><sub><img src="/docs/assets/images/icon/openeuler.ico" width="16" height="16"></sub></a>&nbsp;openEuler开源欧拉</td>
<td><a href="https://www.openeuler.org/zh" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/openeuler.ico" width="16" height="16"></sub></a>&nbsp;openEuler开源欧拉</td>
<td align="center">20 ~ 25</td>
</tr>
<tr>
<td><a href="https://www.opencloudos.org" target="_blank"><sub><img src="/docs/assets/images/icon/opencloudos.png" width="16" height="16"></sub></a>&nbsp;OpenCloudOS鸥栖</td>
<td><a href="https://www.opencloudos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/opencloudos.png" width="16" height="16"></sub></a>&nbsp;OpenCloudOS鸥栖</td>
<td align="center">8.6 ~ 9 / Stream 23</td>
</tr>
<tr>
<td><a href="https://www.openkylin.top" target="_blank"><sub><img src="/docs/assets/images/icon/openkylin.ico" width="16" height="16"></sub></a>&nbsp;openKylin开放麒麟</td>
<td><a href="https://www.openkylin.top" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/openkylin.ico" width="16" height="16"></sub></a>&nbsp;openKylin开放麒麟</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://openanolis.cn" target="_blank"><sub><img src="/docs/assets/images/icon/anolis.png" width="16" height="16"></sub></a>&nbsp;Anolis OS龙蜥</td>
<td><a href="https://openanolis.cn" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/anolis.png" width="16" height="16"></sub></a>&nbsp;Anolis OS龙蜥</td>
<td align="center">8 / 23</td>
</tr>
<tr>
<td><a href="https://www.opensuse.org" target="_blank"><sub><img src="/docs/assets/images/icon/opensuse.svg" width="16" height="16"></sub></a>&nbsp;openSUSE</td>
<td><a href="https://www.opensuse.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/opensuse.svg" width="16" height="16"></sub></a>&nbsp;openSUSE</td>
<td align="center">Leap 15 ~ 16 / Tumbleweed</td>
</tr>
<tr>
<td><a href="https://archlinux.org" target="_blank"><sub><img src="/docs/assets/images/icon/arch-linux.ico" width="16" height="16"></sub></a>&nbsp;Arch Linux</td>
<td><a href="https://archlinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/arch-linux.ico" width="16" height="16"></sub></a>&nbsp;Arch Linux</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://manjaro.org" target="_blank"><sub><img src="/docs/assets/images/icon/manjaro.svg" width="16" height="16"></sub></a>&nbsp;Manjaro</td>
<td><a href="https://manjaro.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/manjaro.svg" width="16" height="16"></sub></a>&nbsp;Manjaro</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://www.alpinelinux.org" target="_blank"><sub><img src="/docs/assets/images/icon/alpine.png" width="16" height="16"></sub></a>&nbsp;Alpine Linux</td>
<td><a href="https://www.alpinelinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/alpine.png" width="16" height="16"></sub></a>&nbsp;Alpine Linux</td>
<td align="center">v3 / edge</td>
</tr>
<tr>
<td><a href="https://www.gentoo.org" target="_blank"><sub><img src="/docs/assets/images/icon/gentoo.svg" width="16" height="16"></sub></a>&nbsp;Gentoo</td>
<td><a href="https://www.gentoo.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/gentoo.svg" width="16" height="16"></sub></a>&nbsp;Gentoo</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://nixos.org" target="_blank"><sub><img src="/docs/assets/images/icon/nixos.svg" width="16" height="16"></sub></a>&nbsp;NixOS</td>
<td><a href="https://nixos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/nixos.svg" width="16" height="16"></sub></a>&nbsp;NixOS</td>
<td align="center">19 ~ 25</td>
</tr>
</table>

View File

@@ -12,7 +12,7 @@
<a href="https://deepwiki.com/SuperManito/LinuxMirrors"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a><br>
</p>
<p>
<a href="https://hellogithub.com/repository/775d5b3d0aa04e90be9162104e757f2e" target="_blank">
<a href="https://hellogithub.com/repository/775d5b3d0aa04e90be9162104e757f2e" target="_blank" rel="noopener noreferrer">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.hellogithub.com/v1/widgets/recommend.svg?rid=775d5b3d0aa04e90be9162104e757f2e&claim_uid=mXoISqgeyYLDf1a&theme=dark" width="250">
<img src="https://api.hellogithub.com/v1/widgets/recommend.svg?rid=775d5b3d0aa04e90be9162104e757f2e&claim_uid=mXoISqgeyYLDf1a&theme=neutral" alt="FeaturedHelloGitHub" width="250">
@@ -26,103 +26,103 @@
<th align="center">適配版本</th>
</tr>
<tr>
<td><a href="https://www.debian.org" target="_blank"><sub><img src="/docs/assets/images/icon/debian.svg" width="16" height="16"></sub></a>&nbsp;Debian</td>
<td><a href="https://www.debian.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/debian.svg" width="16" height="16"></sub></a>&nbsp;Debian</td>
<td align="center">8 ~ 13</td>
</tr>
<tr>
<td><a href="https://ubuntu.com" target="_blank"><sub><img src="/docs/assets/images/icon/ubuntu.svg" width="16" height="16"></sub></a>&nbsp;Ubuntu</td>
<td><a href="https://ubuntu.com" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/ubuntu.svg" width="16" height="16"></sub></a>&nbsp;Ubuntu</td>
<td align="center">14 ~ 25</td>
</tr>
<tr>
<td><a href="https://www.kali.org" target="_blank"><sub><img src="/docs/assets/images/icon/kali-linux.svg" width="16" height="16"></sub></a>&nbsp;Kali Linux</td>
<td><a href="https://www.kali.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/kali-linux.png" width="16" height="16"></sub></a>&nbsp;Kali Linux</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://linuxmint.com" target="_blank"><sub><img src="/docs/assets/images/icon/linux-mint.ico" width="16" height="16"></sub></a>&nbsp;Linux Mint</td>
<td><a href="https://linuxmint.com" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/linux-mint.ico" width="16" height="16"></sub></a>&nbsp;Linux Mint</td>
<td align="center">19 ~ 22 / LMDE 6</td>
</tr>
<tr>
<td><a href="https://www.deepin.org" target="_blank"><sub><img src="/docs/assets/images/icon/deepin.png" width="16" height="16"></sub></a>&nbsp;Deepin</td>
<td><a href="https://www.deepin.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/deepin.png" width="16" height="16"></sub></a>&nbsp;Deepin</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://zorin.com/os" target="_blank"><sub><img src="/docs/assets/images/icon/zorin-os.png" width="16" height="16"></sub></a>&nbsp;Zorin OS</td>
<td><a href="https://zorin.com/os" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/zorin-os.png" width="16" height="16"></sub></a>&nbsp;Zorin OS</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://www.armbian.org" target="_blank"><sub><img src="/docs/assets/images/icon/armbian.png" width="16" height="16"></sub></a>&nbsp;Armbian</td>
<td><a href="https://www.armbian.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/armbian.png" width="16" height="16"></sub></a>&nbsp;Armbian</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank"><sub><img src="/docs/assets/images/icon/proxmox.svg" width="16" height="16"></sub></a>&nbsp;Proxmox VE</td>
<td><a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/proxmox.svg" width="16" height="16"></sub></a>&nbsp;Proxmox VE</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://www.raspberrypi.com/software" target="_blank"><sub><img src="/docs/assets/images/icon/raspberry-pi.png" width="16" height="16"></sub></a>&nbsp;Raspberry Pi OS</td>
<td><a href="https://www.raspberrypi.com/software" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/raspberry-pi.png" width="16" height="16"></sub></a>&nbsp;Raspberry Pi OS</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><sub><img src="/docs/assets/images/icon/redhat.svg" width="16" height="16"></sub></a>&nbsp;Red Hat Enterprise Linux</td>
<td><a href="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/redhat.svg" width="16" height="16"></sub></a>&nbsp;Red Hat Enterprise Linux</td>
<td align="center">7 ~ 10</td>
</tr>
<tr>
<td><a href="https://fedoraproject.org" target="_blank"><sub><img src="/docs/assets/images/icon/fedora.ico" width="16" height="16"></sub></a>&nbsp;Fedora</td>
<td><a href="https://fedoraproject.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/fedora.ico" width="16" height="16"></sub></a>&nbsp;Fedora</td>
<td align="center">30 ~ 42</td>
</tr>
<tr>
<td><a href="https://www.centos.org" target="_blank"><sub><img src="/docs/assets/images/icon/centos.svg" width="16" height="16"></sub></a>&nbsp;CentOS</td>
<td><a href="https://www.centos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/centos.svg" width="16" height="16"></sub></a>&nbsp;CentOS</td>
<td align="center">7 ~ 8 / Stream 8 ~ 10</td>
</tr>
<tr>
<td><a href="https://rockylinux.org" target="_blank"><sub><img src="/docs/assets/images/icon/rocky-linux.svg" width="16" height="16"></sub></a>&nbsp;Rocky Linux</td>
<td><a href="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/rocky-linux.svg" width="16" height="16"></sub></a>&nbsp;Rocky Linux</td>
<td align="center">8 ~ 10</td>
</tr>
<tr>
<td><a href="https://almalinux.org" target="_blank"><sub><img src="/docs/assets/images/icon/almalinux.svg" width="16" height="16"></sub></a>&nbsp;AlmaLinux</td>
<td><a href="https://almalinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/almalinux.svg" width="16" height="16"></sub></a>&nbsp;AlmaLinux</td>
<td align="center">8 ~ 10</td>
</tr>
<tr>
<td><a href="https://www.oracle.com/linux" target="_blank"><sub><img src="/docs/assets/images/icon/oracle-linux.png" width="16" height="16"></sub></a>&nbsp;Oracle Linux</td>
<td><a href="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/oracle-linux.png" width="16" height="16"></sub></a>&nbsp;Oracle Linux</td>
<td align="center">8 ~ 10</td>
</tr>
<tr>
<td><a href="https://www.openeuler.org/zh" target="_blank"><sub><img src="/docs/assets/images/icon/openeuler.ico" width="16" height="16"></sub></a>&nbsp;openEuler</td>
<td><a href="https://www.openeuler.org/zh" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/openeuler.ico" width="16" height="16"></sub></a>&nbsp;openEuler</td>
<td align="center">20 ~ 25</td>
</tr>
<tr>
<td><a href="https://www.opencloudos.org" target="_blank"><sub><img src="/docs/assets/images/icon/opencloudos.png" width="16" height="16"></sub></a>&nbsp;OpenCloudOS</td>
<td><a href="https://www.opencloudos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/opencloudos.png" width="16" height="16"></sub></a>&nbsp;OpenCloudOS</td>
<td align="center">8.6 ~ 9 / Stream 23</td>
</tr>
<tr>
<td><a href="https://www.openkylin.top" target="_blank"><sub><img src="/docs/assets/images/icon/openkylin.ico" width="16" height="16"></sub></a>&nbsp;openKylin</td>
<td><a href="https://www.openkylin.top" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/openkylin.ico" width="16" height="16"></sub></a>&nbsp;openKylin</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://openanolis.cn" target="_blank"><sub><img src="/docs/assets/images/icon/anolis.png" width="16" height="16"></sub></a>&nbsp;Anolis OS</td>
<td><a href="https://openanolis.cn" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/anolis.png" width="16" height="16"></sub></a>&nbsp;Anolis OS</td>
<td align="center">8 / 23</td>
</tr>
<tr>
<td><a href="https://www.opensuse.org" target="_blank"><sub><img src="/docs/assets/images/icon/opensuse.svg" width="16" height="16"></sub></a>&nbsp;openSUSE</td>
<td><a href="https://www.opensuse.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/opensuse.svg" width="16" height="16"></sub></a>&nbsp;openSUSE</td>
<td align="center">Leap 15 ~ 16 / Tumbleweed</td>
</tr>
<tr>
<td><a href="https://archlinux.org" target="_blank"><sub><img src="/docs/assets/images/icon/arch-linux.ico" width="16" height="16"></sub></a>&nbsp;Arch Linux</td>
<td><a href="https://archlinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/arch-linux.ico" width="16" height="16"></sub></a>&nbsp;Arch Linux</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://manjaro.org" target="_blank"><sub><img src="/docs/assets/images/icon/manjaro.svg" width="16" height="16"></sub></a>&nbsp;Manjaro</td>
<td><a href="https://manjaro.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/manjaro.svg" width="16" height="16"></sub></a>&nbsp;Manjaro</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://www.alpinelinux.org" target="_blank"><sub><img src="/docs/assets/images/icon/alpine.png" width="16" height="16"></sub></a>&nbsp;Alpine Linux</td>
<td><a href="https://www.alpinelinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/alpine.png" width="16" height="16"></sub></a>&nbsp;Alpine Linux</td>
<td align="center">v3 / edge</td>
</tr>
<tr>
<td><a href="https://www.gentoo.org" target="_blank"><sub><img src="/docs/assets/images/icon/gentoo.svg" width="16" height="16"></sub></a>&nbsp;Gentoo</td>
<td><a href="https://www.gentoo.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/gentoo.svg" width="16" height="16"></sub></a>&nbsp;Gentoo</td>
<td align="center">all</td>
</tr>
<tr>
<td><a href="https://nixos.org" target="_blank"><sub><img src="/docs/assets/images/icon/nixos.svg" width="16" height="16"></sub></a>&nbsp;NixOS</td>
<td><a href="https://nixos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/nixos.svg" width="16" height="16"></sub></a>&nbsp;NixOS</td>
<td align="center">19 ~ 25</td>
</tr>
</table>
@@ -151,37 +151,37 @@
## 快速開始
> 項目官方網站整合了 AI 聊天與搜索,更多使用方法詳見 [**linuxmirrors.cn**](https://linuxmirrors.cn/zh-Hant/use/)
> 專案官方網站整合了 AI 聊天與搜索,更多使用方法詳見 [**linuxmirrors.cn**](https://linuxmirrors.cn/zh-Hant/use/)
- ### GNU/Linux 更換系統軟體源
```bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh)
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --zh-hant
```
- ### Docker 安裝與換源
```bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh)
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --zh-hant
```
- ### Docker 更換鏡像加速器
```bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --only-registry
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --zh-hant --only-registry
```
## 特別感謝
<a href="https://www.jetbrains.com" style="text-decoration: none;"><picture><source media="(prefers-color-scheme: dark)" srcset="/docs/assets/images/icon/jetbrains-dark.svg" width="140" height="50"><img src="/docs/assets/images/icon/jetbrains-light.svg" alt="jetbrains" width="140" height="50"></picture></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://www.netlify.com" style="text-decoration: none;"><picture><source media="(prefers-color-scheme: dark)" srcset="/docs/assets/images/icon/netlify-dark.png" width="110"><img src="/docs/assets/images/icon/netlify-light.png" alt="netlify" width="110"></picture></a>
項目已加入 JetBrains & Netlify 開源項目計劃
專案已加入 JetBrains & Netlify 開源專案計劃
## LICENSE
Copyright © 2025, [SuperManito](https://github.com/SuperManito). Released under the [MIT](https://github.com/SuperManito/LinuxMirrors/blob/main/LICENSE).
這是一個完全開源的項目,旨在為從事電腦相關行業的朋友提供便利,使換源更簡單
這是一個完全開源的專案,旨在為從事電腦相關行業的朋友提供便利,使換源更簡單
<a href="https://star-history.com/#SuperManito/LinuxMirrors&Date">
<picture>
@@ -191,4 +191,4 @@ Copyright © 2025, [SuperManito](https://github.com/SuperManito). Released under
</picture>
</a>
__如果您覺得這個項目不錯對您有幫助的話,請點擊倉庫右上角的 ⭐ 並分享給更多的朋友。__
__如果您覺得這個專案不錯對您有幫助的話,請點擊倉庫右上角的 ⭐ 並分享給更多的朋友。__

18
SECURITY.md Normal file
View File

@@ -0,0 +1,18 @@
# Security Policy
## Supported Versions
Use this section to tell people about which versions of your project are
currently being supported with security updates.
| Version | Supported |
| ------- | ------------------ |
| all | :white_check_mark: |
## Reporting a Vulnerability
Use this section to tell people how to report a vulnerability.
Tell them where to go, how often they can expect to get an update on a
reported vulnerability, what to expect if the vulnerability is accepted or
declined, etc.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

@@ -1 +0,0 @@
<svg viewBox="0 0 519.36 293.65" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="m478.2 30.541c-1.708-.45694-3.4119-.54087-5.1767-.54087h-427.93c-6.4231.050078-12.061 4.1054-14.195 10.144-.69747 1.9633-.90029 3.9505-.90029 6.0098v202.42c.23751 8.4346 6.8365 15.012 15.194 15.033 17.519.0232 53.594-.0631 53.594-.0631l-.06358-15.665h-52.62c-.27926-1.6828-.20829-199.78.06358-200.69 1.6119-.225 425.79-.1438 426.72.07426.25653 1.5279.1824 199.65-.0982 200.69h-354.74v15.667s1.3845 0 2.0182.0232h354.25c6.3531-.0631 11.982-4.0483 14.147-10.038.69741-1.9079.89785-3.8747.89785-5.886v-202.8c-.13354-6.6996-4.6932-12.585-11.143-14.365zm-360.14 174.01v-40.513c0-.91374.25653-1.5554 1.0028-2.1347 3.129-2.4743 6.2158-5.019 9.3034-7.5448.30803-.22871.60752-.43189.99168-.71223.33308.4305.61322.78284.87185 1.1699 5.2486 7.5722 10.501 15.136 15.746 22.696 6.4361 9.3128 12.883 18.583 19.306 27.852.35674.53803.68407.94598 1.475.94598 6.7627-.0232 13.519-.0232 20.273-.0232.22361 0 .4537-.0743.80993-.15494-14.956-21.781-29.85-43.412-44.79-65.174 3.0057-3.4891 5.9134-6.8472 8.8178-10.288 2.912-3.3691 5.8136-6.7497 8.7208-10.142 2.9029-3.3839 5.7849-6.7734 8.6954-10.161 2.9045-3.3952 5.8136-6.7826 8.6851-10.168 2.8915-3.3601 5.7622-6.7219 8.8271-10.347h-1.704c-6.1202 0-12.237.03707-18.358-.0232-1.1253 0-1.835.32611-2.5775 1.1995-15.036 17.806-30.108 35.614-45.178 53.399-.19994.22776-.45973.43188-.89398.83223v-44.294c0-3.6662.0631-7.3435 0-11.012h-18.909v116.15c1.5011.2635 17.926.20969 18.939-.0631v-1.4778zm100.96 1.681c.15215-.43977.32612-.81748.45878-1.2267 3.0557-8.6814 6.1147-17.348 9.1787-26.037.50973-1.3965 1.0166-2.8008 1.4772-4.2031.18231-.58535.48083-.89161 1.0981-.81748.19994.0232.43236 0 .6355 0h43.136c3.8993 10.803 7.7716 21.529 11.629 32.255h20.193c-14.567-39.029-29.072-77.903-43.549-116.77h-20.649c-.1327.25469-.2301.44024-.28254.61435-14.377 38.551-28.737 77.119-43.109 115.66-.0631.0631-.0631.18231-.0631.25654v.1234c0 .0501.0631.0743.0743.1322h19.734zm17.457-50.036c3.9768-11.515 8.0101-22.979 11.885-34.526 1.5549-4.6404 2.7269-9.4269 4.0507-14.159.11181-.3586.18231-.7185.33309-1.2583.19994.30524.35627.49141.41055.69246 3.1587 11.794 7.4766 23.237 11.398 34.807 1.6288 4.8139 3.3157 9.5985 4.9739 14.415.12618.43097.25097.86203.40405 1.3949h-33.882c.15123-.50194.27927-.93364.42586-1.3654zm102.24-57.278c0-3.0077.11083-5.988-.0868-8.9671h-18.675c-.31545 1.4523-.23845 115.33.0631 116.29h68.021v-16.18h-32.812c-2.7584 0-5.5385.0232-8.2848 0-2.7069-.0232-5.4025.0993-8.2101-.0631v-91.058zm81.201-8.2513c0-.18045 0-.33029-.0626-.51752 0-.05008-.0626-.06309-.0626-.09881 0-.0232-.0749-.06309-.0749-.06309h-18.739v116.22h18.838c.0626-.19531.11047-.29922.11047-.43097v-115.11z" fill="#367bf0" fill-rule="evenodd" stroke-width="1.2274"/></svg>

Before

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><svg id="_图层_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 198.425 198.425"><defs><style>.cls-1{fill:#0085d0;}.cls-2{fill:#8fc31f;}</style></defs><path class="cls-1" d="m172.518,84.013c-8.748-9.716-20.756-15.443-33.812-16.128-15.824-.824-31.025,4.553-42.793,15.149l-24.441,21.933c-4.742,4.256-5.017,11.593-.608,16.192l.744.776,32.811-29.437c9.25-8.329,21.189-12.558,33.62-11.905,9.661.506,18.547,4.745,25.021,11.934s9.76,16.47,9.253,26.131c-1.009,19.246-17.14,34.322-36.726,34.322-6.043,0-11.937-1.46-17.196-4.189-1.356-.703-3.001-.517-4.137.503l-7.843,7.042c8.439,6.067,18.646,9.37,29.176,9.37,26.357,0,48.071-20.373,49.434-46.381.684-13.056-3.757-25.597-12.505-35.312Z"/><path class="cls-2" d="m126.601,111.581l-7.507-7.832c-4.035-4.21-10.683-4.459-15.023-.563l-19.26,17.294c-2.062,1.852-5.221,1.733-7.139-.267l-8.681-9.054,2.619,10.777,7.513,7.836c4.036,4.209,10.683,4.458,15.021.562l19.253-17.288c2.062-1.851,5.22-1.734,7.138.266l6.252,6.517-.187-8.246Z"/><path class="cls-1" d="m126.601,111.581l-32.813,29.433c-9.273,8.35-21.215,12.592-33.619,11.94-19.946-1.045-35.321-18.137-34.275-38.1.493-9.414,4.558-18.141,11.445-24.573,6.145-5.739,13.948-9.106,22.239-9.668,1.662-.113,2.972-1.456,2.995-3.122l.133-9.684c-12.946-.198-25.282,4.705-34.638,13.728-8.343,8.046-13.582,18.851-14.713,30.386-2.739,27.931,18.441,52.289,46.147,53.741,1.057.055,2.11.083,3.161.083,14.657,0,28.629-5.36,39.63-15.266l24.444-21.926c4.743-4.255,5.02-11.592.611-16.192l-.748-.78Z"/><path class="cls-1" d="m172.518,84.013c-8.748-9.716-20.756-15.443-33.812-16.128-15.824-.824-31.025,4.553-42.793,15.149l-24.441,21.933c-4.742,4.256-5.017,11.593-.608,16.192l.744.776,32.811-29.437c9.25-8.329,21.189-12.558,33.62-11.905,9.661.506,18.547,4.745,25.021,11.934s9.76,16.47,9.253,26.131c-1.009,19.246-17.14,34.322-36.726,34.322-6.166,0-12.176-1.52-17.515-4.356-1.165-.619-2.595-.427-3.577.454l-8.083,7.258c8.439,6.067,18.646,9.37,29.176,9.37,26.357,0,48.071-20.373,49.434-46.381.684-13.056-3.757-25.597-12.505-35.312Z"/><path class="cls-1" d="m99.804,32.258c-26.989,0-48.946,21.957-48.946,48.946l4.227-.003c1.847-.364,3.732-.585,5.637-.655,1.603-.059,2.883-1.33,3.04-2.926,1.805-18.296,17.279-32.637,36.042-32.637,19.269,0,35.157,15.057,36.169,34.278l12.708-.67c-1.368-25.982-22.838-46.334-48.877-46.334Z"/><path class="cls-1" d="m71.61,121.935l3.81,3.973c-2.037-3.374-1.436-6.103,2.464-9.602,3.9-3.499-4.063-2.137-4.063-2.137l-2.21,7.765Z"/><path class="cls-1" d="m126.602,111.582l-3.81-3.973c2.037,3.374,1.436,6.103-2.464,9.602-3.9,3.499,4.063,2.137,4.063,2.137l2.21-7.765Z"/></svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -1,3 +1,7 @@
const __p = typeof window !== 'undefined' && window.location && window.location.pathname ? window.location.pathname : ''
const __isZhHant = __p.includes('/zh-Hant')
const __isEn = __p.includes('/en')
// 防抖
function debounce(func, wait) {
let timeout
@@ -24,6 +28,7 @@ const ComponentSystem = {
lastInitTime: 0,
def: componentDef,
debouncedInit: null,
app: null,
}
// 创建组件初始化函数
const initFunc = function () {
@@ -49,6 +54,14 @@ const ComponentSystem = {
component.isInitializing = true
component.lastInitTime = now
try {
if (component.app && typeof component.app.unmount === 'function') {
try {
component.app.unmount()
} catch (err) {
console.error('组件卸载失败', err)
}
component.app = null
}
// 清空容器内容,防止重复初始化
while (component.instance.firstChild) {
component.instance.removeChild(component.instance.firstChild)
@@ -65,6 +78,8 @@ const ComponentSystem = {
App.use(TDesign.default)
// 挂载应用
App.mount(component.instance)
// 保存 app 引用以便后续卸载
component.app = App
// console.log(`组件 ${componentId} 初始化成功`)
// 标记组件已初始化
component.instance.setAttribute('data-initialized', 'true')
@@ -107,6 +122,14 @@ const ComponentSystem = {
if (component) {
component.instance = document.getElementById(componentId)
if (component.instance) {
if (component.app && typeof component.app.unmount === 'function') {
try {
component.app.unmount()
} catch (err) {
console.error('组件初始化失败', err)
}
component.app = null
}
component.instance.removeAttribute('data-initialized')
setTimeout(component.debouncedInit, 300)
}

View File

@@ -1,381 +1,531 @@
// 表格数据
const mirrorsTableData = [
{
name: '阿里云',
officialName: '阿里巴巴开源镜像站',
name: __isZhHant ? '阿里雲' : __isEn ? 'Alibaba Cloud' : '阿里云',
officialName: __isZhHant ? '阿里巴巴開源鏡像站' : __isEn ? 'Alibaba Cloud Open Source Mirror' : '阿里巴巴开源镜像站',
icon: 'alibabacloud.svg',
iconStyle: { verticalAlign: '-0.2em' },
url: 'https://mirrors.aliyun.com',
domain: 'mirrors.aliyun.com',
ipv6: false,
debian: true,
ubuntu: true,
centos: true,
centos_stream: true,
opensuse: true,
archlinux: true,
kalilinux: true,
kali: true,
deepin: true,
rockylinux: 'incompatible',
rocky: 'incompatible',
almalinux: true,
epel: true,
fedora: true,
opencloudos: false,
openeuler: true,
anolis: true,
openkylin: true,
alpinelinux: true,
alpine: true,
armbian: true,
proxmox: false,
linuxmint: true,
gentoo: true,
nix: false,
raspberry: true,
nix_channels: false,
raspberrypi: true,
manjaro: true,
},
{
name: '腾讯云',
officialName: '腾讯软件源',
name: __isZhHant ? '騰訊雲' : __isEn ? 'Tencent Cloud' : '腾讯云',
officialName: __isZhHant ? '騰訊軟體源' : __isEn ? 'Tencent Software Repository' : '腾讯软件源',
icon: 'tencentcloud.ico',
iconStyle: { verticalAlign: '-0.25em' },
url: 'https://mirrors.tencent.com',
domain: 'mirrors.tencent.com',
ipv6: false,
debian: true,
ubuntu: true,
centos: true,
centos_stream: true,
opensuse: true,
archlinux: true,
kalilinux: true,
kali: true,
deepin: false,
rockylinux: true,
rocky: true,
almalinux: true,
epel: true,
fedora: true,
opencloudos: true,
openeuler: true,
anolis: false,
openkylin: false,
alpinelinux: true,
alpine: true,
armbian: false,
proxmox: false,
linuxmint: true,
gentoo: true,
nix: false,
raspberry: false,
nix_channels: false,
raspberrypi: false,
manjaro: false,
},
{
name: '华为云',
officialName: '华为开源镜像站',
name: __isZhHant ? '華為雲' : __isEn ? 'Huawei Cloud' : '华为云',
officialName: __isZhHant ? '華為開源鏡像站' : __isEn ? 'Huawei Open Source Mirror' : '华为开源镜像站',
icon: 'huaweicloud.ico',
iconStyle: { verticalAlign: '-0.15em' },
url: 'https://mirrors.huaweicloud.com',
domain: 'mirrors.huaweicloud.com',
ipv6: false,
debian: true,
ubuntu: true,
centos: true,
centos_stream: true,
opensuse: true,
archlinux: true,
kalilinux: true,
kali: true,
deepin: true,
rockylinux: 'incompatible',
rocky: 'incompatible',
almalinux: true,
epel: true,
fedora: true,
opencloudos: false,
openeuler: true,
anolis: false,
openkylin: false,
alpinelinux: true,
alpine: true,
armbian: false,
proxmox: false,
linuxmint: true,
gentoo: true,
nix: false,
raspberry: false,
nix_channels: false,
raspberrypi: false,
manjaro: true,
},
{
name: '网易',
officialName: '网易开源镜像站',
name: __isZhHant ? '移動雲' : __isEn ? 'China Mobile Cloud' : '移动云 ',
officialName: __isZhHant ? '移動雲開源鏡像站' : __isEn ? 'China Mobile Cloud Open Source Mirror' : '移动云开源镜像站',
icon: 'cmecloud.svg',
iconStyle: { verticalAlign: '-0.2em' },
url: 'https://mirrors.cmecloud.cn',
domain: 'mirrors.cmecloud.cn',
ipv6: true,
debian: true,
ubuntu: true,
centos: true,
centos_stream: false,
opensuse: true,
archlinux: false,
kali: false,
deepin: false,
rocky: true,
almalinux: false,
epel: true,
fedora: true,
opencloudos: false,
openeuler: true,
anolis: true,
openkylin: false,
alpine: false,
armbian: false,
proxmox: false,
linuxmint: false,
gentoo: false,
nix_channels: false,
raspberrypi: false,
manjaro: false,
},
{
name: __isZhHant ? '天翼雲' : __isEn ? 'China Telecom Cloud' : '天翼云',
officialName: __isZhHant ? '天翼雲開源鏡像站' : __isEn ? 'China Telecom Cloud Open Source Mirror' : '天翼云开源镜像站',
icon: 'ctyun.ico',
iconStyle: { verticalAlign: '-0.2em' },
url: 'https://mirrors.ctyun.cn',
domain: 'mirrors.ctyun.cn',
ipv6: false,
debian: true,
ubuntu: true,
centos: true,
centos_stream: true,
opensuse: false,
archlinux: false,
kali: false,
deepin: false,
rocky: true,
almalinux: false,
epel: true,
fedora: false,
opencloudos: false,
openeuler: true,
anolis: false,
openkylin: false,
alpine: false,
armbian: false,
proxmox: false,
linuxmint: false,
gentoo: false,
nix_channels: false,
raspberrypi: false,
manjaro: false,
},
{
name: __isZhHant ? '網易' : __isEn ? 'NetEase' : '网易',
officialName: __isZhHant ? '網易開源鏡像站' : __isEn ? 'NetEase Open Source Mirror' : '网易开源镜像站',
icon: '163.ico',
iconStyle: { verticalAlign: '-0.15em' },
url: 'https://mirrors.163.com',
domain: 'mirrors.163.com',
ipv6: false,
debian: true,
ubuntu: true,
centos: true,
centos_stream: true,
opensuse: true,
archlinux: true,
kalilinux: false,
kali: false,
deepin: true,
rockylinux: true,
rocky: true,
almalinux: false,
epel: false,
fedora: true,
opencloudos: false,
openeuler: true,
anolis: false,
openkylin: true,
alpinelinux: false,
alpine: false,
armbian: false,
proxmox: false,
linuxmint: true,
gentoo: true,
nix: false,
raspberry: false,
nix_channels: false,
raspberrypi: false,
manjaro: false,
},
{
name: '火山引擎',
officialName: '火山引擎开源软件镜像站',
name: __isZhHant ? '火山引擎' : __isEn ? 'Volcengine' : '火山引擎',
officialName: __isZhHant ? '火山引擎開源軟體鏡像站' : __isEn ? 'Volcengine Open Source Software Mirror' : '火山引擎开源软件镜像站',
icon: 'volcengine.svg',
iconStyle: { verticalAlign: '-0.25em' },
url: 'https://developer.volcengine.com/mirror',
domain: 'mirrors.volces.com',
ipv6: false,
debian: true,
ubuntu: true,
centos: true,
centos_stream: true,
opensuse: true,
archlinux: false,
kalilinux: true,
kali: true,
deepin: true,
rockylinux: 'incompatible',
rocky: 'incompatible',
almalinux: true,
epel: true,
fedora: true,
opencloudos: false,
openeuler: true,
anolis: false,
openkylin: false,
alpinelinux: true,
alpine: true,
armbian: false,
proxmox: false,
linuxmint: false,
gentoo: false,
nix: false,
raspberry: false,
nix_channels: false,
raspberrypi: false,
manjaro: false,
},
{
name: '清华大学',
officialName: '清华大学开源软件镜像站',
name: __isZhHant ? '清華大學' : __isEn ? 'Tsinghua University' : '清华大学',
officialName: __isZhHant ? '清華大學開源軟體鏡像站' : __isEn ? 'Tsinghua University Open Source Mirror' : '清华大学开源软件镜像站',
icon: 'tsinghua.png',
iconStyle: { verticalAlign: '-0.3em' },
url: 'https://mirrors.tuna.tsinghua.edu.cn',
domain: 'mirrors.tuna.tsinghua.edu.cn',
ipv6: true,
debian: true,
ubuntu: true,
centos: true,
centos_stream: true,
opensuse: true,
archlinux: true,
kalilinux: true,
kali: true,
deepin: true,
rockylinux: false,
rocky: false,
almalinux: false,
epel: true,
fedora: true,
opencloudos: false,
openeuler: true,
anolis: false,
openkylin: false,
alpinelinux: true,
alpine: true,
armbian: true,
proxmox: true,
linuxmint: true,
gentoo: true,
nix: true,
raspberry: true,
nix_channels: true,
raspberrypi: true,
manjaro: true,
},
{
name: '北京大学',
officialName: '北京大学开源镜像站',
name: __isZhHant ? '北京大學' : __isEn ? 'Peking University' : '北京大学',
officialName: __isZhHant ? '北京大學開源鏡像站' : __isEn ? 'Peking University Open Source Mirror' : '北京大学开源镜像站',
icon: 'pku.ico',
iconStyle: { verticalAlign: '-0.2em' },
url: 'https://mirrors.pku.edu.cn/Mirrors',
domain: 'mirrors.pku.edu.cn',
ipv6: true,
debian: true,
ubuntu: true,
centos: true,
centos_stream: true,
opensuse: true,
archlinux: true,
kalilinux: false,
kali: false,
deepin: false,
rockylinux: true,
rocky: true,
almalinux: true,
epel: true,
fedora: false,
opencloudos: false,
openeuler: true,
anolis: false,
openkylin: false,
alpinelinux: false,
alpine: false,
armbian: false,
proxmox: false,
linuxmint: false,
gentoo: false,
nix: false,
raspberry: false,
nix_channels: false,
raspberrypi: false,
manjaro: true,
},
{
name: '浙江大学',
officialName: '浙江大学镜像站',
name: __isZhHant ? '浙江大學' : __isEn ? 'Zhejiang University' : '浙江大学',
officialName: __isZhHant ? '浙江大學鏡像站' : __isEn ? 'Zhejiang University Mirror Site' : '浙江大学镜像站',
icon: 'zju.ico',
iconStyle: { verticalAlign: '-0.15em' },
url: 'https://mirrors.zju.edu.cn',
domain: 'mirrors.zju.edu.cn',
ipv6: true,
debian: true,
ubuntu: true,
centos: true,
centos_stream: true,
opensuse: true,
archlinux: true,
kalilinux: true,
kali: true,
deepin: true,
rockylinux: true,
rocky: true,
almalinux: true,
epel: true,
fedora: true,
opencloudos: false,
openeuler: true,
anolis: true,
openkylin: false,
alpinelinux: true,
alpine: true,
armbian: false,
proxmox: false,
linuxmint: true,
gentoo: true,
nix: false,
raspberry: false,
nix_channels: false,
raspberrypi: false,
manjaro: true,
},
{
name: '南京大学',
officialName: '南京大学开源镜像站',
name: __isZhHant ? '南京大學' : __isEn ? 'Nanjing University' : '南京大学',
officialName: __isZhHant ? '南京大學開源鏡像站' : __isEn ? 'Nanjing University Open Source Mirror' : '南京大学开源镜像站',
icon: 'nju.ico',
iconStyle: { verticalAlign: '-0.3em' },
url: 'https://mirrors.nju.edu.cn',
domain: 'mirrors.nju.edu.cn',
ipv6: true,
debian: true,
ubuntu: true,
centos: true,
centos_stream: true,
opensuse: true,
archlinux: true,
kalilinux: true,
kali: true,
deepin: true,
rockylinux: true,
rocky: true,
almalinux: true,
epel: true,
fedora: true,
opencloudos: true,
openeuler: true,
anolis: true,
openkylin: true,
alpinelinux: true,
alpine: true,
armbian: true,
proxmox: true,
linuxmint: true,
gentoo: true,
nix: true,
raspberry: true,
nix_channels: true,
raspberrypi: true,
manjaro: true,
},
{
name: '兰州大学',
officialName: '兰州大学开源软件镜像站',
name: __isZhHant ? '蘭州大學' : __isEn ? 'Lanzhou University' : '兰州大学',
officialName: __isZhHant ? '蘭州大學開源軟體鏡像站' : __isEn ? 'Lanzhou University Open Source Software Mirror' : '兰州大学开源软件镜像站',
icon: 'lzu.png',
iconStyle: { verticalAlign: '-0.25em' },
url: 'https://mirror.lzu.edu.cn',
domain: 'mirror.lzu.edu.cn',
ipv6: true,
debian: true,
ubuntu: true,
centos: true,
centos_stream: true,
opensuse: true,
archlinux: true,
kalilinux: true,
kali: true,
deepin: true,
rockylinux: true,
rocky: true,
almalinux: true,
epel: true,
fedora: true,
opencloudos: false,
openeuler: true,
anolis: false,
openkylin: true,
alpinelinux: true,
alpine: true,
armbian: false,
proxmox: false,
linuxmint: true,
gentoo: true,
nix: false,
raspberry: false,
nix_channels: false,
raspberrypi: false,
manjaro: true,
},
{
name: '上海交通大学',
officialName: '上海交通大学思源镜像站',
name: __isZhHant ? '上海交通大學' : __isEn ? 'Shanghai Jiao Tong University' : '上海交通大学',
officialName: __isZhHant ? '上海交通大學思源鏡像站' : __isEn ? 'Shanghai Jiao Tong University Siyuan Mirror' : '上海交通大学思源镜像站',
icon: 'sjtu.ico',
iconStyle: { verticalAlign: '-0.15em' },
url: 'https://mirror.sjtu.edu.cn',
domain: 'mirror.sjtu.edu.cn',
ipv6: true,
debian: true,
ubuntu: true,
centos: true,
centos_stream: true,
opensuse: true,
archlinux: true,
kalilinux: true,
kali: true,
deepin: true,
rockylinux: true,
rocky: true,
almalinux: true,
epel: true,
epel: 'incompatible',
fedora: 'incompatible',
opencloudos: true,
openeuler: true,
anolis: false,
openkylin: true,
alpinelinux: true,
alpine: true,
armbian: true,
proxmox: false,
linuxmint: true,
gentoo: true,
nix: false,
raspberry: true,
nix_channels: false,
raspberrypi: true,
manjaro: true,
},
{
name: '重庆邮电大学',
officialName: '重庆邮电大学开源镜像站',
name: __isZhHant ? '重慶郵電大學' : __isEn ? 'Chongqing University of Posts and Telecommunications' : '重庆邮电大学',
officialName: __isZhHant ? '重慶郵電大學開源鏡像站' : __isEn ? 'Chongqing University of Posts and Telecommunications Open Source Mirror' : '重庆邮电大学开源镜像站',
icon: 'cqupt.ico',
iconStyle: {},
url: 'https://mirrors.cqupt.edu.cn',
domain: 'mirrors.cqupt.edu.cn',
ipv6: true,
debian: true,
ubuntu: true,
centos: true,
centos_stream: true,
opensuse: true,
archlinux: true,
kalilinux: true,
kali: true,
deepin: true,
rockylinux: false,
rocky: false,
almalinux: true,
epel: true,
fedora: true,
opencloudos: false,
openeuler: true,
anolis: false,
openkylin: false,
alpinelinux: true,
alpine: true,
armbian: true,
proxmox: true,
linuxmint: false,
gentoo: false,
nix: true,
raspberry: true,
nix_channels: true,
raspberrypi: true,
manjaro: true,
},
{
name: '中国科学技术大学',
officialName: '中国科学技术大学开源软件镜像站',
name: __isZhHant ? '中國科學技術大學' : __isEn ? 'University of Science and Technology of China' : '中国科学技术大学',
officialName: __isZhHant ? '中國科學技術大學開源軟體鏡像站' : __isEn ? 'University of Science and Technology of China Open Source Software Mirror' : '中国科学技术大学开源软件镜像站',
icon: 'ustc.png',
iconStyle: { verticalAlign: '-0.2em' },
url: 'https://mirrors.ustc.edu.cn',
domain: 'mirrors.ustc.edu.cn',
ipv6: true,
debian: true,
ubuntu: true,
centos: true,
centos_stream: true,
opensuse: true,
archlinux: true,
kalilinux: true,
kali: true,
deepin: true,
rockylinux: true,
rocky: true,
almalinux: false,
epel: true,
fedora: true,
opencloudos: false,
openeuler: true,
anolis: false,
openkylin: false,
alpinelinux: true,
alpine: true,
armbian: true,
proxmox: true,
linuxmint: true,
gentoo: true,
nix: true,
raspberry: true,
nix_channels: true,
raspberrypi: true,
manjaro: true,
},
{
name: '中国科学院软件研究所',
officialName: 'ISCAS 开源镜像站',
name: __isZhHant ? '中國科學院軟體研究所' : __isEn ? 'Institute of Software, Chinese Academy of Sciences (ISCAS)' : '中国科学院软件研究所',
officialName: __isZhHant ? 'ISCAS 開源鏡像站' : __isEn ? 'ISCAS Open Source Mirror' : 'ISCAS 开源镜像站',
icon: 'iscas.png',
iconStyle: { verticalAlign: '-0.25em' },
url: 'https://mirror.iscas.ac.cn',
domain: 'mirror.iscas.ac.cn',
ipv6: false,
debian: true,
ubuntu: true,
centos: true,
centos_stream: true,
opensuse: true,
archlinux: true,
kalilinux: true,
kali: true,
deepin: true,
rockylinux: true,
rocky: true,
almalinux: true,
epel: true,
fedora: true,
opencloudos: true,
openeuler: true,
anolis: false,
openkylin: true,
alpinelinux: true,
alpine: true,
armbian: true,
proxmox: true,
linuxmint: true,
gentoo: true,
nix: true,
raspberry: true,
nix_channels: true,
raspberrypi: true,
manjaro: true,
},
]
@@ -384,7 +534,7 @@ const mirrorsTableData = [
const mirrorsTableColumns = [
{
colKey: 'name',
title: !window.location.pathname.includes('/zh-Hant') ? '镜像站' : '像站',
title: __isZhHant ? '鏡像站' : __isEn ? 'Mirror Site' : '像站',
align: 'left',
width: '180',
fixed: 'left',
@@ -400,7 +550,37 @@ const mirrorsTableColumns = [
title: 'EPEL',
align: 'center',
width: '90',
tooltip: !window.location.pathname.includes('/zh-Hant') ? 'EPEL (Extra Packages for Enterprise Linux) 是由 Fedora 组织维护的一附加软件包仓库,它主要适用于除 Fedora 操作系统以外的帽系 Linux 行版' : 'EPEL (Extra Packages for Enterprise Linux) 是由 Fedora 組織維護的一附加軟體包倉庫,它主要適用於除 Fedora 作業系統以外的帽系 Linux 行版',
tooltip: 'EPEL (Extra Packages for Enterprise Linux) ' + (__isZhHant ? '是由 Fedora 組織維護的一附加軟體包倉庫,它主要適用於除 Fedora 作業系統以外的帽系 Linux 行版' : __isEn ? 'is an additional package repository maintained by the Fedora organization. It is mainly applicable to Red Hat Linux distributions other than the Fedora operating system.' : '是由 Fedora 组织维护的一附加软件包仓库,它主要适用于除 Fedora 操作系统以外的帽系 Linux 行版'),
},
// {
// colKey: 'debian',
// title: 'Debian',
// align: 'center',
// width: '80',
// },
// {
// colKey: 'ubuntu',
// title: 'Ubuntu',
// align: 'center',
// width: '80',
// },
// {
// colKey: 'centos',
// title: 'CentOS',
// align: 'center',
// width: '80',
// },
{
colKey: 'centos_stream',
title: 'CentOS Stream',
align: 'center',
width: '150',
},
{
colKey: 'opensuse',
title: 'openSUSE',
align: 'center',
width: '110',
},
{
colKey: 'archlinux',
@@ -415,7 +595,7 @@ const mirrorsTableColumns = [
width: '100',
},
{
colKey: 'kalilinux',
colKey: 'kali',
title: 'Kali Linux',
align: 'center',
width: '110',
@@ -433,7 +613,7 @@ const mirrorsTableColumns = [
width: '90',
},
{
colKey: 'raspberry',
colKey: 'raspberrypi',
title: 'Raspberry Pi OS',
align: 'center',
width: '150',
@@ -457,7 +637,7 @@ const mirrorsTableColumns = [
width: '90',
},
{
colKey: 'rockylinux',
colKey: 'rocky',
title: 'Rocky Linux',
align: 'center',
width: '120',
@@ -474,6 +654,12 @@ const mirrorsTableColumns = [
align: 'center',
width: '140',
},
// {
// colKey: 'openeuler',
// title: 'openEuler',
// align: 'center',
// width: '110',
// },
{
colKey: 'anolis',
title: 'Anolis OS',
@@ -487,7 +673,7 @@ const mirrorsTableColumns = [
width: '110',
},
{
colKey: 'alpinelinux',
colKey: 'alpine',
title: 'Alpine Linux',
align: 'center',
width: '130',
@@ -499,25 +685,197 @@ const mirrorsTableColumns = [
width: '90',
},
{
colKey: 'nix',
colKey: 'nix_channels',
title: 'NixOS',
align: 'center',
width: '80',
},
].map((item) => {
if (['ipv6', 'epel', 'archlinux', 'manjaro', 'kalilinux', 'armbian', 'deepin', 'raspberry', 'linuxmint', 'proxmox', 'fedora', 'rockylinux', 'almalinux', 'opencloudos', 'anolis', 'openkylin', 'alpinelinux', 'gentoo', 'nix'].includes(item.colKey)) {
item.sortType = 'all'
item.sorter = (a, b) => {
const getValue = (row) => {
if (typeof row[item.colKey] === 'boolean') {
return row[item.colKey] ? 0 : 1
if (['ipv6', 'debian', 'ubuntu', 'centos', 'centos_stream', 'opensuse', 'epel', 'archlinux', 'manjaro', 'kali', 'armbian', 'deepin', 'raspberrypi', 'linuxmint', 'proxmox', 'fedora', 'rocky', 'almalinux', 'opencloudos', 'openeuler', 'anolis', 'openkylin', 'alpine', 'gentoo', 'nix_channels'].includes(item.colKey)) {
const labelSupported = __isZhHant ? '支持' : __isEn ? 'Supported' : '支持'
const labelUnsupported = __isZhHant ? '不支持' : __isEn ? 'Unsupported' : '不支持'
const labelIncompatible = __isZhHant ? '不兼容' : __isEn ? 'Incompatible' : '不兼容'
item.filter = {
label: item.title || item.colKey,
type: 'single',
list: [
{ label: labelSupported, value: 'supported' },
{ label: labelUnsupported, value: 'unsupported' },
{ label: labelIncompatible, value: 'incompatible' },
],
confirmEvents: ['onChange'],
filterMethod(value, row) {
try {
const key = item.colKey
const cell = row && Object.prototype.hasOwnProperty.call(row, key) ? row[key] : undefined
if (value === 'supported') return cell === true
if (value === 'unsupported') return cell === false
if (value === 'incompatible') return cell === 'incompatible'
return false
} catch (e) {
return false
}
return 2
},
}
item.filterMethod = function (value, row) {
try {
const key = item.colKey
const cell = row && Object.prototype.hasOwnProperty.call(row, key) ? row[key] : undefined
if (value === 'supported') return cell === true
if (value === 'unsupported') return cell === false
if (value === 'incompatible') return cell === 'incompatible'
return false
} catch (e) {
return false
}
const aValue = getValue(a)
const bValue = getValue(b)
return aValue - bValue
}
}
return item
})
const mirrorsTableFilterSelectOptions = [
{ label: __isZhHant ? '全選' : __isEn ? 'Select All' : '全选', checkAll: true },
{
value: 'ipv6',
label: 'IPv6',
},
{
group: 'Debian',
children: [
// {
// value: 'debian',
// label: 'Debian',
// iconName: 'debian.svg',
// },
// {
// value: 'ubuntu',
// label: 'Ubuntu',
// iconName: 'ubuntu.svg',
// },
{
value: 'kali',
label: 'Kali Linux',
iconName: 'kali-linux.png',
},
{
value: 'armbian',
label: 'Armbian',
iconName: 'armbian.png',
},
{
value: 'raspberrypi',
label: 'Raspberry Pi OS',
iconName: 'raspberry-pi.png',
},
{
value: 'openkylin',
label: 'openKylin',
iconName: 'openkylin.ico',
},
{
value: 'linuxmint',
label: 'Linux Mint',
iconName: 'linux-mint.ico',
},
{
value: 'deepin',
label: 'Deepin',
iconName: 'deepin.png',
},
{
value: 'proxmox',
label: 'Proxmox VE',
iconName: 'proxmox.svg',
},
],
},
{
group: 'RedHat',
children: [
{
value: 'fedora',
label: 'Fedora',
iconName: 'fedora.ico',
},
// {
// value: 'centos',
// label: 'CentOS',
// iconName: 'centos.svg',
// },
{
value: 'centos_stream',
label: 'CentOS Stream',
iconName: 'centos.svg',
},
{
value: 'rocky',
label: 'Rocky Linux',
iconName: 'rocky-linux.svg',
},
{
value: 'almalinux',
label: 'AlmaLinux',
iconName: 'almalinux.svg',
},
// {
// value: 'openeuler',
// label: 'openEuler',
// iconName: 'openeuler.ico',
// },
{
value: 'opencloudos',
label: 'OpenCloudOS',
iconName: 'opencloudos.png',
},
{
value: 'anolis',
label: 'Anolis OS',
iconName: 'anolis.png',
},
{
value: 'epel',
label: 'EPEL',
},
],
},
{
group: 'Arch Linux',
children: [
{
value: 'archlinux',
label: 'Arch Linux',
iconName: 'arch-linux.ico',
},
{
value: 'manjaro',
label: 'Manjaro',
iconName: 'manjaro.svg',
},
],
},
{
group: 'Other',
children: [
{
value: 'opensuse',
label: 'openSUSE',
iconName: 'opensuse.svg',
},
{
value: 'alpine',
label: 'Alpine Linux',
iconName: 'alpine.png',
},
{
value: 'gentoo',
label: 'Gentoo',
iconName: 'gentoo.svg',
},
{
value: 'nix_channels',
label: 'NixOS',
iconName: 'nixos.svg',
},
],
},
]

View File

@@ -1,68 +1,401 @@
ComponentSystem.register('mirrors-table', {
template: `
<div>
<div>
<t-config-provider :global-config="globalConfig">
<t-space v-if="!isMobile" align="center" style="margin-bottom: 8px; gap: 20px">
<blockquote>
<p>{{ startTitle[0] }} <code>Debian</code>、<code>Ubuntu</code>、<code>CentOS</code>、<code>openEuler</code> {{ startTitle[1] }}</p>
</blockquote>
<t-space style="width: 100%">
<t-popup placement="bottom" :show-arrow="false">
<template #content>
<t-checkbox-group v-model="selectedCellStatuses" style="padding: 6px" @change="onCellStatusChange">
<t-space align="start" direction="vertical" style="gap: 4px">
<t-checkbox value="supported">
<t-space align="center" style="gap: 2px">
<t-tag theme="success" variant="light" style="background-color: transparent; vertical-align: -0.35em">
<template #icon>
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="currentColor" d="M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59L21 7Z"></svg>
</template>
</t-tag>
<span>{{ statusLabels.supported }}</span>
</t-space>
</t-checkbox>
<t-checkbox value="unsupported">
<t-space align="center" style="gap: 0">
<t-tag theme="danger" variant="light" style="background-color: transparent; vertical-align: -0.35em">
<template #icon>
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" style="vertical-align: -0.2em"><path fill="currentColor" d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z"></svg>
</template>
</t-tag>
<span>{{ statusLabels.unsupported }}</span>
</t-space>
</t-checkbox>
<t-checkbox value="incompatible">
<t-space align="center" style="gap: 2px">
<t-tag theme="warning" variant="light" style="background-color: transparent; vertical-align: -0.35em">
<svg xmlns="http://www.w3.org/2000/svg" style="margin-left: 2px" width="16" height="16" viewBox="0 0 24 24" style="vertical-align: -0.15em"><path fill="#F6B604" d="M22.11 21.46L2.39 1.73L1.11 3l2.95 2.95A9.95 9.95 0 0 0 2 12c0 5.5 4.5 10 10 10c2.28 0 4.37-.77 6.05-2.06l2.79 2.79l1.27-1.27M12 20c-4.42 0-8-3.58-8-8c0-1.73.56-3.32 1.5-4.62L16.62 18.5A7.78 7.78 0 0 1 12 20M8.17 4.97L6.72 3.5C8.25 2.56 10.06 2 12 2c5.5 0 10 4.5 10 10c0 1.94-.56 3.75-1.5 5.28l-1.47-1.45c.62-1.14.97-2.44.97-3.83c0-4.42-3.58-8-8-8c-1.39 0-2.69.35-3.83.97Z"></svg>
</t-tag>
<span>{{ statusLabels.incompatible }}</span>
</t-space>
</t-checkbox>
</t-space>
</t-checkbox-group>
</template>
<t-button variant="text" shape="circle">
<svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-filter" style="fill: none;"><g id="filter"><path id="fill1" fill="transparent" d="M19.5 4H4.5L10.5 12.5V20H13.5V12.5L19.5 4Z" fill-rule="evenodd" clip-rule="evenodd"></path><path id="stroke1" stroke="currentColor" d="M19.5 4H4.5L10.5 12.5V20H13.5V12.5L19.5 4Z" fill-rule="evenodd" stroke-linecap="square" stroke-width="2" clip-rule="evenodd"></path></g></svg>
</t-button>
</t-popup>
<t-select
v-model="selectedRowFilters"
:options="rowFilterOptionsRendered"
:min-collapsed-num="1"
multiple
clearable
size="large"
:placeholder="rowSelectPlaceholder"
style="min-width: 160px; width: 250px"
@change="onRowFilterChange"
/>
<t-select
v-model="selectedColumnFilters"
:options="filterOptions"
:min-collapsed-num="1"
multiple
clearable
size="large"
:placeholder="selectPlaceholder"
style="min-width: 160px; width: 230px"
@change="onFilterChange"
/>
</div>
</t-space>
<blockquote v-if="isMobile">
<p>{{ startTitle[0] }} <code>Debian</code>、<code>Ubuntu</code>、<code>CentOS</code>、<code>openEuler</code> {{ startTitle[1] }}</p>
</blockquote>
<t-table
:columns="columns"
:data="data"
row-key="name"
size="small"
verticalAlign="bottom"
hover
@data-change="dataChange"
@filter-change="onTableFilterChange"
>
<template v-for="col in columns" :key="col.colKey" #[col.title]>
<div v-if="col.tooltip" class="t-table__th-cell-inner">
<t-space style="gap: 4px">
<span>{{ col.title }}</span>
<t-tooltip :content="col.tooltip" placement="bottom" :show-arrow="false">
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24"><path fill="currentColor" d="M11.95 18q.525 0 .888-.363t.362-.887t-.362-.888t-.888-.362t-.887.363t-.363.887t.363.888t.887.362m.05 4q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m.1-12.3q.625 0 1.088.4t.462 1q0 .55-.337.975t-.763.8q-.575.5-1.012 1.1t-.438 1.35q0 .35.263.588t.612.237q.375 0 .638-.25t.337-.625q.1-.525.45-.937t.75-.788q.575-.55.988-1.2t.412-1.45q0-1.275-1.037-2.087T12.1 6q-.95 0-1.812.4T8.975 7.625q-.175.3-.112.638t.337.512q.35.2.725.125t.625-.425q.275-.375.688-.575t.862-.2"/></svg>
</t-tooltip>
</t-space>
</div>
<div v-else class="t-table__th-cell-inner">{{ col.title }}</div>
</template>
<template v-for="col in columns" :key="col.colKey" #[col.colKey]="{ row }">
<template v-if="col.colKey === 'name'">
<div v-if="col.colKey === 'name'">
<t-popup placement="bottom" :show-arrow="false">
<template #content>
<t-space direction="vertical" algin="center" style="gap: 2px">
<span>{{ row.officialName }}</span>
<a :href="row.url" target="_blank" style="color: var(--md-typeset-a-color)">{{ row.domain }}</a>
<a :href="row.url" target="_blank" rel="noopener noreferrer" style="color: var(--md-typeset-a-color)">{{ row.domain }}</a>
</t-space>
</template>
<a :href="row.url" target="_blank">
<a :href="row.url" target="_blank" rel="noopener noreferrer">
<t-space align="center" style="gap: 6px">
<span style="display: flex; height: 100%; align-items: center; justify-content: center">
<img v-if="row.icon" :src="\`/assets/images/icon/mirrors/\${row.icon}\`" width="16" height="16">
<span style="display: flex; height: 16px; width: 16px; align-items: center; justify-content: center">
<img v-if="row.icon" :src="'/assets/images/icon/mirrors/' + row.icon" width="16" height="16">
</span>
<span>{{ row.name }}</span>
<span style="display: flex; align-items: center; justify-content: center">{{ row.name }}</span>
</t-space>
</a>
</t-popup>
</template>
<template v-else>
<t-tag v-if="typeof row[col.colKey] === 'boolean'" :theme="row[col.colKey] ? 'success' : 'danger'" variant="light" size="small" style="background-color: transparent; height: 100%; vertical-align: -0.35em">
</div>
<div v-else>
<t-tag v-if="typeof row[col.colKey] === 'boolean'" :theme="row[col.colKey] ? 'success' : 'danger'" variant="light" size="small" style="background-color: transparent; height: 26px" style="z-index: 2">
<template #icon>
<svg v-if="row[col.colKey]" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="currentColor" d="M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59L21 7Z"></svg>
<svg v-else xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" style="vertical-align: -0.2em"><path fill="currentColor" d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z"></svg>
<div v-if="row[col.colKey] === true && !['ipv6'].includes(col.colKey) && showSupported">
<t-popup placement="bottom" :show-arrow="false">
<template #content>
<a :href="getMirrorSiteBranchUrl(row.domain, col.colKey)" target="_blank" rel="noopener noreferrer" style="color: var(--md-typeset-a-color)">{{ getMirrorSiteBranchUrl(row.domain, col.colKey) }}</a>
</template>
<a :href="getMirrorSiteBranchUrl(row.domain, col.colKey)" target="_blank" rel="noopener noreferrer" style="color: var(--td-success-color)">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="currentColor" d="M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59L21 7Z"></svg>
</a>
</t-popup>
</div>
<svg v-else-if="row[col.colKey] === true && showSupported" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="currentColor" d="M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59L21 7Z"></svg>
<svg v-else-if="row[col.colKey] === false && showUnsupported" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="currentColor" d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z"></svg>
</template>
</t-tag>
<t-tag v-else theme="warning" variant="light" size="small" style="background-color: transparent; vertical-align: -0.35em">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" style="vertical-align: -0.1em"><path fill="#F6B604" d="M22.11 21.46L2.39 1.73L1.11 3l2.95 2.95A9.95 9.95 0 0 0 2 12c0 5.5 4.5 10 10 10c2.28 0 4.37-.77 6.05-2.06l2.79 2.79l1.27-1.27M12 20c-4.42 0-8-3.58-8-8c0-1.73.56-3.32 1.5-4.62L16.62 18.5A7.78 7.78 0 0 1 12 20M8.17 4.97L6.72 3.5C8.25 2.56 10.06 2 12 2c5.5 0 10 4.5 10 10c0 1.94-.56 3.75-1.5 5.28l-1.47-1.45c.62-1.14.97-2.44.97-3.83c0-4.42-3.58-8-8-8c-1.39 0-2.69.35-3.83.97Z"></svg>
<t-tag v-else theme="warning" variant="light" size="small" style="background-color: transparent; height: 26px">
<template #icon>
<svg v-if="showIncompatible" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="#F6B604" d="M22.11 21.46L2.39 1.73L1.11 3l2.95 2.95A9.95 9.95 0 0 0 2 12c0 5.5 4.5 10 10 10c2.28 0 4.37-.77 6.05-2.06l2.79 2.79l1.27-1.27M12 20c-4.42 0-8-3.58-8-8c0-1.73.56-3.32 1.5-4.62L16.62 18.5A7.78 7.78 0 0 1 12 20M8.17 4.97L6.72 3.5C8.25 2.56 10.06 2 12 2c5.5 0 10 4.5 10 10c0 1.94-.56 3.75-1.5 5.28l-1.47-1.45c.62-1.14.97-2.44.97-3.83c0-4.42-3.58-8-8-8c-1.39 0-2.69.35-3.83.97Z"></svg>
</template>
</t-tag>
</template>
</template>
</t-table>
</div>
`,
</t-config-provider>
</div>
`,
data() {
return {
allColumns: mirrorsTableColumns,
columns: mirrorsTableColumns,
data: mirrorsTableData,
originalData: mirrorsTableData,
data: mirrorsTableData.slice(),
rawFilterOptions: mirrorsTableFilterSelectOptions,
selectedColumnFilters: [],
selectedRowFilters: [],
selectedCellStatuses: ['supported', 'unsupported', 'incompatible'],
activeTableFilters: {},
}
},
created() {
const allKeys = this._flattenFilterKeys(this.filterOptions)
this.selectedColumnFilters = allKeys.slice()
this.selectedRowFilters = Array.isArray(this.originalData) ? this.originalData.map((r) => r.name) : []
this._debouncedUpdateColumns = debounce(this._updateColumns.bind(this), 120)
this._debouncedUpdateRows = debounce(this._updateRows.bind(this), 120)
this._updateColumns()
this._updateRows()
},
computed: {
isMobile() {
return window.matchMedia('(max-width: 768px)').matches
},
localeFlags() {
const p = (window && window.location && window.location.pathname) || ''
return {
isZhHant: p.includes('/zh-Hant'),
isEn: p.includes('/en'),
}
},
startTitle() {
const f = this.localeFlags
return f.isZhHant ? ['下方列表中的鏡像站均同步了', '軟體倉庫,列表根據單位性質、地理位置、名稱長度排序,與實際下載速度無關。'] : f.isEn ? ['All mirror sites in the list below synchronize the', 'software repositories. The list is sorted by institution type, geographic location, and name length, and is not related to actual download speed.'] : ['下方列表中的镜像站均同步了', '软件仓库,列表根据单位性质、地理位置、名称长度进行排序,与实际速度无关。']
},
globalConfig() {
const f = this.localeFlags
return {
animation: { include: ['expand', 'fade'], exclude: [] },
table: f.isZhHant
? {
empty: '\u66AB\u7121\u6578\u64DA',
loadingText: '\u6B63\u5728\u8F09\u5165\u4E2D\uFF0C\u8ACB\u7A0D\u5F8C',
loadingMoreText: '\u9EDE\u64CA\u8F09\u5165\u66F4\u591A',
filterInputPlaceholder: '\u8ACB\u8F38\u5165\u5185\u5BB9\uFF08\u7121\u9ED8\u8A8D\u503C\uFF09',
sortAscendingOperationText: '\u9EDE\u64CA\u5347\u5E8F',
sortCancelOperationText: '\u9EDE\u64CA\u53D6\u6D88\u6392\u5E8F',
sortDescendingOperationText: '\u9EDE\u64CA\u964D\u5E8F',
clearFilterResultButtonText: '\u6E05\u7A7A\u7BE9\u9078',
columnConfigButtonText: '\u884C\u914D\u7F6E',
columnConfigTitleText: '\u8868\u683C\u884C\u914D\u7F6E',
columnConfigDescriptionText: '\u8ACB\u9078\u64C7\u9700\u8981\u5728\u8868\u683C\u4E2D\u986F\u793A\u7684\u6578\u64DA\u884C',
confirmText: '\u78BA\u8A8D',
cancelText: '\u53D6\u6D88',
resetText: '\u91CD\u7F6E',
selectAllText: '\u5168\u9078',
searchResultText: '\u641C\u5C0B"{result}"\uFF0C\u627E\u5230{count}\u9805\u7D50\u679C',
}
: f.isEn
? {
empty: 'Empty Data',
loadingText: 'loading...',
loadingMoreText: 'loading more',
filterInputPlaceholder: '',
sortAscendingOperationText: 'click to sort ascending',
sortCancelOperationText: 'click to cancel sorting',
sortDescendingOperationText: 'click to sort descending',
clearFilterResultButtonText: 'Clear',
columnConfigButtonText: 'Column Config',
columnConfigTitleText: 'Table Column Config',
columnConfigDescriptionText: 'Please select columns to show them in the table',
confirmText: 'Confirm',
cancelText: 'Cancel',
resetText: 'Reset',
selectAllText: 'Select All',
searchResultText: 'Search "{result}". Found no items. | Search "{result}". Found 1 item. | Search "{result}". Found {count} items.',
}
: undefined,
select: f.isZhHant
? {
empty: '\u66AB\u7121\u6578\u64DA',
loadingText: '\u8F09\u5165\u4E2D',
placeholder: '\u8ACB\u9078\u64C7',
}
: f.isEn
? {
empty: 'Empty Data',
loadingText: 'loading...',
placeholder: 'please select',
}
: undefined,
}
},
selectPlaceholder() {
const f = this.localeFlags
return f.isZhHant ? '选择要显示的列' : f.isEn ? 'Select columns to show' : '选择要显示的列'
},
rowSelectPlaceholder() {
const f = this.localeFlags
return f.isZhHant ? '筛选显示的镜像' : f.isEn ? 'Filter mirrors to show' : '筛选显示的镜像'
},
rowFilterOptions() {
const f = this.localeFlags
const arr = Array.isArray(this.originalData) ? this.originalData.map((r) => ({ value: r.name, label: r.name, iconName: r.icon })) : []
const head = { value: '__all__', label: f.isZhHant ? '全選' : f.isEn ? 'Select All' : '全选', checkAll: true }
return [head].concat(arr)
},
rowFilterOptionsRendered() {
return Array.isArray(this.rowFilterOptions) ? this.rowFilterOptions.map((o) => this._mapOptionForRow(o)) : []
},
statusLabels() {
const f = this.localeFlags
return {
supported: f.isZhHant ? '支援' : f.isEn ? 'Supported' : '支持',
unsupported: f.isZhHant ? '不支援' : f.isEn ? 'Unsupported' : '不支持',
incompatible: f.isZhHant ? '不相容' : f.isEn ? 'Incompatible' : '不兼容',
}
},
showSupported() {
return Array.isArray(this.selectedCellStatuses) && this.selectedCellStatuses.includes('supported')
},
showUnsupported() {
return Array.isArray(this.selectedCellStatuses) && this.selectedCellStatuses.includes('unsupported')
},
showIncompatible() {
return Array.isArray(this.selectedCellStatuses) && this.selectedCellStatuses.includes('incompatible')
},
filterOptions() {
return Array.isArray(this.rawFilterOptions) ? this.rawFilterOptions.map((o) => this._mapOptionForFilter(o)) : []
},
},
methods: {
dataChange(data) {
try {
const hasColumnFilters = this.activeTableFilters && Object.keys(this.activeTableFilters).length > 0
const hasRowFilters = Array.isArray(this.selectedRowFilters) && this.selectedRowFilters.length > 0
if (hasColumnFilters || hasRowFilters) {
return
}
this.data = data
} catch {}
},
onFilterChange() {
if (this._debouncedUpdateColumns) this._debouncedUpdateColumns()
else this._updateColumns()
},
onRowFilterChange() {
try {
if (Array.isArray(this.selectedRowFilters) && this.selectedRowFilters.includes('__all__')) {
this.selectedRowFilters = Array.isArray(this.originalData) ? this.originalData.map((r) => r.name) : []
}
} catch {}
if (this._debouncedUpdateRows) this._debouncedUpdateRows()
else this._updateRows()
},
getMirrorSiteBranchUrl(domain, branchName) {
return `https://${domain}/${branchName.replace(/_/, '-')}/`
},
_mapOptionForRow(opt) {
const prefix = '/assets/images/icon/mirrors/'
const copy = Object.assign({}, opt)
if (copy.iconName) copy.prefixIcon = prefix + copy.iconName
copy.content = function (h, ctx) {
const option = (ctx && ctx.option) || copy
const children = []
if (option.iconName) {
children.push(h('img', { src: prefix + option.iconName, width: 16, height: 16, style: 'vertical-align: middle' }))
}
children.push(h('span', { style: option.iconName ? 'margin-left: 8px' : '' }, option.label || option.value || ''))
return h('div', { style: 'display: flex; align-items: center' }, children)
}
return copy
},
_mapOptionForFilter(opt) {
const prefix = '/assets/images/icon/'
const copy = Object.assign({}, opt)
if (copy.iconName) copy.prefixIcon = prefix + copy.iconName
copy.content = function (h, ctx) {
const option = (ctx && ctx.option) || copy
const children = []
if (option.iconName) {
children.push(h('img', { src: prefix + option.iconName, width: 16, height: 16, style: 'vertical-align: middle' }))
}
children.push(h('span', { style: option.iconName ? 'margin-left: 8px' : '' }, option.label || option.value || ''))
return h('div', { style: 'display: flex; align-items: center' }, children)
}
if (Array.isArray(copy.children)) {
copy.children = copy.children.map((c) => this._mapOptionForFilter(c))
}
return copy
},
onCellStatusChange() {
if (this._debouncedUpdateRows) this._debouncedUpdateRows()
else this._updateRows()
},
onTableFilterChange(filters) {
try {
this.activeTableFilters = filters || {}
if (this._debouncedUpdateRows) this._debouncedUpdateRows()
else this._updateRows()
} catch {}
},
_updateColumns() {
try {
const keys = new Set(this.selectedColumnFilters || [])
this.columns = this.allColumns.filter((col) => col.colKey === 'name' || keys.has(col.colKey))
} catch (e) {
this.columns = this.allColumns
}
},
_updateRows() {
try {
this._computeFilteredData()
} catch {}
},
_computeFilteredData() {
try {
let rows = Array.isArray(this.originalData) ? this.originalData.slice() : []
if (Array.isArray(this.selectedRowFilters) && this.selectedRowFilters.length) {
const names = new Set(this.selectedRowFilters || [])
rows = rows.filter((r) => names.has(r.name))
}
const filters = this.activeTableFilters || {}
const filterKeys = Object.keys(filters)
if (filterKeys.length) {
rows = rows.filter((row) => {
for (let i = 0; i < filterKeys.length; i++) {
const key = filterKeys[i]
let value = filters[key]
if (Array.isArray(value)) value = value.length ? value[0] : undefined
if (!value) continue
const cell = Object.prototype.hasOwnProperty.call(row, key) ? row[key] : undefined
if (value === 'supported') {
if (cell !== true) return false
} else if (value === 'unsupported') {
if (cell !== false) return false
} else if (value === 'incompatible') {
if (cell !== 'incompatible') return false
} else {
continue
}
}
return true
})
}
this.data = rows
} catch {}
},
_flattenFilterKeys(options) {
const set = new Set()
options.forEach((opt) => {
if (opt.group && Array.isArray(opt.children)) {
opt.children.forEach((child) => {
if (child && child.value) set.add(child.value)
})
} else if (Array.isArray(opt.children)) {
opt.children.forEach((child) => {
if (child && child.value) set.add(child.value)
})
} else if (opt.value) {
set.add(opt.value)
}
})
return Array.from(set)
},
},
})

View File

@@ -78,7 +78,7 @@ const OramaI18nData = {
// get search box config
function getOramaSearchBoxConfig() {
const currentLang = window.location.pathname.includes('/zh-Hant') ? 'zh-Hant' : window.location.pathname.includes('/en') ? 'en' : 'zh-Hans'
const currentLang = __isZhHant ? 'zh-Hant' : __isEn ? 'en' : 'zh-Hans'
return {
themeConfig: {
// colors: {
@@ -139,7 +139,7 @@ function getOramaSearchBoxConfig() {
// localization search box component
function localizationOramaSearchBox(searchBox) {
if (!searchBox) return
const currentLang = window.location.pathname.includes('/zh-Hant') ? 'zh-Hant' : window.location.pathname.includes('/en') ? 'en' : 'zh-Hans'
const currentLang = __isZhHant ? 'zh-Hant' : __isEn ? 'en' : 'zh-Hans'
const askAiText = OramaI18nData[currentLang].askAiText
const searchText = OramaI18nData[currentLang].searchText
const observer = new MutationObserver((mutations, obs) => {

View File

@@ -6,6 +6,14 @@ search:
exclude: true
---
### `2025-11-02`
* Adapted for Kylin Server to docker script [#1ddf1fb](https://github.com/SuperManito/LinuxMirrors/commit/1ddf1fb708987cf59c4ef56b0a0410caf1b8e726)
### `2025-10-12`
* Added support for I18n [#bf2adc1](https://github.com/SuperManito/LinuxMirrors/commit/bf2adc1adf4f2de4820f617a23aabf247a47281c)
### `2025-09-28`
* Adapted for openSUSE 16 [#a934676](https://github.com/SuperManito/LinuxMirrors/commit/a934676aeb4dfc1d008b2b46ecea5811d7382317)

View File

@@ -6,6 +6,14 @@ search:
exclude: true
---
### `2025-11-02`
* Docker 脚本新增适配 Kylin Server 操作系统 [#1ddf1fb](https://github.com/SuperManito/LinuxMirrors/commit/1ddf1fb708987cf59c4ef56b0a0410caf1b8e726)
### `2025-10-12`
* 新增适配 I18n [#bf2adc1](https://github.com/SuperManito/LinuxMirrors/commit/bf2adc1adf4f2de4820f617a23aabf247a47281c)
### `2025-09-28`
* 适配 openSUSE 16 [#a934676](https://github.com/SuperManito/LinuxMirrors/commit/a934676aeb4dfc1d008b2b46ecea5811d7382317)

View File

@@ -6,6 +6,14 @@ search:
exclude: true
---
### `2025-11-02`
* Docker 腳本新增適配 Kylin Server 作業系統 [#1ddf1fb](https://github.com/SuperManito/LinuxMirrors/commit/1ddf1fb708987cf59c4ef56b0a0410caf1b8e726)
### `2025-10-12`
* 新增適配 I18n [#bf2adc1](https://github.com/SuperManito/LinuxMirrors/commit/bf2adc1adf4f2de4820f617a23aabf247a47281c)
### `2025-09-28`
* 適配 openSUSE 16 [#a934676](https://github.com/SuperManito/LinuxMirrors/commit/a934676aeb4dfc1d008b2b46ecea5811d7382317)

View File

@@ -1,9 +1,9 @@
---
title: One-Click Script Makes Mirror Switching Easier
description: GNU/Linux mirror switching script & docker installation and registry mirror switching script
description: GNU/Linux mirror switching script & Docker installation and registry mirror switching script
comments: true
glightbox: false
comments_description: This comment section is only for sharing project usage reviews and experiences. For issues or suggestions, please go to the <a href="/community">Community</a> or <a href="https://github.com/SuperManito/LinuxMirrors/issues" target="_blank">Issues</a>
comments_description: This comment section is only for sharing project usage reviews and experiences. For issues or suggestions, please go to the <a href="/community">Community</a> or <a href="https://github.com/SuperManito/LinuxMirrors/issues" target="_blank" rel="noopener noreferrer">Issues</a>
hide:
- navigation
- toc
@@ -18,7 +18,7 @@ hide:
</div>
<img src="/assets/images/brand/light/2.png#only-light" alt="LinuxMirrors" style="width: 300px" />
<img src="/assets/images/brand/dark/2.png#only-dark" alt="LinuxMirrors" style="width: 300px" />
<figcaption>GNU/Linux mirror switching script & docker installation and registry mirror switching script</figcaption>
<figcaption>GNU/Linux mirror switching script & Docker installation and registry mirror switching script</figcaption>
<figcaption>One-Click Script Makes Mirror Switching Easier</figcaption>
</figure>
<figure class="home-cmd no-select" style="margin: 0; display: flex; flex-direction: column; justify-content: center" markdown>
@@ -90,7 +90,7 @@ hide:
---
Script command options are designed according to formal application standards, meeting various advanced needs
Code structure is clear, easy to read and modify, and supports customization after cloning
Code structure is clear, easy to read and modify, and supports customization after cloning, supports multi-language printing
- :material-scale-balance:{ .lg .middle } __Free and Open Source__
@@ -105,31 +105,31 @@ hide:
| Operating System | Supported Versions |
| --- | :---: |
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.35em"></a> **Debian** | _813_ |
| <a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **Ubuntu** :material-information-outline:{ title="Supports Ubuntu family derivatives, such as <code>UKylin</code>, <code>Kubuntu</code>, etc.<br/>Due to rapid iteration, not all non-LTS versions are directly supported. See documentation for details." } | _1425_ |
| <a href="https://www.kali.org" title="https://www.kali.org" target="_blank"><img src="/assets/images/icon/kali-linux.svg" width="16" height="16"></a> **Kali Linux** | _all_ |
| <a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank"><img src="/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **Linux Mint** | _1922 / LMDE 6_ |
| <a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank"><img src="/assets/images/icon/deepin.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Deepin** | _all_ |
| <a href="https://zorin.com/os" title="https://zorin.com/os" target="_blank"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Zorin OS** | _all_ |
| <a href="https://www.armbian.com" title="https://www.armbian.com" target="_blank"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Armbian** | _all_ |
| <a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Proxmox VE** | _all_ |
| <a href="https://www.raspberrypi.com/software" title="https://www.raspberrypi.com/software" target="_blank"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Raspberry Pi OS** | _all_ |
| <a href="https://access.redhat.com/products/red-hat-enterprise-linux" title="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> **Red Hat Enterprise Linux** :material-information-outline:{ title="Uses <code>CentOS Stream</code> or <code>CentOS</code> mirrors" } | _710_ |
| <a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Fedora** | _3042_ |
| <a href="https://www.centos.org" title="https://www.centos.org" target="_blank"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.125em"></a> **CentOS** | _78 / Stream 810_ |
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Rocky Linux** | _810_ |
| <a href="https://almalinux.org" title="https://almalinux.org" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | _810_ |
| <a href="https://www.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank"><img src="/assets/images/icon/oracle-linux.png" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** :material-information-outline:{ title="Uses <code>CentOS Stream</code> mirrors" } | _810_ |
| <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler** | _2025_ |
| <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"></a> **OpenCloudOS** | _8.69 / Stream 23_ |
| <a href="https://www.openkylin.top" title="https://www.openkylin.top" target="_blank"><img src="/assets/images/icon/openkylin.ico" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin** | _all_ |
| <a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank"><img src="/assets/images/icon/anolis.png" width="16" height="16" style="vertical-align: -0.1em"></a> **Anolis OS** | _8 / 23_ |
| <a href="https://www.opensuse.org" title="https://www.opensuse.org" target="_blank"><img src="/assets/images/icon/opensuse.svg" width="16" height="16"></a> **openSUSE** | _Leap 15 ~ 16 / Tumbleweed_ |
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank"><img src="/assets/images/icon/arch-linux.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Arch Linux** | _all_ |
| <a href="https://manjaro.org" title="https://manjaro.org" target="_blank"><img src="/assets/images/icon/manjaro.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Manjaro** | _all_ |
| <a href="https://www.alpinelinux.org" title="https://www.alpinelinux.org" target="_blank"><img src="/assets/images/icon/alpine.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Alpine Linux** | _v3 / edge_ |
| <a href="https://www.gentoo.org" title="https://www.gentoo.org" target="_blank"><img src="/assets/images/icon/gentoo.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Gentoo** | _all_ |
| <a href="https://nixos.org" title="https://nixos.org" target="_blank"><img src="/assets/images/icon/nixos.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | _1925_ |
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.35em"></a> **Debian** | _813_ |
| <a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **Ubuntu** :material-information-outline:{ title="Supports Ubuntu family derivatives, such as <code>UKylin</code>, <code>Kubuntu</code>, etc.<br/>Due to rapid iteration, not all non-LTS versions are directly supported. See documentation for details." } | _1425_ |
| <a href="https://www.kali.org" title="https://www.kali.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/kali-linux.png" width="16" height="16"></a> **Kali Linux** | _all_ |
| <a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **Linux Mint** | _1922 / LMDE 6_ |
| <a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/deepin.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Deepin** | _all_ |
| <a href="https://zorin.com/os" title="https://zorin.com/os" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Zorin OS** | _all_ |
| <a href="https://www.armbian.com" title="https://www.armbian.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Armbian** | _all_ |
| <a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Proxmox VE** | _all_ |
| <a href="https://www.raspberrypi.com/software" title="https://www.raspberrypi.com/software" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Raspberry Pi OS** | _all_ |
| <a href="https://access.redhat.com/products/red-hat-enterprise-linux" title="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> **Red Hat Enterprise Linux** :material-information-outline:{ title="Uses <code>CentOS Stream</code> or <code>CentOS</code> mirrors" } | _710_ |
| <a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Fedora** | _3042_ |
| <a href="https://www.centos.org" title="https://www.centos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.125em"></a> **CentOS** | _78 / Stream 810_ |
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Rocky Linux** | _810_ |
| <a href="https://almalinux.org" title="https://almalinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | _810_ |
| <a href="https://www.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/oracle-linux.png" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** :material-information-outline:{ title="Uses <code>CentOS Stream</code> mirrors" } | _810_ |
| <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler** | _2025_ |
| <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"></a> **OpenCloudOS** | _8.69 / Stream 23_ |
| <a href="https://www.openkylin.top" title="https://www.openkylin.top" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/openkylin.ico" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin** | _all_ |
| <a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/anolis.png" width="16" height="16" style="vertical-align: -0.1em"></a> **Anolis OS** | _8 / 23_ |
| <a href="https://www.opensuse.org" title="https://www.opensuse.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/opensuse.svg" width="16" height="16"></a> **openSUSE** | _Leap 15 ~ 16 / Tumbleweed_ |
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/arch-linux.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Arch Linux** | _all_ |
| <a href="https://manjaro.org" title="https://manjaro.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/manjaro.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Manjaro** | _all_ |
| <a href="https://www.alpinelinux.org" title="https://www.alpinelinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/alpine.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Alpine Linux** | _v3 / edge_ |
| <a href="https://www.gentoo.org" title="https://www.gentoo.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/gentoo.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Gentoo** | _all_ |
| <a href="https://nixos.org" title="https://nixos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | _1925_ |
</div>
</div>

View File

@@ -3,7 +3,7 @@ title: 一键脚本使换源更简单
description: GNU/Linux 更换系统软件源脚本及 Docker 安装与换源脚本
comments: true
glightbox: false
comments_description: 该评论区仅用于展示项目使用评价和经验分享,反馈问题或建议请前往<a href="/community">社区</a><a href="https://github.com/SuperManito/LinuxMirrors/issues" target="_blank">Issues</a>
comments_description: 该评论区仅用于展示项目使用评价和经验分享,反馈问题或建议请前往<a href="/community">社区</a><a href="https://github.com/SuperManito/LinuxMirrors/issues" target="_blank" rel="noopener noreferrer">Issues</a>
hide:
- navigation
- toc
@@ -78,7 +78,7 @@ hide:
本网站提供全球边缘网络加速,不惧各种网络环境,国内轻松访问
同时提供了多个备用地址以确保项目脚本始终可用,真正做到使用无忧
- :material-arm-flex-outline:{ .lg .middle } __功能强大伦比__
- :material-arm-flex-outline:{ .lg .middle } __功能强大伦比__
---
@@ -90,7 +90,7 @@ hide:
---
脚本命令选项遵循正式应用程序规范设计,能够满足各种高级需求
代码结构清晰,易于阅读和修改,支持克隆后定制
代码结构清晰,易于阅读和修改,支持克隆后定制,支持多语言打印
- :material-scale-balance:{ .lg .middle } __自由开源__
@@ -105,31 +105,31 @@ hide:
| 操作系统 | 适配版本 |
| --- | :---: |
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.35em"></a> **Debian** | _813_ |
| <a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **Ubuntu** :material-information-outline:{ title="支持乌班图家族衍生操作系统,例如 <code>优麒麟</code> <code>Kubuntu</code><br/>由于迭代速度较快并不直接支持所有非 LTS 的版本,具体详见文档" } | _1425_ |
| <a href="https://www.kali.org" title="https://www.kali.org" target="_blank"><img src="/assets/images/icon/kali-linux.svg" width="16" height="16"></a> **Kali Linux** | _all_ |
| <a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank"><img src="/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **Linux Mint** | _1922 / LMDE 6_ |
| <a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank"><img src="/assets/images/icon/deepin.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Deepin深度** | _all_ |
| <a href="https://zorin.com/os" title="https://zorin.com/os" target="_blank"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Zorin OS** | _all_ |
| <a href="https://www.armbian.com" title="https://www.armbian.com" target="_blank"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Armbian** | _all_ |
| <a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Proxmox VE** | _all_ |
| <a href="https://www.raspberrypi.com/software" title="https://www.raspberrypi.com/software" target="_blank"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Raspberry Pi OS** | _all_ |
| <a href="https://access.redhat.com/products/red-hat-enterprise-linux" title="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> **Red Hat Enterprise Linux** :material-information-outline:{ title="使用 <code>CentOS Stream</code><code>CentOS</code> 源" } | _710_ |
| <a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Fedora** | _3042_ |
| <a href="https://www.centos.org" title="https://www.centos.org" target="_blank"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.125em"></a> **CentOS** | _78 / Stream 810_ |
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Rocky Linux** | _810_ |
| <a href="https://almalinux.org" title="https://almalinux.org" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | _810_ |
| <a href="https://www.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank"><img src="/assets/images/icon/oracle-linux.png" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** :material-information-outline:{ title="使用 <code>CentOS Stream</code> 源" } | _810_ |
| <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler开源欧拉** | _2025_ |
| <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"></a> **OpenCloudOS鸥栖** | _8.69 / Stream 23_ |
| <a href="https://www.openkylin.top" title="https://www.openkylin.top" target="_blank"><img src="/assets/images/icon/openkylin.ico" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin开放麒麟** | _all_ |
| <a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank"><img src="/assets/images/icon/anolis.png" width="16" height="16" style="vertical-align: -0.1em"></a> **Anolis OS龙蜥** | _8 / 23_ |
| <a href="https://www.opensuse.org" title="https://www.opensuse.org" target="_blank"><img src="/assets/images/icon/opensuse.svg" width="16" height="16"></a> **openSUSE** | _Leap 15 ~ 16 / Tumbleweed_ |
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank"><img src="/assets/images/icon/arch-linux.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Arch Linux** | _all_ |
| <a href="https://manjaro.org" title="https://manjaro.org" target="_blank"><img src="/assets/images/icon/manjaro.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Manjaro** | _all_ |
| <a href="https://www.alpinelinux.org" title="https://www.alpinelinux.org" target="_blank"><img src="/assets/images/icon/alpine.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Alpine Linux** | _v3 / edge_ |
| <a href="https://www.gentoo.org" title="https://www.gentoo.org" target="_blank"><img src="/assets/images/icon/gentoo.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Gentoo** | _all_ |
| <a href="https://nixos.org" title="https://nixos.org" target="_blank"><img src="/assets/images/icon/nixos.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | _1925_ |
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.35em"></a> **Debian** | _813_ |
| <a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **Ubuntu** :material-information-outline:{ title="支持乌班图家族衍生操作系统,例如 <code>优麒麟</code> <code>Kubuntu</code><br/>由于迭代速度较快并不直接支持所有非 LTS 的版本,具体详见文档" } | _1425_ |
| <a href="https://www.kali.org" title="https://www.kali.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/kali-linux.png" width="16" height="16"></a> **Kali Linux** | _all_ |
| <a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **Linux Mint** | _1922 / LMDE 6_ |
| <a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/deepin.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Deepin深度** | _all_ |
| <a href="https://zorin.com/os" title="https://zorin.com/os" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Zorin OS** | _all_ |
| <a href="https://www.armbian.com" title="https://www.armbian.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Armbian** | _all_ |
| <a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Proxmox VE** | _all_ |
| <a href="https://www.raspberrypi.com/software" title="https://www.raspberrypi.com/software" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Raspberry Pi OS** | _all_ |
| <a href="https://access.redhat.com/products/red-hat-enterprise-linux" title="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> **Red Hat Enterprise Linux** :material-information-outline:{ title="使用 <code>CentOS Stream</code><code>CentOS</code> 源" } | _710_ |
| <a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Fedora** | _3042_ |
| <a href="https://www.centos.org" title="https://www.centos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.125em"></a> **CentOS** | _78 / Stream 810_ |
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Rocky Linux** | _810_ |
| <a href="https://almalinux.org" title="https://almalinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | _810_ |
| <a href="https://www.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/oracle-linux.png" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** :material-information-outline:{ title="使用 <code>CentOS Stream</code> 源" } | _810_ |
| <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler开源欧拉** | _2025_ |
| <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"></a> **OpenCloudOS鸥栖** | _8.69 / Stream 23_ |
| <a href="https://www.openkylin.top" title="https://www.openkylin.top" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/openkylin.ico" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin开放麒麟** | _all_ |
| <a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/anolis.png" width="16" height="16" style="vertical-align: -0.1em"></a> **Anolis OS龙蜥** | _8 / 23_ |
| <a href="https://www.opensuse.org" title="https://www.opensuse.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/opensuse.svg" width="16" height="16"></a> **openSUSE** | _Leap 15 ~ 16 / Tumbleweed_ |
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/arch-linux.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Arch Linux** | _all_ |
| <a href="https://manjaro.org" title="https://manjaro.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/manjaro.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Manjaro** | _all_ |
| <a href="https://www.alpinelinux.org" title="https://www.alpinelinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/alpine.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Alpine Linux** | _v3 / edge_ |
| <a href="https://www.gentoo.org" title="https://www.gentoo.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/gentoo.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Gentoo** | _all_ |
| <a href="https://nixos.org" title="https://nixos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | _1925_ |
</div>
</div>

View File

@@ -3,7 +3,7 @@ title: 一鍵腳本讓換源更簡單
description: GNU/Linux 更換系統軟體源腳本及 Docker 安裝與換源腳本
comments: true
glightbox: false
comments_description: 此評論區僅用於展示專案使用評估和經驗分享,回饋問題或建議請前往<a href="/community">社群</a><a href="https://github.com/SuperManito/LinuxMirrors/issues" target="_blank">Issues</a>
comments_description: 此評論區僅用於展示專案使用評估和經驗分享,回饋問題或建議請前往<a href="/community">社群</a><a href="https://github.com/SuperManito/LinuxMirrors/issues" target="_blank" rel="noopener noreferrer">Issues</a>
hide:
- navigation
- toc
@@ -90,7 +90,7 @@ hide:
---
腳本命令選項遵循正式應用程式規範設計,能夠滿足各種進階需求
程式碼結構清晰,易於閱讀和修改,支援克隆後定制
程式碼結構清晰,易於閱讀和修改,支援克隆後定制,支援多語言列印
- :material-scale-balance:{ .lg .middle } __自由開源__
@@ -105,31 +105,31 @@ hide:
| 作業系統 | 適配版本 |
| --- | :---: |
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.35em"></a> **Debian** | _813_ |
| <a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **Ubuntu** :material-information-outline:{ title="支援烏班圖家族衍生作業系統,例如 <code>優麒麟</code> <code>Kubuntu</code><br/>由於迭代速度較快並不直接支援所有非 LTS 的版本,因此具體詳見文件" } | _1425_ |
| <a href="https://www.kali.org" title="https://www.kali.org" target="_blank"><img src="/assets/images/icon/kali-linux.svg" width="16" height="16"></a> **Kali Linux** | _all_ |
| <a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank"><img src="/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **Linux Mint** | _1922 / LMDE 6_ |
| <a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank"><img src="/assets/images/icon/deepin.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Deepin** | _all_ |
| <a href="https://zorin.com/os" title="https://zorin.com/os" target="_blank"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Zorin OS** | _all_ |
| <a href="https://www.armbian.com" title="https://www.armbian.com" target="_blank"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Armbian** | _all_ |
| <a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Proxmox VE** | _all_ |
| <a href="https://www.raspberrypi.com/software" title="https://www.raspberrypi.com/software" target="_blank"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Raspberry Pi OS** | _all_ |
| <a href="https://access.redhat.com/products/red-hat-enterprise-linux" title="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> **Red Hat Enterprise Linux** :material-information-outline:{ title="使用 <code>CentOS Stream</code><code>CentOS</code> 源" } | _710_ |
| <a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Fedora** | _3042_ |
| <a href="https://www.centos.org" title="https://www.centos.org" target="_blank"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.125em"></a> **CentOS** | _78 / Stream 810_ |
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Rocky Linux** | _810_ |
| <a href="https://almalinux.org" title="https://almalinux.org" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | _810_ |
| <a href="https://www.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank"><img src="/assets/images/icon/oracle-linux.png" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** :material-information-outline:{ title="使用 <code>CentOS Stream</code> 源" } | _810_ |
| <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler** | _2025_ |
| <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"></a> **OpenCloudOS** | _8.69 / Stream 23_ |
| <a href="https://www.openkylin.top" title="https://www.openkylin.top" target="_blank"><img src="/assets/images/icon/openkylin.ico" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin** | _all_ |
| <a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank"><img src="/assets/images/icon/anolis.png" width="16" height="16" style="vertical-align: -0.1em"></a> **Anolis OS** | _8 / 23_ |
| <a href="https://www.opensuse.org" title="https://www.opensuse.org" target="_blank"><img src="/assets/images/icon/opensuse.svg" width="16" height="16"></a> **openSUSE** | _Leap 15 ~ 16 / Tumbleweed_ |
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank"><img src="/assets/images/icon/arch-linux.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Arch Linux** | _all_ |
| <a href="https://manjaro.org" title="https://manjaro.org" target="_blank"><img src="/assets/images/icon/manjaro.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Manjaro** | _all_ |
| <a href="https://www.alpinelinux.org" title="https://www.alpinelinux.org" target="_blank"><img src="/assets/images/icon/alpine.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Alpine Linux** | _v3 / edge_ |
| <a href="https://www.gentoo.org" title="https://www.gentoo.org" target="_blank"><img src="/assets/images/icon/gentoo.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Gentoo** | _all_ |
| <a href="https://nixos.org" title="https://nixos.org" target="_blank"><img src="/assets/images/icon/nixos.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | _1925_ |
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.35em"></a> **Debian** | _813_ |
| <a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **Ubuntu** :material-information-outline:{ title="支援烏班圖家族衍生作業系統,例如 <code>優麒麟</code> <code>Kubuntu</code><br/>由於迭代速度較快並不直接支援所有非 LTS 的版本,因此具體詳見文件" } | _1425_ |
| <a href="https://www.kali.org" title="https://www.kali.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/kali-linux.png" width="16" height="16"></a> **Kali Linux** | _all_ |
| <a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **Linux Mint** | _1922 / LMDE 6_ |
| <a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/deepin.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Deepin** | _all_ |
| <a href="https://zorin.com/os" title="https://zorin.com/os" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Zorin OS** | _all_ |
| <a href="https://www.armbian.com" title="https://www.armbian.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Armbian** | _all_ |
| <a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Proxmox VE** | _all_ |
| <a href="https://www.raspberrypi.com/software" title="https://www.raspberrypi.com/software" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Raspberry Pi OS** | _all_ |
| <a href="https://access.redhat.com/products/red-hat-enterprise-linux" title="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> **Red Hat Enterprise Linux** :material-information-outline:{ title="使用 <code>CentOS Stream</code><code>CentOS</code> 源" } | _710_ |
| <a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Fedora** | _3042_ |
| <a href="https://www.centos.org" title="https://www.centos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.125em"></a> **CentOS** | _78 / Stream 810_ |
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Rocky Linux** | _810_ |
| <a href="https://almalinux.org" title="https://almalinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | _810_ |
| <a href="https://www.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/oracle-linux.png" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** :material-information-outline:{ title="使用 <code>CentOS Stream</code> 源" } | _810_ |
| <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler** | _2025_ |
| <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"></a> **OpenCloudOS** | _8.69 / Stream 23_ |
| <a href="https://www.openkylin.top" title="https://www.openkylin.top" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/openkylin.ico" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin** | _all_ |
| <a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/anolis.png" width="16" height="16" style="vertical-align: -0.1em"></a> **Anolis OS** | _8 / 23_ |
| <a href="https://www.opensuse.org" title="https://www.opensuse.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/opensuse.svg" width="16" height="16"></a> **openSUSE** | _Leap 15 ~ 16 / Tumbleweed_ |
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/arch-linux.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Arch Linux** | _all_ |
| <a href="https://manjaro.org" title="https://manjaro.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/manjaro.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Manjaro** | _all_ |
| <a href="https://www.alpinelinux.org" title="https://www.alpinelinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/alpine.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Alpine Linux** | _v3 / edge_ |
| <a href="https://www.gentoo.org" title="https://www.gentoo.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/gentoo.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Gentoo** | _all_ |
| <a href="https://nixos.org" title="https://nixos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | _1925_ |
</div>
</div>

View File

@@ -10,9 +10,7 @@ search:
## Chinese Mainland :flag-CN:
> All mirror sites in the list below synchronize the `Debian`, `Ubuntu`, `CentOS`, `openSUSE`, and `openEuler` software repositories. The list is sorted by institution type, geographic location, and name length, and is not related to actual download speed.
<div id="mirrors-table"><p>Loading table <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" style="vertical-align: -0.15rem"><g stroke="currentColor"><circle cx="12" cy="12" r="9.5" fill="none" stroke-linecap="round" stroke-width="3"><animate attributeName="stroke-dasharray" calcMode="spline" dur="1.5s" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1" keyTimes="0;0.475;0.95;1" repeatCount="indefinite" values="0 150;42 150;42 150;42 150"/><animate attributeName="stroke-dashoffset" calcMode="spline" dur="1.5s" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1" keyTimes="0;0.475;0.95;1" repeatCount="indefinite" values="0;-16;-59;-59"/></circle><animateTransform attributeName="transform" dur="2s" repeatCount="indefinite" type="rotate" values="0 12 12;360 12 12"/></g></svg></p></div>
<div id="mirrors-table"><p>Loading table <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" style="vertical-align: -0.15rem"><g stroke="var(--md-default-fg-color--light)"><circle cx="12" cy="12" r="9.5" fill="none" stroke-linecap="round" stroke-width="3"><animate attributeName="stroke-dasharray" calcMode="spline" dur="1.5s" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1" keyTimes="0;0.475;0.95;1" repeatCount="indefinite" values="0 150;42 150;42 150;42 150"/><animate attributeName="stroke-dashoffset" calcMode="spline" dur="1.5s" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1" keyTimes="0;0.475;0.95;1" repeatCount="indefinite" values="0;-16;-59;-59"/></circle><animateTransform attributeName="transform" dur="2s" repeatCount="indefinite" type="rotate" values="0 12 12;360 12 12"/></g></svg></p></div>
???+ question "Usage Help"
@@ -59,174 +57,194 @@ search:
## Overseas And International Regions :flag-world-map:
=== ":fontawesome-solid-earth-asia: Asia"
=== ":fontawesome-solid-earth-asia: AS"
| Mirror Name | Mirror URL |
| :- | :-: |
| Asia · xTom · Hong Kong :flag-HK: | [mirrors.xtom.hk](https://mirrors.xtom.hk "https://mirrors.xtom.hk") |
| Asia · 01Link · Hong Kong :flag-HK: | [mirror.01link.hk](https://mirror.01link.hk "https://mirror.01link.hk") |
| Asia · National University of Singapore (NUS) · Singapore :flag-SG: | [download.nus.edu.sg/mirror](https://download.nus.edu.sg "https://download.nus.edu.sg") |
| Asia · SG.GS · Singapore :flag-SG: | [mirror.sg.gs](https://mirror.sg.gs "https://mirror.sg.gs") |
| Asia · xTom · Singapore :flag-SG: | [mirrors.xtom.sg](https://mirrors.xtom.sg "https://mirrors.xtom.sg") |
| Asia · NCHC Free Software Lab · Taiwan :flag-TW: | [free.nchc.org.tw](https://free.nchc.org.tw "https://free.nchc.org.tw") |
| Asia · OSS Planet · Taiwan :flag-TW: | [mirror.ossplanet.net](https://mirror.ossplanet.net "https://mirror.ossplanet.net") |
| Asia · National Yang Ming Chiao Tung University · Taiwan :flag-TW: | [linux.cs.nctu.edu.tw](https://linux.cs.nctu.edu.tw "https://linux.cs.nctu.edu.tw") |
| Asia · Tamkang University · Taiwan :flag-TW: | [ftp.tku.edu.tw](https://ftp.tku.edu.tw "https://ftp.tku.edu.tw") |
| Asia · AniGil Linux Archive · Korea :flag-KR: | [mirror.anigil.com](https://mirror.anigil.com "https://mirror.anigil.com") |
| Asia · ICSCoE (Industrial Cyber Security Center of Excellence) · Japan :flag-JP: | [ftp.udx.icscoe.jp/Linux](https://ftp.udx.icscoe.jp/Linux "https://ftp.udx.icscoe.jp/Linux") |
| Asia · JAIST (Japan Advanced Institute of Science and Technology) · Japan :flag-JP: | [ftp.jaist.ac.jp/pub/Linux](https://ftp.jaist.ac.jp/pub/Linux "https://ftp.jaist.ac.jp/pub/Linux") |
| Asia · Yamagata University · Japan :flag-JP: | [linux2.yz.yamagata-u.ac.jp/pub/Linux](https://linux2.yz.yamagata-u.ac.jp/pub/Linux "https://linux2.yz.yamagata-u.ac.jp/pub/Linux") |
| Asia · xTom · Japan :flag-JP: | [mirrors.xtom.jp](https://mirrors.xtom.jp "https://mirrors.xtom.jp") |
| Asia · GB Network Solutions · Malaysia :flag-MY: | [mirrors.gbnetwork.com](https://mirrors.gbnetwork.com "https://mirrors.gbnetwork.com") |
| Asia · Khon Kaen University · Thailand :flag-TH: | [mirror.kku.ac.th](https://mirror.kku.ac.th "https://mirror.kku.ac.th") |
| AS · xTom · Hong Kong :flag-HK: | [mirrors.xtom.hk](https://mirrors.xtom.hk "https://mirrors.xtom.hk") |
| AS · 01Link · Hong Kong :flag-HK: | [mirror.01link.hk](https://mirror.01link.hk "https://mirror.01link.hk") |
| AS · National University of Singapore (NUS) · Singapore :flag-SG: | [download.nus.edu.sg/mirror](https://download.nus.edu.sg "https://download.nus.edu.sg") |
| AS · SG.GS · Singapore :flag-SG: | [mirror.sg.gs](https://mirror.sg.gs "https://mirror.sg.gs") |
| AS · xTom · Singapore :flag-SG: | [mirrors.xtom.sg](https://mirrors.xtom.sg "https://mirrors.xtom.sg") |
| AS · NCHC Free Software Lab · Taiwan :flag-TW: | [free.nchc.org.tw](https://free.nchc.org.tw "https://free.nchc.org.tw") |
| AS · OSS Planet · Taiwan :flag-TW: | [mirror.ossplanet.net](https://mirror.ossplanet.net "https://mirror.ossplanet.net") |
| AS · National Yang Ming Chiao Tung University · Taiwan :flag-TW: | [linux.cs.nctu.edu.tw](https://linux.cs.nctu.edu.tw "https://linux.cs.nctu.edu.tw") |
| AS · Tamkang University · Taiwan :flag-TW: | [ftp.tku.edu.tw](https://ftp.tku.edu.tw "https://ftp.tku.edu.tw") |
| AS · Taiwan Digital Streaming · Taiwan :flag-TW: | [mirror.twds.com.tw](https://mirror.twds.com.tw "https://mirror.twds.com.tw") |
| AS · AniGil Linux Archive · Korea :flag-KR: | [mirror.anigil.com](https://mirror.anigil.com "https://mirror.anigil.com") |
| AS · ICSCoE (Industrial Cyber Security Center of Excellence) · Japan :flag-JP: | [ftp.udx.icscoe.jp/Linux](https://ftp.udx.icscoe.jp/Linux "https://ftp.udx.icscoe.jp/Linux") |
| AS · JAIST (Japan Advanced Institute of Science and Technology) · Japan :flag-JP: | [ftp.jaist.ac.jp/pub/Linux](https://ftp.jaist.ac.jp/pub/Linux "https://ftp.jaist.ac.jp/pub/Linux") |
| AS · Yamagata University · Japan :flag-JP: | [linux2.yz.yamagata-u.ac.jp/pub/Linux](https://linux2.yz.yamagata-u.ac.jp/pub/Linux "https://linux2.yz.yamagata-u.ac.jp/pub/Linux") |
| AS · xTom · Japan :flag-JP: | [mirrors.xtom.jp](https://mirrors.xtom.jp "https://mirrors.xtom.jp") |
| AS · GB Network Solutions · Malaysia :flag-MY: | [mirrors.gbnetwork.com](https://mirrors.gbnetwork.com "https://mirrors.gbnetwork.com") |
| AS · Khon Kaen University · Thailand :flag-TH: | [mirror.kku.ac.th](https://mirror.kku.ac.th "https://mirror.kku.ac.th") |
=== ":fontawesome-solid-earth-europe: Europe"
| Mirror Name | Mirror URL |
| :- | :-: |
| Europe · Vorboss Ltd · UK :flag-GB: | [mirror.vorboss.net](https://mirror.vorboss.net "https://mirror.vorboss.net") |
| Europe · QuickHost · UK :flag-GB: | [mirror.quickhost.uk](https://mirror.quickhost.uk "https://mirror.quickhost.uk") |
| Europe · dogado · Germany :flag-DE: | [mirror.dogado.de](https://mirror.dogado.de "https://mirror.dogado.de") |
| Europe · xTom · Germany :flag-DE: | [mirrors.xtom.de](https://mirrors.xtom.de "https://mirrors.xtom.de") |
| Europe · RWTH Aachen University · Germany :flag-DE: | [ftp.halifax.rwth-aachen.de](https://ftp.halifax.rwth-aachen.de "https://ftp.halifax.rwth-aachen.de") |
| Europe · Dresden University (AG DSN) · Germany :flag-DE: | [ftp.agdsn.de](https://ftp.agdsn.de "https://ftp.agdsn.de") |
| Europe · CCIN2P3 · France :flag-FR: | [mirror.in2p3.fr/pub/linux](https://mirror.in2p3.fr/pub/linux "https://mirror.in2p3.fr/pub/linux") |
| Europe · Ircam · France :flag-FR: | [mirrors.ircam.fr/pub](https://mirrors.ircam.fr/pub "https://mirrors.ircam.fr/pub") |
| Europe · Crans · France :flag-FR: | [eclats.crans.org](https://eclats.crans.org "https://eclats.crans.org") |
| Europe · CRIHAN · France :flag-FR: | [ftp.crihan.fr](https://ftp.crihan.fr "https://ftp.crihan.fr") |
| Europe · xTom · Netherlands :flag-NL: | [mirrors.xtom.nl](https://mirrors.xtom.nl "https://mirrors.xtom.nl") |
| Europe · DataPacket · Netherlands :flag-NL: | [mirror.datapacket.com](https://mirror.datapacket.com "https://mirror.datapacket.com") |
| Europe · Linux Kernel · Netherlands :flag-NL: | [eu.edge.kernel.org](https://eu.edge.kernel.org "https://eu.edge.kernel.org") |
| Europe · xTom · Estonia :flag-EE: | [mirrors.xtom.ee](https://mirrors.xtom.ee "https://mirrors.xtom.ee") |
| Europe · netsite · Denmark :flag-DK: | [mirror.netsite.dk](https://mirror.netsite.dk "https://mirror.netsite.dk") |
| Europe · Dotsrc · Denmark :flag-DK: | [mirrors.dotsrc.org](https://mirrors.dotsrc.org "https://mirrors.dotsrc.org") |
| Europe · Academic Computer Club · Sweden :flag-SE: | [mirror.accum.se](https://mirror.accum.se "https://mirror.accum.se") |
| Europe · Lysator · Sweden :flag-SE: | [ftp.lysator.liu.se](https://ftp.lysator.liu.se "https://ftp.lysator.liu.se") |
| Europe · Yandex · Russia :flag-RU: | [mirror.yandex.ru](https://mirror.yandex.ru "https://mirror.yandex.ru") |
| Europe · ia64 · Russia :flag-RU: | [mirror.linux-ia64.org](https://mirror.linux-ia64.org "https://mirror.linux-ia64.org") |
| Europe · Truenetwork · Russia :flag-RU: | [mirror.truenetwork.ru](https://mirror.truenetwork.ru "https://mirror.truenetwork.ru") |
| Europe · Belgian Research Network · Belgium :flag-BE: | [ftp.belnet.be/mirror](https://ftp.belnet.be/mirror "https://ftp.belnet.be/mirror") |
| Europe · University of Crete Computer Center · Greece :flag-GR: | [ftp.cc.uoc.gr/mirrors/linux](https://ftp.cc.uoc.gr/mirrors/linux "https://ftp.cc.uoc.gr/mirrors/linux") |
| Europe · Masaryk University Faculty of Informatics · Czech Republic :flag-CZ: | [ftp.fi.muni.cz/pub/linux](https://ftp.fi.muni.cz/pub/linux "https://ftp.fi.muni.cz/pub/linux") |
| Europe · Czech Technical University Student Club (Silicon Hill) · Czech Republic :flag-CZ: | [ftp.sh.cvut.cz](https://ftp.sh.cvut.cz "https://ftp.sh.cvut.cz") |
| Europe · Vodafone · Czech Republic :flag-CZ: | [mirror.karneval.cz/pub/linux](https://mirror.karneval.cz/pub/linux "https://mirror.karneval.cz/pub/linux") |
| Europe · CZ.NIC · Czech Republic :flag-CZ: | [mirrors.nic.cz](https://mirrors.nic.cz "https://mirrors.nic.cz") |
| Europe · ETH Zurich · Switzerland :flag-CH: | [mirror.ethz.ch](https://mirror.ethz.ch "https://mirror.ethz.ch") |
| EU · Vorboss Ltd · United Kiongdom :flag-GB: | [mirror.vorboss.net](https://mirror.vorboss.net "https://mirror.vorboss.net") |
| EU · QuickHost · United Kiongdom :flag-GB: | [mirror.quickhost.uk](https://mirror.quickhost.uk "https://mirror.quickhost.uk") |
| EU · dogado · Germany :flag-DE: | [mirror.dogado.de](https://mirror.dogado.de "https://mirror.dogado.de") |
| EU · xTom · Germany :flag-DE: | [mirrors.xtom.de](https://mirrors.xtom.de "https://mirrors.xtom.de") |
| EU · RWTH Aachen University · Germany :flag-DE: | [ftp.halifax.rwth-aachen.de](https://ftp.halifax.rwth-aachen.de "https://ftp.halifax.rwth-aachen.de") |
| EU · Dresden University (AG DSN) · Germany :flag-DE: | [ftp.agdsn.de](https://ftp.agdsn.de "https://ftp.agdsn.de") |
| EU · CCIN2P3 · France :flag-FR: | [mirror.in2p3.fr/pub/linux](https://mirror.in2p3.fr/pub/linux "https://mirror.in2p3.fr/pub/linux") |
| EU · Ircam · France :flag-FR: | [mirrors.ircam.fr/pub](https://mirrors.ircam.fr/pub "https://mirrors.ircam.fr/pub") |
| EU · Crans · France :flag-FR: | [eclats.crans.org](https://eclats.crans.org "https://eclats.crans.org") |
| EU · CRIHAN · France :flag-FR: | [ftp.crihan.fr](https://ftp.crihan.fr "https://ftp.crihan.fr") |
| EU · xTom · Netherlands :flag-NL: | [mirrors.xtom.nl](https://mirrors.xtom.nl "https://mirrors.xtom.nl") |
| EU · DataPacket · Netherlands :flag-NL: | [mirror.datapacket.com](https://mirror.datapacket.com "https://mirror.datapacket.com") |
| EU · Linux Kernel · Netherlands :flag-NL: | [eu.edge.kernel.org](https://eu.edge.kernel.org "https://eu.edge.kernel.org") |
| EU · xTom · Estonia :flag-EE: | [mirrors.xtom.ee](https://mirrors.xtom.ee "https://mirrors.xtom.ee") |
| EU · netsite · Denmark :flag-DK: | [mirror.netsite.dk](https://mirror.netsite.dk "https://mirror.netsite.dk") |
| EU · Dotsrc · Denmark :flag-DK: | [mirrors.dotsrc.org](https://mirrors.dotsrc.org "https://mirrors.dotsrc.org") |
| EU · Academic Computer Club · Sweden :flag-SE: | [mirror.accum.se](https://mirror.accum.se "https://mirror.accum.se") |
| EU · Lysator · Sweden :flag-SE: | [ftp.lysator.liu.se](https://ftp.lysator.liu.se "https://ftp.lysator.liu.se") |
| EU · Yandex · Russia :flag-RU: | [mirror.yandex.ru](https://mirror.yandex.ru "https://mirror.yandex.ru") |
| EU · ia64 · Russia :flag-RU: | [mirror.linux-ia64.org](https://mirror.linux-ia64.org "https://mirror.linux-ia64.org") |
| EU · Truenetwork · Russia :flag-RU: | [mirror.truenetwork.ru](https://mirror.truenetwork.ru "https://mirror.truenetwork.ru") |
| EU · Belgian Research Network · Belgium :flag-BE: | [ftp.belnet.be/mirror](https://ftp.belnet.be/mirror "https://ftp.belnet.be/mirror") |
| EU · University of Crete Computer Center · Greece :flag-GR: | [ftp.cc.uoc.gr/mirrors/linux](https://ftp.cc.uoc.gr/mirrors/linux "https://ftp.cc.uoc.gr/mirrors/linux") |
| EU · Masaryk University Faculty of Informatics · Czech :flag-CZ: | [ftp.fi.muni.cz/pub/linux](https://ftp.fi.muni.cz/pub/linux "https://ftp.fi.muni.cz/pub/linux") |
| EU · Czech Technical University Student Club (Silicon Hill) · Czech :flag-CZ: | [ftp.sh.cvut.cz](https://ftp.sh.cvut.cz "https://ftp.sh.cvut.cz") |
| EU · Vodafone · Czech :flag-CZ: | [mirror.karneval.cz/pub/linux](https://mirror.karneval.cz/pub/linux "https://mirror.karneval.cz/pub/linux") |
| EU · CZ.NIC · Czech :flag-CZ: | [mirrors.nic.cz](https://mirrors.nic.cz "https://mirrors.nic.cz") |
| EU · ETH Zurich · Switzerland :flag-CH: | [mirror.ethz.ch](https://mirror.ethz.ch "https://mirror.ethz.ch") |
=== ":fontawesome-solid-earth-americas: North America"
| Mirror Name | Mirror URL |
| :- | :-: |
| North America · Linux Kernel · USA :flag-US: | [mirrors.kernel.org](https://mirrors.kernel.org "https://mirrors.kernel.org") |
| North America · MIT · USA :flag-US: | [mirrors.mit.edu](https://mirrors.mit.edu "https://mirrors.mit.edu") |
| North America · Princeton University Department of Mathematics · USA :flag-US: | [mirror.math.princeton.edu/pub](https://mirror.math.princeton.edu/pub "https://mirror.math.princeton.edu/pub") |
| North America · Oregon State University Open Source Lab · USA :flag-US: | [ftp-chi.osuosl.org/pub](https://ftp-chi.osuosl.org/pub "https://ftp-chi.osuosl.org/pub") |
| North America · Fremont Cabal Internet Exchange (FCIX) · USA :flag-US: | [mirror.fcix.net](https://mirror.fcix.net "https://mirror.fcix.net") |
| North America · xTom · USA :flag-US: | [mirrors.xtom.com](https://mirrors.xtom.com "https://mirrors.xtom.com") |
| North America · Steadfast · USA :flag-US: | [mirror.steadfast.net](https://mirror.steadfast.net "https://mirror.steadfast.net") |
| North America · University of British Columbia · Canada :flag-CA: | [mirror.it.ubc.ca](https://mirror.it.ubc.ca "https://mirror.it.ubc.ca") |
| North America · GoCodeIT · Canada :flag-CA: | [mirror.xenyth.net](https://mirror.xenyth.net "https://mirror.xenyth.net") |
| North America · Switch · Canada :flag-CA: | [mirrors.switch.ca](https://mirrors.switch.ca "https://mirrors.switch.ca") |
| NA · Linux Kernel · United States :flag-US: | [mirrors.kernel.org](https://mirrors.kernel.org "https://mirrors.kernel.org") |
| NA · MIT · United States :flag-US: | [mirrors.mit.edu](https://mirrors.mit.edu "https://mirrors.mit.edu") |
| NA · Princeton University Department of Mathematics · United States :flag-US: | [mirror.math.princeton.edu/pub](https://mirror.math.princeton.edu/pub "https://mirror.math.princeton.edu/pub") |
| NA · Oregon State University Open Source Lab · United States :flag-US: | [ftp-chi.osuosl.org/pub](https://ftp-chi.osuosl.org/pub "https://ftp-chi.osuosl.org/pub") |
| NA · Fremont Cabal Internet Exchange (FCIX) · United States :flag-US: | [mirror.fcix.net](https://mirror.fcix.net "https://mirror.fcix.net") |
| NA · xTom · United States :flag-US: | [mirrors.xtom.com](https://mirrors.xtom.com "https://mirrors.xtom.com") |
| NA · Steadfast · United States :flag-US: | [mirror.steadfast.net](https://mirror.steadfast.net "https://mirror.steadfast.net") |
| NA · University of British Columbia · Canada :flag-CA: | [mirror.it.ubc.ca](https://mirror.it.ubc.ca "https://mirror.it.ubc.ca") |
| NA · GoCodeIT · Canada :flag-CA: | [mirror.xenyth.net](https://mirror.xenyth.net "https://mirror.xenyth.net") |
| NA · Switch · Canada :flag-CA: | [mirrors.switch.ca](https://mirrors.switch.ca "https://mirrors.switch.ca") |
=== ":fontawesome-solid-earth-americas: South America"
| Mirror Name | Mirror URL |
| :- | :-: |
| South America · PoP-SC · Brazil :flag-BR: | [mirror.pop-sc.rnp.br/mirror](https://mirror.pop-sc.rnp.br/mirror "https://mirror.pop-sc.rnp.br/mirror") |
| South America · State University of Ponta Grossa · Brazil :flag-BR: | [mirror.uepg.br](https://mirror.uepg.br "https://mirror.uepg.br") |
| South America · UFSCar · Brazil :flag-BR: | [mirror.ufscar.br](https://mirror.ufscar.br "https://mirror.ufscar.br") |
| South America · Sysarmy Community · Argentina :flag-AR: | [mirrors.eze.sysarmy.com](https://mirrors.eze.sysarmy.com "https://mirrors.eze.sysarmy.com") |
| SA · PoP-SC · Brazil :flag-BR: | [mirror.pop-sc.rnp.br/mirror](https://mirror.pop-sc.rnp.br/mirror "https://mirror.pop-sc.rnp.br/mirror") |
| SA · State University of Ponta Grossa · Brazil :flag-BR: | [mirror.uepg.br](https://mirror.uepg.br "https://mirror.uepg.br") |
| SA · UFSCar · Brazil :flag-BR: | [mirror.ufscar.br](https://mirror.ufscar.br "https://mirror.ufscar.br") |
| SA · Sysarmy Community · Argentina :flag-AR: | [mirrors.eze.sysarmy.com](https://mirrors.eze.sysarmy.com "https://mirrors.eze.sysarmy.com") |
=== ":fontawesome-solid-earth-oceania: Oceania"
| Mirror Name | Mirror URL |
| :- | :-: |
| Oceania · Fremont Cabal Internet Exchange (FCIX) · Australia :flag-AU: | [gsl-syd.mm.fcix.net](https://gsl-syd.mm.fcix.net "https://gsl-syd.mm.fcix.net") |
| Oceania · AARNet · Australia :flag-AU: | [mirror.aarnet.edu.au/pub](https://mirror.aarnet.edu.au/pub "https://mirror.aarnet.edu.au/pub") |
| Oceania · DataMossa · Australia :flag-AU: | [mirror.datamossa.io](https://mirror.datamossa.io "https://mirror.datamossa.io") |
| Oceania · Amaze · Australia :flag-AU: | [mirror.amaze.com.au](https://mirror.amaze.com.au "https://mirror.amaze.com.au") |
| Oceania · xTom · Australia :flag-AU: | [mirrors.xtom.au](https://mirrors.xtom.au "https://mirrors.xtom.au") |
| Oceania · Over the Wire · Australia :flag-AU: | [mirror.overthewire.com.au](https://mirror.overthewire.com.au "https://mirror.overthewire.com.au") |
| Oceania · Free Software Mirror Group · New Zealand :flag-NZ: | [mirror.fsmg.org.nz](https://mirror.fsmg.org.nz "https://mirror.fsmg.org.nz") |
| OC · Fremont Cabal Internet Exchange (FCIX) · Australia :flag-AU: | [gsl-syd.mm.fcix.net](https://gsl-syd.mm.fcix.net "https://gsl-syd.mm.fcix.net") |
| OC · AARNet · Australia :flag-AU: | [mirror.aarnet.edu.au/pub](https://mirror.aarnet.edu.au/pub "https://mirror.aarnet.edu.au/pub") |
| OC · DataMossa · Australia :flag-AU: | [mirror.datamossa.io](https://mirror.datamossa.io "https://mirror.datamossa.io") |
| OC · Amaze · Australia :flag-AU: | [mirror.amaze.com.au](https://mirror.amaze.com.au "https://mirror.amaze.com.au") |
| OC · xTom · Australia :flag-AU: | [mirrors.xtom.au](https://mirrors.xtom.au "https://mirrors.xtom.au") |
| OC · Over the Wire · Australia :flag-AU: | [mirror.overthewire.com.au](https://mirror.overthewire.com.au "https://mirror.overthewire.com.au") |
| OC · Free Software Mirror Group · New Zealand :flag-NZ: | [mirror.fsmg.org.nz](https://mirror.fsmg.org.nz "https://mirror.fsmg.org.nz") |
=== ":fontawesome-solid-earth-africa: Africa"
| Mirror Name | Mirror URL |
| :- | :-: |
| Africa · Liquid Telecom · Kenya :flag-KE: | [mirror.liquidtelecom.com](https://mirror.liquidtelecom.com "https://mirror.liquidtelecom.com") |
| Africa · Dimension Data · South Africa :flag-ZA: | [mirror.dimensiondata.com](https://mirror.dimensiondata.com "https://mirror.dimensiondata.com") |
| AF · Liquid Telecom · Kenya :flag-KE: | [mirror.liquidtelecom.com](https://mirror.liquidtelecom.com "https://mirror.liquidtelecom.com") |
| AF · Dimension Data · South Africa :flag-ZA: | [mirror.dimensiondata.com](https://mirror.dimensiondata.com "https://mirror.dimensiondata.com") |
=== ":octicons-globe-16: All"
| Mirror Name | Mirror URL |
| :- | :-: |
| Asia · xTom · Hong Kong :flag-HK: | [mirrors.xtom.hk](https://mirrors.xtom.hk "https://mirrors.xtom.hk") |
| Asia · 01Link · Hong Kong :flag-HK: | [mirror.01link.hk](https://mirror.01link.hk "https://mirror.01link.hk") |
| Asia · National University of Singapore (NUS) · Singapore :flag-SG: | [download.nus.edu.sg/mirror](https://download.nus.edu.sg "https://download.nus.edu.sg") |
| Asia · SG.GS · Singapore :flag-SG: | [mirror.sg.gs](https://mirror.sg.gs "https://mirror.sg.gs") |
| Asia · xTom · Singapore :flag-SG: | [mirrors.xtom.sg](https://mirrors.xtom.sg "https://mirrors.xtom.sg") |
| Asia · NCHC Free Software Lab · Taiwan :flag-TW: | [free.nchc.org.tw](https://free.nchc.org.tw "https://free.nchc.org.tw") |
| Asia · OSS Planet · Taiwan :flag-TW: | [mirror.ossplanet.net](https://mirror.ossplanet.net "https://mirror.ossplanet.net") |
| Asia · National Yang Ming Chiao Tung University · Taiwan :flag-TW: | [linux.cs.nctu.edu.tw](https://linux.cs.nctu.edu.tw "https://linux.cs.nctu.edu.tw") |
| Asia · Tamkang University · Taiwan :flag-TW: | [ftp.tku.edu.tw](https://ftp.tku.edu.tw "https://ftp.tku.edu.tw") |
| Asia · AniGil Linux Archive · Korea :flag-KR: | [mirror.anigil.com](https://mirror.anigil.com "https://mirror.anigil.com") |
| Asia · ICSCoE (Industrial Cyber Security Center of Excellence) · Japan :flag-JP: | [ftp.udx.icscoe.jp/Linux](https://ftp.udx.icscoe.jp/Linux "https://ftp.udx.icscoe.jp/Linux") |
| Asia · JAIST (Japan Advanced Institute of Science and Technology) · Japan :flag-JP: | [ftp.jaist.ac.jp/pub/Linux](https://ftp.jaist.ac.jp/pub/Linux "https://ftp.jaist.ac.jp/pub/Linux") |
| Asia · Yamagata University · Japan :flag-JP: | [linux2.yz.yamagata-u.ac.jp/pub/Linux](https://linux2.yz.yamagata-u.ac.jp/pub/Linux "https://linux2.yz.yamagata-u.ac.jp/pub/Linux") |
| Asia · xTom · Japan :flag-JP: | [mirrors.xtom.jp](https://mirrors.xtom.jp "https://mirrors.xtom.jp") |
| Asia · GB Network Solutions · Malaysia :flag-MY: | [mirrors.gbnetwork.com](https://mirrors.gbnetwork.com "https://mirrors.gbnetwork.com") |
| Asia · Khon Kaen University · Thailand :flag-TH: | [mirror.kku.ac.th](https://mirror.kku.ac.th "https://mirror.kku.ac.th") |
| Europe · Vorboss Ltd · UK :flag-GB: | [mirror.vorboss.net](https://mirror.vorboss.net "https://mirror.vorboss.net") |
| Europe · QuickHost · UK :flag-GB: | [mirror.quickhost.uk](https://mirror.quickhost.uk "https://mirror.quickhost.uk") |
| Europe · dogado · Germany :flag-DE: | [mirror.dogado.de](https://mirror.dogado.de "https://mirror.dogado.de") |
| Europe · xTom · Germany :flag-DE: | [mirrors.xtom.de](https://mirrors.xtom.de "https://mirrors.xtom.de") |
| Europe · RWTH Aachen University · Germany :flag-DE: | [ftp.halifax.rwth-aachen.de](https://ftp.halifax.rwth-aachen.de "https://ftp.halifax.rwth-aachen.de") |
| Europe · Dresden University (AG DSN) · Germany :flag-DE: | [ftp.agdsn.de](https://ftp.agdsn.de "https://ftp.agdsn.de") |
| Europe · CCIN2P3 · France :flag-FR: | [mirror.in2p3.fr/pub/linux](https://mirror.in2p3.fr/pub/linux "https://mirror.in2p3.fr/pub/linux") |
| Europe · Ircam · France :flag-FR: | [mirrors.ircam.fr/pub](https://mirrors.ircam.fr/pub "https://mirrors.ircam.fr/pub") |
| Europe · Crans · France :flag-FR: | [eclats.crans.org](https://eclats.crans.org "https://eclats.crans.org") |
| Europe · CRIHAN · France :flag-FR: | [ftp.crihan.fr](https://ftp.crihan.fr "https://ftp.crihan.fr") |
| Europe · xTom · Netherlands :flag-NL: | [mirrors.xtom.nl](https://mirrors.xtom.nl "https://mirrors.xtom.nl") |
| Europe · DataPacket · Netherlands :flag-NL: | [mirror.datapacket.com](https://mirror.datapacket.com "https://mirror.datapacket.com") |
| Europe · Linux Kernel · Netherlands :flag-NL: | [eu.edge.kernel.org](https://eu.edge.kernel.org "https://eu.edge.kernel.org") |
| Europe · xTom · Estonia :flag-EE: | [mirrors.xtom.ee](https://mirrors.xtom.ee "https://mirrors.xtom.ee") |
| Europe · netsite · Denmark :flag-DK: | [mirror.netsite.dk](https://mirror.netsite.dk "https://mirror.netsite.dk") |
| Europe · Dotsrc · Denmark :flag-DK: | [mirrors.dotsrc.org](https://mirrors.dotsrc.org "https://mirrors.dotsrc.org") |
| Europe · Academic Computer Club · Sweden :flag-SE: | [mirror.accum.se](https://mirror.accum.se "https://mirror.accum.se") |
| Europe · Lysator · Sweden :flag-SE: | [ftp.lysator.liu.se](https://ftp.lysator.liu.se "https://ftp.lysator.liu.se") |
| Europe · Yandex · Russia :flag-RU: | [mirror.yandex.ru](https://mirror.yandex.ru "https://mirror.yandex.ru") |
| Europe · ia64 · Russia :flag-RU: | [mirror.linux-ia64.org](https://mirror.linux-ia64.org "https://mirror.linux-ia64.org") |
| Europe · Truenetwork · Russia :flag-RU: | [mirror.truenetwork.ru](https://mirror.truenetwork.ru "https://mirror.truenetwork.ru") |
| Europe · Belgian Research Network · Belgium :flag-BE: | [ftp.belnet.be/mirror](https://ftp.belnet.be/mirror "https://ftp.belnet.be/mirror") |
| Europe · University of Crete Computer Center · Greece :flag-GR: | [ftp.cc.uoc.gr/mirrors/linux](https://ftp.cc.uoc.gr/mirrors/linux "https://ftp.cc.uoc.gr/mirrors/linux") |
| Europe · Masaryk University Faculty of Informatics · Czech Republic :flag-CZ: | [ftp.fi.muni.cz/pub/linux](https://ftp.fi.muni.cz/pub/linux "https://ftp.fi.muni.cz/pub/linux") |
| Europe · Czech Technical University Student Club (Silicon Hill) · Czech Republic :flag-CZ: | [ftp.sh.cvut.cz](https://ftp.sh.cvut.cz "https://ftp.sh.cvut.cz") |
| Europe · Vodafone · Czech Republic :flag-CZ: | [mirror.karneval.cz/pub/linux](https://mirror.karneval.cz/pub/linux "https://mirror.karneval.cz/pub/linux") |
| Europe · CZ.NIC · Czech Republic :flag-CZ: | [mirrors.nic.cz](https://mirrors.nic.cz "https://mirrors.nic.cz") |
| Europe · ETH Zurich · Switzerland :flag-CH: | [mirror.ethz.ch](https://mirror.ethz.ch "https://mirror.ethz.ch") |
| North America · Linux Kernel · USA :flag-US: | [mirrors.kernel.org](https://mirrors.kernel.org "https://mirrors.kernel.org") |
| North America · MIT · USA :flag-US: | [mirrors.mit.edu](https://mirrors.mit.edu "https://mirrors.mit.edu") |
| North America · Princeton University Department of Mathematics · USA :flag-US: | [mirror.math.princeton.edu/pub](https://mirror.math.princeton.edu/pub "https://mirror.math.princeton.edu/pub") |
| North America · Oregon State University Open Source Lab · USA :flag-US: | [ftp-chi.osuosl.org/pub](https://ftp-chi.osuosl.org/pub "https://ftp-chi.osuosl.org/pub") |
| North America · Fremont Cabal Internet Exchange (FCIX) · USA :flag-US: | [mirror.fcix.net](https://mirror.fcix.net "https://mirror.fcix.net") |
| North America · xTom · USA :flag-US: | [mirrors.xtom.com](https://mirrors.xtom.com "https://mirrors.xtom.com") |
| North America · Steadfast · USA :flag-US: | [mirror.steadfast.net](https://mirror.steadfast.net "https://mirror.steadfast.net") |
| North America · University of British Columbia · Canada :flag-CA: | [mirror.it.ubc.ca](https://mirror.it.ubc.ca "https://mirror.it.ubc.ca") |
| North America · GoCodeIT · Canada :flag-CA: | [mirror.xenyth.net](https://mirror.xenyth.net "https://mirror.xenyth.net") |
| North America · Switch · Canada :flag-CA: | [mirrors.switch.ca](https://mirrors.switch.ca "https://mirrors.switch.ca") |
| South America · PoP-SC · Brazil :flag-BR: | [mirror.pop-sc.rnp.br/mirror](https://mirror.pop-sc.rnp.br/mirror "https://mirror.pop-sc.rnp.br/mirror") |
| South America · State University of Ponta Grossa · Brazil :flag-BR: | [mirror.uepg.br](https://mirror.uepg.br "https://mirror.uepg.br") |
| South America · UFSCar · Brazil :flag-BR: | [mirror.ufscar.br](https://mirror.ufscar.br "https://mirror.ufscar.br") |
| South America · Sysarmy Community · Argentina :flag-AR: | [mirrors.eze.sysarmy.com](https://mirrors.eze.sysarmy.com "https://mirrors.eze.sysarmy.com") |
| Oceania · Fremont Cabal Internet Exchange (FCIX) · Australia :flag-AU: | [gsl-syd.mm.fcix.net](https://gsl-syd.mm.fcix.net "https://gsl-syd.mm.fcix.net") |
| Oceania · AARNet · Australia :flag-AU: | [mirror.aarnet.edu.au/pub](https://mirror.aarnet.edu.au/pub "https://mirror.aarnet.edu.au/pub") |
| Oceania · DataMossa · Australia :flag-AU: | [mirror.datamossa.io](https://mirror.datamossa.io "https://mirror.datamossa.io") |
| Oceania · Amaze · Australia :flag-AU: | [mirror.amaze.com.au](https://mirror.amaze.com.au "https://mirror.amaze.com.au") |
| Oceania · xTom · Australia :flag-AU: | [mirrors.xtom.au](https://mirrors.xtom.au "https://mirrors.xtom.au") |
| Oceania · Over the Wire · Australia :flag-AU: | [mirror.overthewire.com.au](https://mirror.overthewire.com.au "https://mirror.overthewire.com.au") |
| Oceania · Free Software Mirror Group · New Zealand :flag-NZ: | [mirror.fsmg.org.nz](https://mirror.fsmg.org.nz "https://mirror.fsmg.org.nz") |
| Africa · Liquid Telecom · Kenya :flag-KE: | [mirror.liquidtelecom.com](https://mirror.liquidtelecom.com "https://mirror.liquidtelecom.com") |
| Africa · Dimension Data · South Africa :flag-ZA: | [mirror.dimensiondata.com](https://mirror.dimensiondata.com "https://mirror.dimensiondata.com") |
| AS · xTom · Hong Kong :flag-HK: | [mirrors.xtom.hk](https://mirrors.xtom.hk "https://mirrors.xtom.hk") |
| AS · 01Link · Hong Kong :flag-HK: | [mirror.01link.hk](https://mirror.01link.hk "https://mirror.01link.hk") |
| AS · National University of Singapore (NUS) · Singapore :flag-SG: | [download.nus.edu.sg/mirror](https://download.nus.edu.sg "https://download.nus.edu.sg") |
| AS · SG.GS · Singapore :flag-SG: | [mirror.sg.gs](https://mirror.sg.gs "https://mirror.sg.gs") |
| AS · xTom · Singapore :flag-SG: | [mirrors.xtom.sg](https://mirrors.xtom.sg "https://mirrors.xtom.sg") |
| AS · NCHC Free Software Lab · Taiwan :flag-TW: | [free.nchc.org.tw](https://free.nchc.org.tw "https://free.nchc.org.tw") |
| AS · OSS Planet · Taiwan :flag-TW: | [mirror.ossplanet.net](https://mirror.ossplanet.net "https://mirror.ossplanet.net") |
| AS · National Yang Ming Chiao Tung University · Taiwan :flag-TW: | [linux.cs.nctu.edu.tw](https://linux.cs.nctu.edu.tw "https://linux.cs.nctu.edu.tw") |
| AS · Tamkang University · Taiwan :flag-TW: | [ftp.tku.edu.tw](https://ftp.tku.edu.tw "https://ftp.tku.edu.tw") |
| AS · Taiwan Digital Streaming · Taiwan :flag-TW: | [mirror.twds.com.tw](https://mirror.twds.com.tw "https://mirror.twds.com.tw") |
| AS · AniGil Linux Archive · Korea :flag-KR: | [mirror.anigil.com](https://mirror.anigil.com "https://mirror.anigil.com") |
| AS · ICSCoE (Industrial Cyber Security Center of Excellence) · Japan :flag-JP: | [ftp.udx.icscoe.jp/Linux](https://ftp.udx.icscoe.jp/Linux "https://ftp.udx.icscoe.jp/Linux") |
| AS · JAIST (Japan Advanced Institute of Science and Technology) · Japan :flag-JP: | [ftp.jaist.ac.jp/pub/Linux](https://ftp.jaist.ac.jp/pub/Linux "https://ftp.jaist.ac.jp/pub/Linux") |
| AS · Yamagata University · Japan :flag-JP: | [linux2.yz.yamagata-u.ac.jp/pub/Linux](https://linux2.yz.yamagata-u.ac.jp/pub/Linux "https://linux2.yz.yamagata-u.ac.jp/pub/Linux") |
| AS · xTom · Japan :flag-JP: | [mirrors.xtom.jp](https://mirrors.xtom.jp "https://mirrors.xtom.jp") |
| AS · GB Network Solutions · Malaysia :flag-MY: | [mirrors.gbnetwork.com](https://mirrors.gbnetwork.com "https://mirrors.gbnetwork.com") |
| AS · Khon Kaen University · Thailand :flag-TH: | [mirror.kku.ac.th](https://mirror.kku.ac.th "https://mirror.kku.ac.th") |
| EU · Vorboss Ltd · United Kiongdom :flag-GB: | [mirror.vorboss.net](https://mirror.vorboss.net "https://mirror.vorboss.net") |
| EU · QuickHost · United Kiongdom :flag-GB: | [mirror.quickhost.uk](https://mirror.quickhost.uk "https://mirror.quickhost.uk") |
| EU · dogado · Germany :flag-DE: | [mirror.dogado.de](https://mirror.dogado.de "https://mirror.dogado.de") |
| EU · xTom · Germany :flag-DE: | [mirrors.xtom.de](https://mirrors.xtom.de "https://mirrors.xtom.de") |
| EU · RWTH Aachen University · Germany :flag-DE: | [ftp.halifax.rwth-aachen.de](https://ftp.halifax.rwth-aachen.de "https://ftp.halifax.rwth-aachen.de") |
| EU · Dresden University (AG DSN) · Germany :flag-DE: | [ftp.agdsn.de](https://ftp.agdsn.de "https://ftp.agdsn.de") |
| EU · CCIN2P3 · France :flag-FR: | [mirror.in2p3.fr/pub/linux](https://mirror.in2p3.fr/pub/linux "https://mirror.in2p3.fr/pub/linux") |
| EU · Ircam · France :flag-FR: | [mirrors.ircam.fr/pub](https://mirrors.ircam.fr/pub "https://mirrors.ircam.fr/pub") |
| EU · Crans · France :flag-FR: | [eclats.crans.org](https://eclats.crans.org "https://eclats.crans.org") |
| EU · CRIHAN · France :flag-FR: | [ftp.crihan.fr](https://ftp.crihan.fr "https://ftp.crihan.fr") |
| EU · xTom · Netherlands :flag-NL: | [mirrors.xtom.nl](https://mirrors.xtom.nl "https://mirrors.xtom.nl") |
| EU · DataPacket · Netherlands :flag-NL: | [mirror.datapacket.com](https://mirror.datapacket.com "https://mirror.datapacket.com") |
| EU · Linux Kernel · Netherlands :flag-NL: | [eu.edge.kernel.org](https://eu.edge.kernel.org "https://eu.edge.kernel.org") |
| EU · xTom · Estonia :flag-EE: | [mirrors.xtom.ee](https://mirrors.xtom.ee "https://mirrors.xtom.ee") |
| EU · netsite · Denmark :flag-DK: | [mirror.netsite.dk](https://mirror.netsite.dk "https://mirror.netsite.dk") |
| EU · Dotsrc · Denmark :flag-DK: | [mirrors.dotsrc.org](https://mirrors.dotsrc.org "https://mirrors.dotsrc.org") |
| EU · Academic Computer Club · Sweden :flag-SE: | [mirror.accum.se](https://mirror.accum.se "https://mirror.accum.se") |
| EU · Lysator · Sweden :flag-SE: | [ftp.lysator.liu.se](https://ftp.lysator.liu.se "https://ftp.lysator.liu.se") |
| EU · Yandex · Russia :flag-RU: | [mirror.yandex.ru](https://mirror.yandex.ru "https://mirror.yandex.ru") |
| EU · ia64 · Russia :flag-RU: | [mirror.linux-ia64.org](https://mirror.linux-ia64.org "https://mirror.linux-ia64.org") |
| EU · Truenetwork · Russia :flag-RU: | [mirror.truenetwork.ru](https://mirror.truenetwork.ru "https://mirror.truenetwork.ru") |
| EU · Belgian Research Network · Belgium :flag-BE: | [ftp.belnet.be/mirror](https://ftp.belnet.be/mirror "https://ftp.belnet.be/mirror") |
| EU · University of Crete Computer Center · Greece :flag-GR: | [ftp.cc.uoc.gr/mirrors/linux](https://ftp.cc.uoc.gr/mirrors/linux "https://ftp.cc.uoc.gr/mirrors/linux") |
| EU · Masaryk University Faculty of Informatics · Czech :flag-CZ: | [ftp.fi.muni.cz/pub/linux](https://ftp.fi.muni.cz/pub/linux "https://ftp.fi.muni.cz/pub/linux") |
| EU · Czech Technical University Student Club (Silicon Hill) · Czech :flag-CZ: | [ftp.sh.cvut.cz](https://ftp.sh.cvut.cz "https://ftp.sh.cvut.cz") |
| EU · Vodafone · Czech :flag-CZ: | [mirror.karneval.cz/pub/linux](https://mirror.karneval.cz/pub/linux "https://mirror.karneval.cz/pub/linux") |
| EU · CZ.NIC · Czech :flag-CZ: | [mirrors.nic.cz](https://mirrors.nic.cz "https://mirrors.nic.cz") |
| EU · ETH Zurich · Switzerland :flag-CH: | [mirror.ethz.ch](https://mirror.ethz.ch "https://mirror.ethz.ch") |
| NA · Linux Kernel · United States :flag-US: | [mirrors.kernel.org](https://mirrors.kernel.org "https://mirrors.kernel.org") |
| NA · MIT · United States :flag-US: | [mirrors.mit.edu](https://mirrors.mit.edu "https://mirrors.mit.edu") |
| NA · Princeton University Department of Mathematics · United States :flag-US: | [mirror.math.princeton.edu/pub](https://mirror.math.princeton.edu/pub "https://mirror.math.princeton.edu/pub") |
| NA · Oregon State University Open Source Lab · United States :flag-US: | [ftp-chi.osuosl.org/pub](https://ftp-chi.osuosl.org/pub "https://ftp-chi.osuosl.org/pub") |
| NA · Fremont Cabal Internet Exchange (FCIX) · United States :flag-US: | [mirror.fcix.net](https://mirror.fcix.net "https://mirror.fcix.net") |
| NA · xTom · United States :flag-US: | [mirrors.xtom.com](https://mirrors.xtom.com "https://mirrors.xtom.com") |
| NA · Steadfast · United States :flag-US: | [mirror.steadfast.net](https://mirror.steadfast.net "https://mirror.steadfast.net") |
| NA · University of British Columbia · Canada :flag-CA: | [mirror.it.ubc.ca](https://mirror.it.ubc.ca "https://mirror.it.ubc.ca") |
| NA · GoCodeIT · Canada :flag-CA: | [mirror.xenyth.net](https://mirror.xenyth.net "https://mirror.xenyth.net") |
| NA · Switch · Canada :flag-CA: | [mirrors.switch.ca](https://mirrors.switch.ca "https://mirrors.switch.ca") |
| SA · PoP-SC · Brazil :flag-BR: | [mirror.pop-sc.rnp.br/mirror](https://mirror.pop-sc.rnp.br/mirror "https://mirror.pop-sc.rnp.br/mirror") |
| SA · State University of Ponta Grossa · Brazil :flag-BR: | [mirror.uepg.br](https://mirror.uepg.br "https://mirror.uepg.br") |
| SA · UFSCar · Brazil :flag-BR: | [mirror.ufscar.br](https://mirror.ufscar.br "https://mirror.ufscar.br") |
| SA · Sysarmy Community · Argentina :flag-AR: | [mirrors.eze.sysarmy.com](https://mirrors.eze.sysarmy.com "https://mirrors.eze.sysarmy.com") |
| OC · Fremont Cabal Internet Exchange (FCIX) · Australia :flag-AU: | [gsl-syd.mm.fcix.net](https://gsl-syd.mm.fcix.net "https://gsl-syd.mm.fcix.net") |
| OC · AARNet · Australia :flag-AU: | [mirror.aarnet.edu.au/pub](https://mirror.aarnet.edu.au/pub "https://mirror.aarnet.edu.au/pub") |
| OC · DataMossa · Australia :flag-AU: | [mirror.datamossa.io](https://mirror.datamossa.io "https://mirror.datamossa.io") |
| OC · Amaze · Australia :flag-AU: | [mirror.amaze.com.au](https://mirror.amaze.com.au "https://mirror.amaze.com.au") |
| OC · xTom · Australia :flag-AU: | [mirrors.xtom.au](https://mirrors.xtom.au "https://mirrors.xtom.au") |
| OC · Over the Wire · Australia :flag-AU: | [mirror.overthewire.com.au](https://mirror.overthewire.com.au "https://mirror.overthewire.com.au") |
| OC · Free Software Mirror Group · New Zealand :flag-NZ: | [mirror.fsmg.org.nz](https://mirror.fsmg.org.nz "https://mirror.fsmg.org.nz") |
| AF · Liquid Telecom · Kenya :flag-KE: | [mirror.liquidtelecom.com](https://mirror.liquidtelecom.com "https://mirror.liquidtelecom.com") |
| AF · Dimension Data · South Africa :flag-ZA: | [mirror.dimensiondata.com](https://mirror.dimensiondata.com "https://mirror.dimensiondata.com") |
???+ note "Help improve more overseas and foreign software sources"
The software repositories in this list are referenced from [`Ubuntu Mirrors`](https://launchpad.net/ubuntu/+cdmirrors "https://launchpad.net/ubuntu/+cdmirrors"), [`Debian Mirrors`](https://www.debian.org/CD/http-ftp/#mirrors "https://www.debian.org/CD/http-ftp/#mirrors"), and [`Fedora Mirror Manager`](https://mirrormanager.fedoraproject.org/mirrors "https://mirrormanager.fedoraproject.org/mirrors") and have all been verified for effectiveness, but not actually tested.
The author does not have the energy to continuously maintain these overseas mirror sites in the list. If you want to add more software sources or correct the existing ones, please modify the [`mirror_list_abroad array variable`](https://github.com/SuperManito/LinuxMirrors/blob/main/ChangeMirrors.sh#L70 "https://github.com/SuperManito/LinuxMirrors/blob/main/ChangeMirrors.sh#L70") in the script and modify it according to the following editing specifications.
You can submit [Pull Requests](https://github.com/SuperManito/LinuxMirrors/pulls "https://github.com/SuperManito/LinuxMirrors/pulls") to the GitHub repository after confirming the mirror address is correct. You can also fork the repository and customize it yourself.
- Overseas and foreign software source (mirror site) editing specifications:
Complete format: `Continent · Software Source Name · Country/Region@Software Source Address (Domain)`
Please sort according to geographical location, country or region for user selection. Units with iconic abbreviation characters should be supplemented in brackets at the end, and the name of the unit should prioritize the domain name. The following are naming rules:
- Educational institution: Use the Chinese translation of the name. If the full name contains the name of the country or region, it should also be included. Pay attention to distinguishing subordinate units, such as colleges, student unions, societies, etc. The common second-level domain name format is `ftp.mirrors.xxx.xxx`. The name of the top-level institution should be used directly. If there is a third-level domain name, consider whether to add the subordinate unit in the name. The domain name takes priority.
- Non-educational institutions: The brand name used by their parent official website should be prioritized, and it should be the official English name rather than the characters in the logo. If there is no official English name and the website is in a language other than Chinese or English, the website domain name should be used as the name.
## Tool Websites
@@ -237,4 +255,8 @@ search:
!!! tip "This page displays only the default repository addresses provided by the script. If you can't find the one you want, don't worry—the script supports custom addresses via command options. See [Advanced Usage](../use/index.md#command-options-advanced-usage) for details."
> The flag icons on this page are for quick geographic identification only and do not represent any political stance of the author. Please do not over-interpret. Statement made for clarification.
---
!!! warning "Because the information on this page may be controversial, it is recommended that you do not include this page's content in your sharing on certain social media platforms to avoid unnecessary trouble."
The flag icons on this page are for quick geographic identification only and do not represent any political stance of the author. Please do not over-interpret. Statement made for clarification.

View File

@@ -10,9 +10,7 @@ search:
## 中国大陆 :flag-CN:
> 下方列表中的镜像站均同步了 `Debian` `Ubuntu` `CentOS` `openSUSE` `openEuler` 软件仓库,列表根据单位性质、地理位置、名称长度进行排序,与实际速度无关
<div id="mirrors-table"><p>正在加载表格 <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" style="vertical-align: -0.15rem"><g stroke="currentColor"><circle cx="12" cy="12" r="9.5" fill="none" stroke-linecap="round" stroke-width="3"><animate attributeName="stroke-dasharray" calcMode="spline" dur="1.5s" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1" keyTimes="0;0.475;0.95;1" repeatCount="indefinite" values="0 150;42 150;42 150;42 150"/><animate attributeName="stroke-dashoffset" calcMode="spline" dur="1.5s" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1" keyTimes="0;0.475;0.95;1" repeatCount="indefinite" values="0;-16;-59;-59"/></circle><animateTransform attributeName="transform" dur="2s" repeatCount="indefinite" type="rotate" values="0 12 12;360 12 12"/></g></svg></p></div>
<div id="mirrors-table"><p>正在加载表格 <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" style="vertical-align: -0.15rem"><g stroke="var(--md-default-fg-color--light)"><circle cx="12" cy="12" r="9.5" fill="none" stroke-linecap="round" stroke-width="3"><animate attributeName="stroke-dasharray" calcMode="spline" dur="1.5s" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1" keyTimes="0;0.475;0.95;1" repeatCount="indefinite" values="0 150;42 150;42 150;42 150"/><animate attributeName="stroke-dashoffset" calcMode="spline" dur="1.5s" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1" keyTimes="0;0.475;0.95;1" repeatCount="indefinite" values="0;-16;-59;-59"/></circle><animateTransform attributeName="transform" dur="2s" repeatCount="indefinite" type="rotate" values="0 12 12;360 12 12"/></g></svg></p></div>
???+ question "使用帮助"
@@ -72,6 +70,7 @@ search:
| 亚洲 · OSS Planet · 台湾 :flag-TW: | [mirror.ossplanet.net](https://mirror.ossplanet.net "https://mirror.ossplanet.net") |
| 亚洲 · 国立阳明交通大学 · 台湾 :flag-TW: | [linux.cs.nctu.edu.tw](https://linux.cs.nctu.edu.tw "https://linux.cs.nctu.edu.tw") |
| 亚洲 · 淡江大学 · 台湾 :flag-TW: | [ftp.tku.edu.tw](https://ftp.tku.edu.tw "https://ftp.tku.edu.tw") |
| 亚洲 · Taiwan Digital Streaming · 台湾 :flag-TW: | [mirror.twds.com.tw](https://mirror.twds.com.tw "https://mirror.twds.com.tw") |
| 亚洲 · AniGil Linux Archive · 韩国 :flag-KR: | [mirror.anigil.com](https://mirror.anigil.com "https://mirror.anigil.com") |
| 亚洲 · 工业网络安全中心(ICSCoE) · 日本 :flag-JP: | [ftp.udx.icscoe.jp/Linux](https://ftp.udx.icscoe.jp/Linux "https://ftp.udx.icscoe.jp/Linux") |
| 亚洲 · 北陆先端科学技术大学院大学(JAIST) · 日本 :flag-JP: | [ftp.jaist.ac.jp/pub/Linux](https://ftp.jaist.ac.jp/pub/Linux "https://ftp.jaist.ac.jp/pub/Linux") |
@@ -169,6 +168,7 @@ search:
| 亚洲 · OSS Planet · 台湾 :flag-TW: | [mirror.ossplanet.net](https://mirror.ossplanet.net "https://mirror.ossplanet.net") |
| 亚洲 · 国立阳明交通大学 · 台湾 :flag-TW: | [linux.cs.nctu.edu.tw](https://linux.cs.nctu.edu.tw "https://linux.cs.nctu.edu.tw") |
| 亚洲 · 淡江大学 · 台湾 :flag-TW: | [ftp.tku.edu.tw](https://ftp.tku.edu.tw "https://ftp.tku.edu.tw") |
| 亚洲 · Taiwan Digital Streaming · 台湾 :flag-TW: | [mirror.twds.com.tw](https://mirror.twds.com.tw "https://mirror.twds.com.tw") |
| 亚洲 · AniGil Linux Archive · 韩国 :flag-KR: | [mirror.anigil.com](https://mirror.anigil.com "https://mirror.anigil.com") |
| 亚洲 · 工业网络安全中心(ICSCoE) · 日本 :flag-JP: | [ftp.udx.icscoe.jp/Linux](https://ftp.udx.icscoe.jp/Linux "https://ftp.udx.icscoe.jp/Linux") |
| 亚洲 · 北陆先端科学技术大学院大学(JAIST) · 日本 :flag-JP: | [ftp.jaist.ac.jp/pub/Linux](https://ftp.jaist.ac.jp/pub/Linux "https://ftp.jaist.ac.jp/pub/Linux") |
@@ -232,7 +232,7 @@ search:
该列表中的软件源参考自 [`Ubuntu 镜像列表`](https://launchpad.net/ubuntu/+cdmirrors "https://launchpad.net/ubuntu/+cdmirrors")、[`Debian 镜像列表`](https://www.debian.org/CD/http-ftp/#mirrors "https://www.debian.org/CD/http-ftp/#mirrors")、[`Fedora Mirror Manager`](https://mirrormanager.fedoraproject.org/mirrors "https://mirrormanager.fedoraproject.org/mirrors") 并且在此之前全部经过了有效性验证,但未作实际测试
作者没有精力持续维护列表中的这些境外、海外镜像站,如果你想补充更多软件源或更正当前已有,请修改脚本内的 [`mirror_list_abroad 数组变量`](https://github.com/SuperManito/LinuxMirrors/blame/main/ChangeMirrors.sh#L66 "https://github.com/SuperManito/LinuxMirrors/blame/main/ChangeMirrors.sh#L66") 并按照下面的编辑规范进行修改
作者没有精力持续维护列表中的这些境外、海外镜像站,如果你想补充更多软件源或更正当前已有,请修改脚本内的 [`mirror_list_abroad 数组变量`](https://github.com/SuperManito/LinuxMirrors/blob/main/ChangeMirrors.sh#L70 "https://github.com/SuperManito/LinuxMirrors/blob/main/ChangeMirrors.sh#L70") 并按照下面的编辑规范进行修改
你可以在确认镜像站地址无误后前往 GitHub 仓库提交 [Pull Requests](https://github.com/SuperManito/LinuxMirrors/pulls "https://github.com/SuperManito/LinuxMirrors/pulls"),也可以 :material-source-fork: Fork 仓库后自行定制使用
@@ -257,4 +257,8 @@ search:
!!! tip "该页面展示的均为脚本默认提供可供选择的软件源地址,如果没有找到你想使用的也没有关系,脚本支持命令选项可自定义使用,详见[高级用法](../use/index.md#命令选项高级用法)"
> 本页面涉及的旗帜图标仅用于快速区分地理位置,不代表作者任何的政治立场,请不要过度解读,特此声明。
---
!!! warning "由于该页面的信息可能会引起争议,为了避免不必要的麻烦,建议不要在部分社交媒体的分享中包含此页面内容"
本页面涉及的旗帜图标仅用于快速区分地理位置,不代表作者任何的政治立场,请不要过度解读,特此声明。

View File

@@ -8,15 +8,9 @@ search:
exclude: true
---
???+ question "友情提示"
本專案預設提供的軟體源列表主要服務位於中國大陸的用戶,因此對你來說該頁面上可能存在許多無用的資訊。作者沒有精力去採集和維護全世界的可用軟體源,因此可能需要透過命令選項自定義使用才能滿足你的實際需求,具體預設的國際軟體源詳見下方。
## 中國大陸 :flag-CN:
> 下方列表中的鏡像站均同步了 `Debian`、`Ubuntu`、`CentOS`、`openSUSE`、`openEuler` 軟體倉庫,列表根據單位性質、地理位置、名稱長度排序,與實際下載速度無關。
<div id="mirrors-table"><p>正在載入表格 <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" style="vertical-align: -0.15rem"><g stroke="currentColor"><circle cx="12" cy="12" r="9.5" fill="none" stroke-linecap="round" stroke-width="3"><animate attributeName="stroke-dasharray" calcMode="spline" dur="1.5s" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1" keyTimes="0;0.475;0.95;1" repeatCount="indefinite" values="0 150;42 150;42 150;42 150"/><animate attributeName="stroke-dashoffset" calcMode="spline" dur="1.5s" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1" keyTimes="0;0.475;0.95;1" repeatCount="indefinite" values="0;-16;-59;-59"/></circle><animateTransform attributeName="transform" dur="2s" repeatCount="indefinite" type="rotate" values="0 12 12;360 12 12"/></g></svg></p></div>
<div id="mirrors-table"><p>正在載入表格 <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" style="vertical-align: -0.15rem"><g stroke="var(--md-default-fg-color--light)"><circle cx="12" cy="12" r="9.5" fill="none" stroke-linecap="round" stroke-width="3"><animate attributeName="stroke-dasharray" calcMode="spline" dur="1.5s" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1" keyTimes="0;0.475;0.95;1" repeatCount="indefinite" values="0 150;42 150;42 150;42 150"/><animate attributeName="stroke-dashoffset" calcMode="spline" dur="1.5s" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1" keyTimes="0;0.475;0.95;1" repeatCount="indefinite" values="0;-16;-59;-59"/></circle><animateTransform attributeName="transform" dur="2s" repeatCount="indefinite" type="rotate" values="0 12 12;360 12 12"/></g></svg></p></div>
???+ question "使用幫助"
@@ -30,36 +24,36 @@ search:
| 鏡像站名稱 | 鏡像站位址 |
| :- | :-: |
| 北京大 | [mirrors.pku.edu.cn](https://mirrors.pku.edu.cn "https://mirrors.pku.edu.cn") |
| 北京交通大 | [mirror.bjtu.edu.cn](https://mirror.bjtu.edu.cn "https://mirror.bjtu.edu.cn") |
| 北京外国语大学 | [mirrors.bfsu.edu.cn](https://mirrors.bfsu.edu.cn "https://mirrors.bfsu.edu.cn") |
| 北京邮电大学 | [mirror.bupt.edu.cn](https://mirror.bupt.edu.cn "https://mirror.bupt.edu.cn") |
| 重庆大学 | [mirrors.cqu.edu.cn](https://mirrors.cqu.edu.cn "https://mirrors.cqu.edu.cn") |
| 重庆邮电大学 | [mirrors.cqupt.edu.cn](https://mirrors.cqupt.edu.cn "https://mirrors.cqupt.edu.cn") |
| 大连东软信息院 | [mirrors.neusoft.edu.cn](https://mirrors.neusoft.edu.cn "https://mirrors.neusoft.edu.cn") |
| 子科技大 | [mirrors.uestc.cn](https://mirrors.uestc.cn "https://mirrors.uestc.cn") |
| 华南农业大学 | [mirrors.scau.edu.cn](https://mirrors.scau.edu.cn "https://mirrors.scau.edu.cn") |
| 中科技大 | [mirrors.hust.edu.cn](https://mirrors.hust.edu.cn "https://mirrors.hust.edu.cn") |
| 吉林大 | [mirrors.jlu.edu.cn](https://mirrors.jlu.edu.cn "https://mirrors.jlu.edu.cn") |
| 楚理工院 | [mirrors.jcut.edu.cn](https://mirrors.jcut.edu.cn "https://mirrors.jcut.edu.cn") |
| 江西理工大 | [mirrors.jxust.edu.cn](https://mirrors.jxust.edu.cn "https://mirrors.jxust.edu.cn") |
| 州大 | [mirror.lzu.edu.cn](https://mirror.lzu.edu.cn "https://mirror.lzu.edu.cn") |
| 南京大 | [mirrors.nju.edu.cn](https://mirrors.nju.edu.cn "https://mirrors.nju.edu.cn") |
| 南京工业大学 | [mirrors.njtech.edu.cn](https://mirrors.njtech.edu.cn "https://mirrors.njtech.edu.cn") |
| 南京邮电大学 | [mirrors.njupt.edu.cn](https://mirrors.njupt.edu.cn "https://mirrors.njupt.edu.cn") |
| 南方科技大 | [mirrors.sustech.edu.cn](https://mirrors.sustech.edu.cn "https://mirrors.sustech.edu.cn") |
| 南理工院 | [mirror.nyist.edu.cn](https://mirror.nyist.edu.cn "https://mirror.nyist.edu.cn") |
| 齐鲁工业大学 | [mirrors.qlu.edu.cn](https://mirrors.qlu.edu.cn "https://mirrors.qlu.edu.cn") |
| 清华大学 | [mirrors.tuna.tsinghua.edu.cn](https://mirrors.tuna.tsinghua.edu.cn "https://mirrors.tuna.tsinghua.edu.cn") |
| 山东大学 | [mirrors.sdu.edu.cn](https://mirrors.sdu.edu.cn "https://mirrors.sdu.edu.cn") |
| 上海科技大 | [mirrors.shanghaitech.edu.cn](https://mirrors.shanghaitech.edu.cn "https://mirrors.shanghaitech.edu.cn") |
| 上海交通大(思源) | [mirror.sjtu.edu.cn](https://mirror.sjtu.edu.cn "https://mirror.sjtu.edu.cn") |
| 上海交通大(致 | [mirrors.sjtug.sjtu.edu.cn](https://mirrors.sjtug.sjtu.edu.cn "https://mirrors.sjtug.sjtu.edu.cn") |
| 武昌首义学院 | [mirrors.wsyu.edu.cn](https://mirrors.wsyu.edu.cn "https://mirrors.wsyu.edu.cn") |
| 西安交通大 | [mirrors.xjtu.edu.cn](https://mirrors.xjtu.edu.cn "https://mirrors.xjtu.edu.cn") |
| 西北林科技大 | [mirrors.nwafu.edu.cn](https://mirrors.nwafu.edu.cn "https://mirrors.nwafu.edu.cn") |
| 浙江大 | [mirrors.zju.edu.cn](https://mirrors.zju.edu.cn "https://mirrors.zju.edu.cn") |
| 中国科学技术大学 | [mirrors.ustc.edu.cn](https://mirrors.ustc.edu.cn "https://mirrors.ustc.edu.cn") |
| 北京大 | [mirrors.pku.edu.cn](https://mirrors.pku.edu.cn "https://mirrors.pku.edu.cn") |
| 北京交通大 | [mirror.bjtu.edu.cn](https://mirror.bjtu.edu.cn "https://mirror.bjtu.edu.cn") |
| 北京外國語大學 | [mirrors.bfsu.edu.cn](https://mirrors.bfsu.edu.cn "https://mirrors.bfsu.edu.cn") |
| 北京郵電大學 | [mirror.bupt.edu.cn](https://mirror.bupt.edu.cn "https://mirror.bupt.edu.cn") |
| 重慶大學 | [mirrors.cqu.edu.cn](https://mirrors.cqu.edu.cn "https://mirrors.cqu.edu.cn") |
| 重慶郵電大學 | [mirrors.cqupt.edu.cn](https://mirrors.cqupt.edu.cn "https://mirrors.cqupt.edu.cn") |
| 大連東軟信息院 | [mirrors.neusoft.edu.cn](https://mirrors.neusoft.edu.cn "https://mirrors.neusoft.edu.cn") |
| 子科技大 | [mirrors.uestc.cn](https://mirrors.uestc.cn "https://mirrors.uestc.cn") |
| 華南農業大學 | [mirrors.scau.edu.cn](https://mirrors.scau.edu.cn "https://mirrors.scau.edu.cn") |
| 中科技大 | [mirrors.hust.edu.cn](https://mirrors.hust.edu.cn "https://mirrors.hust.edu.cn") |
| 吉林大 | [mirrors.jlu.edu.cn](https://mirrors.jlu.edu.cn "https://mirrors.jlu.edu.cn") |
| 楚理工院 | [mirrors.jcut.edu.cn](https://mirrors.jcut.edu.cn "https://mirrors.jcut.edu.cn") |
| 江西理工大 | [mirrors.jxust.edu.cn](https://mirrors.jxust.edu.cn "https://mirrors.jxust.edu.cn") |
| 州大 | [mirror.lzu.edu.cn](https://mirror.lzu.edu.cn "https://mirror.lzu.edu.cn") |
| 南京大 | [mirrors.nju.edu.cn](https://mirrors.nju.edu.cn "https://mirrors.nju.edu.cn") |
| 南京工業大學 | [mirrors.njtech.edu.cn](https://mirrors.njtech.edu.cn "https://mirrors.njtech.edu.cn") |
| 南京郵電大學 | [mirrors.njupt.edu.cn](https://mirrors.njupt.edu.cn "https://mirrors.njupt.edu.cn") |
| 南方科技大 | [mirrors.sustech.edu.cn](https://mirrors.sustech.edu.cn "https://mirrors.sustech.edu.cn") |
| 南理工院 | [mirror.nyist.edu.cn](https://mirror.nyist.edu.cn "https://mirror.nyist.edu.cn") |
| 齊魯工業大學 | [mirrors.qlu.edu.cn](https://mirrors.qlu.edu.cn "https://mirrors.qlu.edu.cn") |
| 清華大學 | [mirrors.tuna.tsinghua.edu.cn](https://mirrors.tuna.tsinghua.edu.cn "https://mirrors.tuna.tsinghua.edu.cn") |
| 山東大學 | [mirrors.sdu.edu.cn](https://mirrors.sdu.edu.cn "https://mirrors.sdu.edu.cn") |
| 上海科技大 | [mirrors.shanghaitech.edu.cn](https://mirrors.shanghaitech.edu.cn "https://mirrors.shanghaitech.edu.cn") |
| 上海交通大(思源) | [mirror.sjtu.edu.cn](https://mirror.sjtu.edu.cn "https://mirror.sjtu.edu.cn") |
| 上海交通大(致 | [mirrors.sjtug.sjtu.edu.cn](https://mirrors.sjtug.sjtu.edu.cn "https://mirrors.sjtug.sjtu.edu.cn") |
| 武昌首義學院 | [mirrors.wsyu.edu.cn](https://mirrors.wsyu.edu.cn "https://mirrors.wsyu.edu.cn") |
| 西安交通大 | [mirrors.xjtu.edu.cn](https://mirrors.xjtu.edu.cn "https://mirrors.xjtu.edu.cn") |
| 西北林科技大 | [mirrors.nwafu.edu.cn](https://mirrors.nwafu.edu.cn "https://mirrors.nwafu.edu.cn") |
| 浙江大 | [mirrors.zju.edu.cn](https://mirrors.zju.edu.cn "https://mirrors.zju.edu.cn") |
| 中國科學技術大學 | [mirrors.ustc.edu.cn](https://mirrors.ustc.edu.cn "https://mirrors.ustc.edu.cn") |
## 國際地區 :flag-world-map:
@@ -76,6 +70,7 @@ search:
| 亞洲 · OSS Planet · 臺灣 :flag-TW: | [mirror.ossplanet.net](https://mirror.ossplanet.net "https://mirror.ossplanet.net") |
| 亞洲 · 國立陽明交通大學 · 臺灣 :flag-TW: | [linux.cs.nctu.edu.tw](https://linux.cs.nctu.edu.tw "https://linux.cs.nctu.edu.tw") |
| 亞洲 · 淡江大學 · 臺灣 :flag-TW: | [ftp.tku.edu.tw](https://ftp.tku.edu.tw "https://ftp.tku.edu.tw") |
| 亞洲 · Taiwan Digital Streaming · 臺灣 :flag-TW: | [mirror.twds.com.tw](https://mirror.twds.com.tw "https://mirror.twds.com.tw") |
| 亞洲 · AniGil Linux Archive · 韓國 :flag-KR: | [mirror.anigil.com](https://mirror.anigil.com "https://mirror.anigil.com") |
| 亞洲 · 工業網路安全中心(ICSCoE) · 日本 :flag-JP: | [ftp.udx.icscoe.jp/Linux](https://ftp.udx.icscoe.jp/Linux "https://ftp.udx.icscoe.jp/Linux") |
| 亞洲 · 北陸先端科學技術大學院大學(JAIST) · 日本 :flag-JP: | [ftp.jaist.ac.jp/pub/Linux](https://ftp.jaist.ac.jp/pub/Linux "https://ftp.jaist.ac.jp/pub/Linux") |
@@ -173,6 +168,7 @@ search:
| 亞洲 · OSS Planet · 臺灣 :flag-TW: | [mirror.ossplanet.net](https://mirror.ossplanet.net "https://mirror.ossplanet.net") |
| 亞洲 · 國立陽明交通大學 · 臺灣 :flag-TW: | [linux.cs.nctu.edu.tw](https://linux.cs.nctu.edu.tw "https://linux.cs.nctu.edu.tw") |
| 亞洲 · 淡江大學 · 臺灣 :flag-TW: | [ftp.tku.edu.tw](https://ftp.tku.edu.tw "https://ftp.tku.edu.tw") |
| 亞洲 · Taiwan Digital Streaming · 臺灣 :flag-TW: | [mirror.twds.com.tw](https://mirror.twds.com.tw "https://mirror.twds.com.tw") |
| 亞洲 · AniGil Linux Archive · 韓國 :flag-KR: | [mirror.anigil.com](https://mirror.anigil.com "https://mirror.anigil.com") |
| 亞洲 · 工業網路安全中心(ICSCoE) · 日本 :flag-JP: | [ftp.udx.icscoe.jp/Linux](https://ftp.udx.icscoe.jp/Linux "https://ftp.udx.icscoe.jp/Linux") |
| 亞洲 · 北陸先端科學技術大學院大學(JAIST) · 日本 :flag-JP: | [ftp.jaist.ac.jp/pub/Linux](https://ftp.jaist.ac.jp/pub/Linux "https://ftp.jaist.ac.jp/pub/Linux") |
@@ -232,6 +228,26 @@ search:
| 非洲 · Liquid Telecom · 肯亞 :flag-KE: | [mirror.liquidtelecom.com](https://mirror.liquidtelecom.com "https://mirror.liquidtelecom.com") |
| 非洲 · Dimension Data · 南非 :flag-ZA: | [mirror.dimensiondata.com](https://mirror.dimensiondata.com "https://mirror.dimensiondata.com") |
???+ note "幫助專案完善更多境外、海外軟體源"
此清單中的軟體源參考自 [`Ubuntu 鏡像清單`](https://launchpad.net/ubuntu/+cdmirrors "https://launchpad.net/ubuntu/+cdmirrors")、[`Debian 鏡像清單`](https://www.debian.org/CD/http-ftp/#mirrors "https://www.debian.org/CD/http-ftp/#mirrors")、[`Fedora Mirror Manager`](https://mirrormanager.fedoraproject.org/mirrors "https://mirrormanager.fedoraproject.org/mirrors") 並且在此之前全部經過有效性驗證,但在此之前未完成了實際測試
作者沒有精力持續維護清單中的這些境外、海外鏡像站,如果你想補充更多軟體源或更正目前已有,請修改腳本內的 [`mirror_list_abroad 陣列變數`](https://github.com/SuperManito/LinuxMirrors/blob/main/ChangeMirrors.sh#L70 "https://github.com/SuperManito/LinuxMirrors/blob/main/ChangeMirrors.sh#L70") 並依照下面的編輯規格進行修改
你可以在確認鏡像站位址無誤後前往 GitHub 倉庫提交 [Pull Requests](https://github.com/SuperManito/LinuxMirrors/pulls "https://github.com/SuperManito/LinuxMirrors/pulls"),也可以 :material-source-fork: Fork 倉庫後自訂使用
- 境外以及海外軟體源(鏡像站)編輯規格:
完整格式:`洲 · 軟體源名稱 · 國家/地區@軟體源位址(網域)`
請根據地理位置、國家或地區進行排序以便於使用者選擇,有標誌性縮寫字元的單位應在最後用括號補充,單位的名稱應以網域名稱作為優先原則,以下是命名規則:
- 教育單位:需使用中文譯名,全稱若含有國家或地區的名稱也要帶上,注意區分下屬單位,例如學院、學生會、社團等。常見的二級網域格式 `ftp.mirrors.xxx.xxx` 應直接採用頂級單位的名稱,如果有三級網域則應考慮是否在名稱中加上下屬單位,以網域為優先原則
註:`Technology` 一詞應稱為 `理工` 而不能使用翻譯結果的 `技術` 一詞,大部分教育單位都有正式或公認的中文譯名
- 非教育單位應優先採用其上屬官網所自稱的品牌名稱注意是正式的英文名稱而不是logo中的字符如果沒有並且網站是除中文、英文以外的語言文字應使用網站域名作為名稱
## 工具網站
<button class="md-button" title="https://tool.chinaz.com" onclick="window.open('https://tool.chinaz.com')">域名查詢</button>
@@ -241,4 +257,8 @@ search:
!!! tip "該頁面顯示的皆為腳本預設提供可供選擇的軟體源位址,如果沒有找到你想使用的也沒有關係,腳本支援命令選項可自定義使用,詳見[進階用法](../use/index.md#命令選項進階用法)"
> 本頁面涉及的旗幟圖示僅用於快速區分地理位置,不代表作者任何的政治立場,請不要過度解讀,特此聲明。
---
!!! warning "由於該頁面的資訊可能會引起爭議,為了避免不必要的麻煩,建議不要在部分社交媒體的分享中包含此頁面內容"
本頁面涉及的旗幟圖示僅用於快速區分地理位置,不代表作者任何的政治立場,請不要過度解讀,特此聲明。

View File

@@ -7,6 +7,7 @@ function install_docker() {
# script options
local script_host="linuxmirrors.cn" # official host (CDN), more host see official site
local script_lang="zh-hans" # script display language: zh-hans / zh-hant / en / auto
local close_firewall="true" # close firewalld service and selinux (redhat systems need)
# mirrors options
local source_docker_ce_address="mirrors.tencent.com/docker-ce" # global high availability address
@@ -58,6 +59,7 @@ function install_docker() {
--close-firewall "${close_firewall}" \
--install-latest true \
--ignore-backup-tips \
--lang "${script_lang}" \
--pure-mode
}

View File

@@ -7,7 +7,8 @@ function install_docker() {
bash <(curl -sSL https://${script_host}/docker.sh) \
--install-latest true \
--ignore-backup-tips
--ignore-backup-tips \
--lang auto
if command -v docker &>/dev/null; then
echo -e "\n# Docker installation successful.\n# Please run this script again manually after installation."

View File

@@ -15,39 +15,39 @@ hide:
=== ":linuxmirrors: Official Site (Recommended)"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh)
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --en
```
=== ":simple-github: GitHub"
``` bash
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/DockerInstallation.sh)
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/DockerInstallation.sh) --en
```
=== ":simple-gitee: Gitee"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh)
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh) --en
```
> Real-time sync, no delay. Recommended for use in Chinese mainland network environments.
=== ":simple-gitcode: GitCode"
``` bash
bash <(curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh)
bash <(curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh) --en
```
> 1-hour sync delay.
=== ":simple-jsdelivr: jsDelivr (CDN)"
``` bash
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/DockerInstallation.sh)
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/DockerInstallation.sh) --en
```
=== ":tencent-cloud: Tencent Cloud EO (CDN)"
``` bash
bash <(curl -sSL https://edgeone.linuxmirrors.cn/docker.sh)
bash <(curl -sSL https://edgeone.linuxmirrors.cn/docker.sh) --en
```
> Not recommended in Chinese mainland network environments.
@@ -62,39 +62,39 @@ hide:
=== ":linuxmirrors: Official Site (Recommended)"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --only-registry
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --en --only-registry
```
=== ":simple-github: GitHub"
``` bash
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/DockerInstallation.sh) --only-registry
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/DockerInstallation.sh) --en --only-registry
```
=== ":simple-gitee: Gitee"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh) --only-registry
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh) --en --only-registry
```
> Real-time sync, no delay. Recommended for use in Chinese mainland network environments.
=== ":simple-gitcode: GitCode"
``` bash
bash <(curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh) --only-registry
bash <(curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh) --en --only-registry
```
> 1-hour sync delay.
=== ":simple-jsdelivr: jsDelivr (CDN)"
``` bash
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/DockerInstallation.sh) --only-registry
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/DockerInstallation.sh) --en --only-registry
```
=== ":tencent-cloud: Tencent Cloud EO (CDN)"
``` bash
bash <(curl -sSL https://edgeone.linuxmirrors.cn/docker.sh) --only-registry
bash <(curl -sSL https://edgeone.linuxmirrors.cn/docker.sh) --en --only-registry
```
> Not recommended in Chinese mainland network environments.
@@ -110,7 +110,7 @@ hide:
---
Compatible with a number of derivative operating systems not supported by the official installation script. :material-information-outline:{ title="In addition to the systems displayed on the official website, it also supports special systems such as <code>Huawei Cloud EulerOS</code>&nbsp;&nbsp;<code>TencentOS Server</code>&nbsp;&nbsp;<code>Alibaba Cloud Linux</code>" }
Compatible with a number of derivative operating systems not supported by the official installation script. :material-information-outline:{ title="In addition to the operating systems shown on the official website homepage, it also supports special systems such as those shown below. </br><ul><li>Kylin Server</li><li>Huawei Cloud EulerOS</li><li>TencentOS Server</li><li>Alibaba Cloud Linux</li></ul>" }
- :material-weight-lifter:{ .lg .middle } __Powerful and unparalleled__
@@ -130,10 +130,10 @@ hide:
<p>✨ After years of technical accumulation and production environment testing, it has been widely praised by the community and deeply loved by developers. It is used by major companies.</p>
<div class="icon-brand-section">
<div class="icon-brand-container no-select">
<a class="icon-brand-button" target="_blank" href="https://1panel.pro" title="1Panel">
<a class="icon-brand-button" target="_blank" rel="noopener noreferrer" href="https://1panel.pro" title="1Panel">
<img src="/assets/images/sponsor/1panel.png" alt="1panel" />
</a>
<a class="icon-brand-button" target="_blank" href="https://www.aapanel.com" title="aaPanel" style="padding: 0 !important">
<a class="icon-brand-button" target="_blank" rel="noopener noreferrer" href="https://www.aapanel.com" title="aaPanel" style="padding: 0 !important">
<img src="/assets/images/other/aaPanel.png" alt="aapanel" style="width: 76% !important" />
</a>
</div>
@@ -209,21 +209,22 @@ hide:
<!-- termynal -->
```
$ bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --help
$ bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --en --help
Command options(name/meaning/value):
--source Specify Docker CE source address (domain or IP) address
--source-registry Specify Docker registry mirror address (domain or IP) address
--branch Specify Docker CE source repository (path) repo name
--branch-version Specify Docker CE source repository version version
--source Specify Docker CE mirror address (domain or IP) address
--source-registry Specify Docker Registry mirror address (domain or IP) address
--branch Specify Docker CE mirror repository (path) repo name
--branch-version Specify Docker CE mirror repository version version
--designated-version Specify Docker Engine installation version version
--codename Specify Debian-based OS codename codename
--protocol Specify Web protocol for Docker CE source http or https
--use-intranet-source Prefer intranet Docker CE source address true or false
--protocol Specify Web protocol for Docker CE mirror http or https
--use-intranet-source Prefer intranet Docker CE mirror address true or false
--install-latest Whether to install the latest Docker Engine true or false
--close-firewall Whether to disable the firewall true or false
--clean-screen Whether to clear the screen before running true or false
--lang Specify the language of the script output language
--only-registry Only switch registry mirror mode none
--ignore-backup-tips Ignore backup overwrite prompt (do not backup) none
--pure-mode Pure mode, minimal output none
@@ -232,17 +233,18 @@ Command options(name/meaning/value):
| Name | Meaning | Value |
| :-: | :-: | :-: |
| `--source` | Specify `Docker CE` source address (domain or IP) | `address` |
| `--source-registry` | Specify `Docker` registry mirror address (domain or IP) | `address` |
| `--branch` | Specify `Docker CE` source repository (path) | `repo name (see docs below)` |
| `--branch-version` | Specify `Docker CE` source repository version | `version (see docs below)` |
| `--source` | Specify `Docker CE` mirror address (domain or IP) | `address` |
| `--source-registry` | Specify `Docker Registry` mirror address (domain or IP) | `address (separate multiple entries with commas)` |
| `--branch` | Specify `Docker CE` mirror repository (path) | `repo name (see docs below)` |
| `--branch-version` | Specify `Docker CE` mirror repository version | `version (see docs below)` |
| `--designated-version` | Specify `Docker Engine` installation version | `version (see docs below)` |
| `--codename` | Specify `Debian-based` OS codename | `codename` |
| `--protocol` | Specify Web protocol for `Docker CE` source | `http` or `https` |
| `--use-intranet-source` | Prefer intranet `Docker CE` source address | `true` or `false` |
| `--protocol` | Specify Web protocol for `Docker CE` mirror | `http` or `https` |
| `--use-intranet-source` | Prefer intranet `Docker CE` mirror address | `true` or `false` |
| `--install-latest` | Whether to install the latest `Docker Engine` | `true` or `false` |
| `--close-firewall` | Whether to disable the firewall | `true` or `false` |
| `--clean-screen` | Whether to clear the screen before running | `true` or `false` |
| `--lang` | Specify the language of the script output | `language id (see docs below)` |
| `--only-registry` | Only switch registry mirror mode | none |
| `--ignore-backup-tips` | Ignore backup overwrite prompt (do not backup) | none |
| `--pure-mode` | Pure mode, minimal output | none |
@@ -253,7 +255,14 @@ Command options(name/meaning/value):
- ### Specify Registry Mirror Address
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --source-registry registry.example.com
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --en --source-registry registry.example.com
```
Can specify multiple addresses at the same time, and they must be separated by commas.
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --en \
--source-registry "registry-1.example.com,registry-2.example.com"
```
- ### Only Switch Registry Mirror
@@ -263,9 +272,18 @@ Command options(name/meaning/value):
Only switches the registry accelerator. If Docker is not installed, an error will be reported and exit.
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --only-registry
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --en --only-registry
```
Lazy one-click command (using multiple addresses)
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --en \
--only-registry \
--source-registry "docker.1ms.run,docker.1panel.live,docker.m.daocloud.io"
```
> The option value can specify multiple addresses, which must be separated by commas.
=== "Manual Replacement"
- Install the `jq` package
@@ -314,22 +332,22 @@ Command options(name/meaning/value):
- ### Specify Docker CE Source Address
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --source mirror.example.com/docker-ce
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --en --source mirror.example.com/docker-ce
```
> Note: The address path must include the Docker CE source repository path, i.e., `docker-ce`.
> Note: The address path must include the Docker CE mirror repository path, i.e., `docker-ce`.
- ### Specify Docker CE Source Repository
The script will automatically detect this in most cases. Specify only if you have special requirements.
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --branch centos
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --en --branch centos
```
> Repository names are fixed: `centos`, `debian`, `fedora`, `raspbian`, `rhel`, `sles`, `static`, `ubuntu`
> Repository names are fixed: [`centos`](https://download.docker.com/linux/centos/) [`debian`](https://download.docker.com/linux/debian/) [`fedora`](https://download.docker.com/linux/fedora/) [`raspbian`](https://download.docker.com/linux/raspbian/) [`rhel`](https://download.docker.com/linux/rhel/) [`sles`](https://download.docker.com/linux/sles/) [`static`](https://download.docker.com/linux/static/) [`ubuntu`](https://download.docker.com/linux/ubuntu/)
> See [official installation docs](https://docs.docker.com/engine/install) and [Docker CE official repo](https://download.docker.com/linux) for details.
``` { .bash .no-copy title="Can also specify the repository version number." }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) \
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --en \
--branch centos \
--branch-version 9
```
@@ -340,7 +358,7 @@ Command options(name/meaning/value):
When specifying a version, the "install latest" option is ignored. Format: `major.minor.patch`, e.g., `28.4.1`.
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --designated-version 28.0.0
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --en --designated-version 28.0.0
```
> If the specified version does not exist or is not supported on your system, the script will report an error and exit.
@@ -364,13 +382,41 @@ Command options(name/meaning/value):
Versions not listed are not supported by this script. If you cannot get the version list, your system environment has not been properly configured for the Docker CE repository (this will not happen when running the script).
- ### I18n (Internationalization)
The script provides multi-language support. Currently, there are three built-in display languages: `简体中文`、`繁體中文`、`English`. The default is `简体中文`.
- #### Specify Language
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --lang xxx
```
| Type | Value |
| :-: | :-: |
| 简体中文 | `zh-hans` `zh-cn` `zh` |
| 繁體中文 | `zh-hant` `zh-tw` `zh-hk` |
| English | `en` `en-us` |
It can also be used directly as a command option
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --zh-hant
```
> `--en` `--en-us` `--zh` `--zh-cn` `--zh-hans` `--zh-hant`
- #### Select through interaction
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --lang auto
```
- ### Unattended (Automation)
To perform installation without interaction, use at least the following options. Recommended for experienced users.
``` { .bash .no-copy title="Example Command" }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) \
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --en \
--source mirror.example.com/docker-ce \
--source-registry registry.hub.docker.com \
--protocol http \
@@ -386,14 +432,14 @@ Command options(name/meaning/value):
This feature is introduced to facilitate the use of developers and operation and maintenance personnel. After it is enabled, the script content output will be simplified. It is recommended to use it with other command options without interaction.
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --pure-mode
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --en --pure-mode
```
!!! tip "Scrolling command logs may have unpredictable display issues, but no problems have been found so far."
## FAQ
- ### About Service Startup Errors
- #### About Service Startup Errors
!!! quote ""
@@ -419,7 +465,7 @@ Command options(name/meaning/value):
After uninstalling, simply rerun the script to install.
- ### About unsupported operating systems
- #### About unsupported operating systems
If it prompts that it is not supported, please use the system's own package management tool to install it. Because these packages are built and maintained by the Linux distribution's package maintainers and may have differences in configuration or are built from modified source code.
@@ -438,4 +484,4 @@ Command options(name/meaning/value):
- #### Simple method
--8<-- "docs/other/example2.md"
> Note: If you don't specify `Docker CE source` and `Image repository source`, the script will be interactively selected by the user. The screen will be automatically cleared (`$ clear`) at this point, which will cause your script's log to be cleared.
> Note: If you don't specify `Docker CE` and `Docker Registry` mirrors, the script will be interactively selected by the user. The screen will be automatically cleared (`$ clear`) at this point, which will cause your script's log to be cleared.

View File

@@ -110,9 +110,9 @@ hide:
---
兼容大量不受官方安装脚本支持的衍生操作系统 :material-information-outline:{ title="除官网首页展示的系统外还支持 <code>Huawei Cloud EulerOS</code>&nbsp;&nbsp;<code>TencentOS Server</code>&nbsp;&nbsp;<code>Alibaba Cloud Linux</code> 等特制系统" }
兼容大量不受官方安装脚本支持的衍生操作系统 :material-information-outline:{ title="除官网首页展示的系统外还支持下方等特制系统</br><ul><li>Kylin Server</li><li>Huawei Cloud EulerOS</li><li>TencentOS Server</li><li>Alibaba Cloud Linux</li></ul>" }
- :material-weight-lifter:{ .lg .middle } __功能强大、无伦比__
- :material-weight-lifter:{ .lg .middle } __功能强大、无伦比__
---
@@ -130,10 +130,10 @@ hide:
<p>✨ 经过了数年的技术沉淀与生产环境检验,广受社区好评,深得开发者喜爱,大厂都在使用</p>
<div class="icon-brand-section">
<div class="icon-brand-container no-select">
<a class="icon-brand-button" target="_blank" href="https://1panel.cn" title="1Panel">
<a class="icon-brand-button" target="_blank" rel="noopener noreferrer" href="https://1panel.cn" title="1Panel">
<img src="/assets/images/sponsor/1panel.png" alt="1panel" />
</a>
<a class="icon-brand-button" target="_blank" href="https://www.bt.cn" title="宝塔面板" style="padding: 0 !important">
<a class="icon-brand-button" target="_blank" rel="noopener noreferrer" href="https://www.bt.cn" title="宝塔面板" style="padding: 0 !important">
<img src="/assets/images/other/bt.svg" alt="BT" />
</a>
</div>
@@ -224,6 +224,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --help
--install-latest 是否安装最新版本的 Docker Engine true 或 false
--close-firewall 是否关闭防火墙 true 或 false
--clean-screen 是否在运行前清除屏幕上的所有内容 true 或 false
--lang 指定脚本输出的语言 语言
--only-registry 仅更换镜像仓库模式 无
--ignore-backup-tips 忽略覆盖备份提示 无
--pure-mode 纯净模式,精简打印内容 无
@@ -233,7 +234,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --help
| 名称 | 含义 | 选项值 |
| :-: | :-: | :-: |
| `--source` | 指定 `Docker CE` 源地址(域名或IP) | `地址` |
| `--source-registry` | 指定 `Docker` 镜像仓库地址(域名或IP) | `地址` |
| `--source-registry` | 指定 `Docker` 镜像仓库地址(域名或IP) | `地址(多个用英文逗号分割)` |
| `--branch` | 指定 `Docker CE` 软件源仓库(路径) | `仓库名(详见下方文档)` |
| `--branch-version` | 指定 `Docker CE` 软件源仓库版本 | `版本号(详见下方文档)` |
| `--designated-version` | 指定 `Docker Engine` 安装版本 | `版本号(详见下方文档)` |
@@ -243,6 +244,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --help
| `--install-latest` | 是否安装最新版本的 `Docker Engine` | `true` 或 `false` |
| `--close-firewall` | 是否关闭防火墙 | `true` 或 `false` |
| `--clean-screen` | 是否在运行前清除屏幕上的所有内容 | `true` 或 `false` |
| `--lang` | 指定脚本输出的语言 | `语言ID详见下方文档` |
| `--only-registry` | 仅更换镜像仓库模式 | 无 |
| `--ignore-backup-tips` | 忽略覆盖备份提示(即不覆盖备份) | 无 |
| `--pure-mode` | 纯净模式,精简打印内容 | 无 |
@@ -256,6 +258,13 @@ $ bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --help
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --source-registry registry.example.com
```
可以同时指定多个地址,需使用英文逗号进行分割
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) \
--source-registry "registry-1.example.com,registry-2.example.com"
```
- ### 仅更换镜像仓库
=== "使用脚本一键替换"
@@ -266,6 +275,15 @@ $ bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --help
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --only-registry
```
懒人一键命令(使用多个地址)
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) \
--only-registry \
--source-registry "docker.1ms.run,docker.1panel.live,docker.m.daocloud.io"
```
> 选项值可以指定多个地址,需使用英文逗号进行分割
=== "手动替换"
- 安装 `jq` 软件包
@@ -325,7 +343,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --help
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --branch centos
```
> 仓库名是固定的,目前只有 `centos` `debian` `fedora` `raspbian` `rhel` `sles` `static` `ubuntu` 这几个
> 仓库名是固定的,目前只有 [`centos`](https://download.docker.com/linux/centos/) [`debian`](https://download.docker.com/linux/debian/) [`fedora`](https://download.docker.com/linux/fedora/) [`raspbian`](https://download.docker.com/linux/raspbian/) [`rhel`](https://download.docker.com/linux/rhel/) [`sles`](https://download.docker.com/linux/sles/) [`static`](https://download.docker.com/linux/static/) [`ubuntu`](https://download.docker.com/linux/ubuntu/) 这几个
> 具体详见 [官方安装文档](https://docs.docker.com/engine/install) 和 [Docker CE 官方仓库](https://download.docker.com/linux)
``` { .bash .no-copy title="还可以指定仓库版本号" }
@@ -364,6 +382,34 @@ $ bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --help
未出现在该列表中的版本则不支持通过本脚本安装,如果获取不到版本列表说明你当前的系统环境还没有正确配置 Docker CE 软件源(运行脚本时不存在该问题)
- ### 国际化I18n
脚本提供多语言支持,当前内置 `简体中文`、`繁體中文`、`English` 共三种显示语言,默认为 `简体中文`
- #### 指定语言
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --lang xxx
```
| 类型 | 值 |
| :-: | :-: |
| 简体中文 | `zh-hans` `zh-cn` `zh` |
| 繁體中文 | `zh-hant` `zh-tw` `zh-hk` |
| English | `en` `en-us` |
也可以直接作为命令选项使用
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --en
```
> `--en` `--en-us` `--zh` `--zh-cn` `--zh-hans` `--zh-hant`
- #### 通过交互进行选择
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --lang auto
```
- ### 无人值守(自动化)
@@ -393,7 +439,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --help
## 常见问题
- ### 关于服务报错无法启动
- #### 关于服务报错无法启动
!!! quote ""
@@ -419,7 +465,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --help
卸载完成后重新执行脚本安装即可
- ### 关于不支持的操作系统
- #### 关于不支持的操作系统
如果提示不支持那么请使用系统自带的包管理工具进行安装。因为这些软件包由 Linux 发行版的软件包维护者构建和维护,可能存在配置差异或由修改后的源代码构建。

View File

@@ -15,39 +15,39 @@ hide:
=== ":linuxmirrors: 官網(推薦)"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh)
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --zh-hant
```
=== ":simple-github: GitHub"
``` bash
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/DockerInstallation.sh)
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/DockerInstallation.sh) --zh-hant
```
=== ":simple-gitee: Gitee 碼雲 (鏡像倉庫)"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh)
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh) --zh-hant
```
> 即時同步、無延遲,中國大陸網路環境建議使用
=== ":simple-gitcode: GitCode (鏡像倉庫)"
``` bash
bash <(curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh)
bash <(curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh) --zh-hant
```
> 同步存在1小時延遲
=== ":simple-jsdelivr: jsDelivr (CDN)"
``` bash
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/DockerInstallation.sh)
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/DockerInstallation.sh) --zh-hant
```
=== ":tencent-cloud: 騰訊雲 EO (CDN)"
``` bash
bash <(curl -sSL https://edgeone.linuxmirrors.cn/docker.sh)
bash <(curl -sSL https://edgeone.linuxmirrors.cn/docker.sh) --zh-hant
```
> 不建議在中國大陸網路環境下使用
@@ -62,39 +62,39 @@ hide:
=== ":linuxmirrors: 官網(推薦)"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --only-registry
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --zh-hant --only-registry
```
=== ":simple-github: GitHub"
``` bash
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/DockerInstallation.sh) --only-registry
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/DockerInstallation.sh) --zh-hant --only-registry
```
=== ":simple-gitee: Gitee 碼雲 (映像倉庫)"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh) --only-registry
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh) --zh-hant --only-registry
```
> 即時同步、無延遲,中國大陸網路環境建議使用
=== ":simple-gitcode: GitCode (映像倉庫)"
``` bash
bash <(curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh) --only-registry
bash <(curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh) --zh-hant --only-registry
```
> 同步存在1小時延遲
=== ":simple-jsdelivr: jsDelivr (CDN)"
``` bash
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/DockerInstallation.sh) --only-registry
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/DockerInstallation.sh) --zh-hant --only-registry
```
=== ":tencent-cloud: 騰訊雲 EO (CDN)"
``` bash
bash <(curl -sSL https://edgeone.linuxmirrors.cn/docker.sh) --only-registry
bash <(curl -sSL https://edgeone.linuxmirrors.cn/docker.sh) --zh-hant --only-registry
```
> 不建議在中國大陸網路環境下使用
@@ -110,7 +110,7 @@ hide:
---
相容於大量不受官方安裝腳本支援的衍生作業系統 :material-information-outline:{ title="除官網首頁展示的系統外支援 <code>Huawei Cloud EulerOS</code>&nbsp;&nbsp;<code>TencentOS Server</code>&nbsp;&nbsp;<code>Alibaba Cloud Linux</code> 等特製系統" }
相容於大量不受官方安裝腳本支援的衍生作業系統 :material-information-outline:{ title="除官網首頁展示的系統外支援下方等特製系統</br><ul><li>Kylin Server</li><li>Huawei Cloud EulerOS</li><li>TencentOS Server</li><li>Alibaba Cloud Linux</li></ul>" }
- :material-weight-lifter:{ .lg .middle } __功能強大、無與倫比__
@@ -130,10 +130,10 @@ hide:
<p>✨ 經過了數年的技術沉澱與生產環境檢驗,廣受社區好評,深得開發者喜愛,大廠都在使用</p>
<div class="icon-brand-section">
<div class="icon-brand-container no-select">
<a class="icon-brand-button" target="_blank" href="https://1panel.pro" title="1Panel">
<a class="icon-brand-button" target="_blank" rel="noopener noreferrer" href="https://1panel.pro" title="1Panel">
<img src="/assets/images/sponsor/1panel.png" alt="1panel" />
</a>
<a class="icon-brand-button" target="_blank" href="https://www.aapanel.com" title="aaPanel" style="padding: 0 !important">
<a class="icon-brand-button" target="_blank" rel="noopener noreferrer" href="https://www.aapanel.com" title="aaPanel" style="padding: 0 !important">
<img src="/assets/images/other/aaPanel.png" alt="aapanel" style="width: 76% !important" />
</a>
</div>
@@ -209,7 +209,7 @@ hide:
<!-- termynal -->
```
$ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
$ bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --zh-hant --help
命令選項(名稱/含義/值)
@@ -224,6 +224,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
--install-latest 是否安裝最新版本的 Docker Engine true 或 false
--close-firewall 是否關閉防火牆 true 或 false
--clean-screen 是否在運行前清除螢幕上的所有內容 true 或 false
--lang 指定腳本輸出的語言 语言
--only-registry 僅更換映像倉庫模式 無
--ignore-backup-tips 忽略覆蓋備份提示 無
--pure-mode 純淨模式,精簡列印內容 無
@@ -233,7 +234,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
| 名稱 | 意義 | 選項值 |
| :-: | :-: | :-: |
| `--source` | 指定 `Docker CE` 軟體源位址(網域名稱或IP) | `位址` |
| `--source-registry` | 指定 `Docker` 映像倉庫位址(網域名稱或IP) | `位址` |
| `--source-registry` | 指定 `Docker` 映像倉庫位址(網域名稱或IP) | `位址(多個用英文逗號分割)` |
| `--branch` | 指定 `Docker CE` 軟體源倉庫(路徑) | `倉庫名稱(詳見下方文件)` |
| `--branch-version` | 指定 `Docker CE` 軟體源倉庫版本 | `版本號(詳見下方文件)` |
| `--designated-version` | 指定 `Docker Engine` 安裝版本 | `版本號(詳見下方文件)` |
@@ -243,6 +244,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
| `--install-latest` | 是否安裝最新版本的 `Docker Engine` | `true` 或 `false` |
| `--close-firewall` | 是否關閉防火牆 | `true` 或 `false` |
| `--clean-screen` | 是否在運行前清除螢幕上的所有內容 | `true` 或 `false` |
| `--lang` | 指定腳本輸出的語言 | `語言ID詳見下方文件` |
| `--only-registry` | 僅更換映像倉庫模式 | 無 |
| `--ignore-backup-tips` | 忽略覆蓋備份提示(即不覆蓋備份) | 無 |
| `--pure-mode` | 純淨模式,精簡列印內容 | 無 |
@@ -253,7 +255,14 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
- ### 指定映像倉庫位址
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --source-registry registry.example.com
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --zh-hant --source-registry registry.example.com
```
可同時指定多個地址,需使用英文逗號分割
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --zh-hant \
--source-registry "registry-1.example.com,registry-2.example.com"
```
- ### 僅更換映像倉庫
@@ -263,9 +272,18 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
僅更換鏡像加速器,當偵測到未安裝 Docker 時會報錯跳出
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --only-registry
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --zh-hant --only-registry
```
懶人一鍵指令(使用多個位址)
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --zh-hant \
--only-registry \
--source-registry "docker.1ms.run,docker.1panel.live,docker.m.daocloud.io"
```
> 選項值可以指定多個位址,需使用英文逗號分割
=== "手動替換"
- 安裝 `jq` 軟體包
@@ -314,7 +332,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
- ### 指定 `Docker CE` 軟體源位址
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --source mirror.example.com/docker-ce
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --zh-hant --source mirror.example.com/docker-ce
```
> 注意該位址路徑需要包含映像站的 Docker CE 軟體源倉庫路徑即 `docker-ce`
@@ -323,13 +341,13 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
腳本預設會自動判斷一般無需指定,除非你有特殊需求
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --branch centos
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --zh-hant --branch centos
```
> 倉庫名稱是固定的,目前只有 `centos` `debian` `fedora` `raspbian` `rhel` `sles` `static` `ubuntu` 這幾個
> 倉庫名稱是固定的,目前只有 [`centos`](https://download.docker.com/linux/centos/) [`debian`](https://download.docker.com/linux/debian/) [`fedora`](https://download.docker.com/linux/fedora/) [`raspbian`](https://download.docker.com/linux/raspbian/) [`rhel`](https://download.docker.com/linux/rhel/) [`sles`](https://download.docker.com/linux/sles/) [`static`](https://download.docker.com/linux/static/) [`ubuntu`](https://download.docker.com/linux/ubuntu/) 這幾個
> 詳情請見 [官方安裝文件](https://docs.docker.com/engine/install) 及 [Docker CE 官方倉庫](https://download.docker.com/linux)
``` { .bash .no-copy title="还可以指定倉庫版本號" }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) \
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --zh-hant \
--branch centos \
--branch-version 9
```
@@ -340,9 +358,9 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
指定安裝版本時會忽略 `是否安裝最新版本` 的命令選項,格式為 `主版.次版本.補丁版本`,例如 `28.4.1`。
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --designated-version 28.0.0
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --zh-hant --designated-version 28.0.0
```
> 如果指定的版本不存在或不支援目前系統,屆時腳本會報錯跳出
> 如果指定的版本不存在或不支援當前作業系統,屆時腳本會報錯跳出
??? quote "查看版本清單的方法"
@@ -364,13 +382,41 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
未出現在該清單中的版本則不支援透過本腳本安裝,如果取得不到版本清單說明你目前的系統環境還沒有正確配置 Docker CE 軟體軟體源(執行腳本時不存在該問題)
- ### 國際化I18n
腳本提供多語言支持,目前內建 `简体中文`、`繁體中文`、`English` 共三種顯示語言,預設為 `简体中文`
- #### 指定語言
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --lang xxx
```
| 類型 | 值 |
| :-: | :-: |
| 简体中文 | `zh-hans` `zh-cn` `zh` |
| 繁體中文 | `zh-hant` `zh-tw` `zh-hk` |
| English | `en` `en-us` |
也可以直接作為指令選項使用
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --en
```
> `--en` `--en-us` `--zh` `--zh-cn` `--zh-hans` `--zh-hant`
- #### 透過互動進行選擇
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --lang auto
```
- ### 無人值守(自動化)
不透過交互完成安裝操作,至少需要使用以下命令選項來實現,建議熟悉後再使用
``` { .bash .no-copy title="参考命令" }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) \
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --zh-hant \
--source mirror.example.com/docker-ce \
--source-registry registry.hub.docker.com \
--protocol http \
@@ -386,14 +432,14 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
推出此功能是為了方便開發以及运维人員使用,啟用後會精簡腳本內容輸出,建議搭配其它指令選項無互動使用
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --pure-mode
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --zh-hant --pure-mode
```
!!! tip "滾動輸出的命令日誌可能有無法預料的顯示問題,不過目前暫未發現異常"
## 常見問題
- ### 關於服務報錯無法啟動
- #### 關於服務報錯無法啟動
!!! quote ""
@@ -419,7 +465,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
卸載完成後重新執行腳本安裝即可
- ### 關於不支援的作業系統
- #### 關於不支援的作業系統
如果提示不支援那麼請使用系統自備的套件管理工具進行安裝。因為這些軟體包由 Linux 發行版的軟體包維護者建構和維護,可能存在配置差異或由修改後的原始碼建構。

View File

@@ -3,69 +3,63 @@
<strong class="sponsor-text-1"></strong>
</div>
<div class="sponsor-wrapper sponsor-flex-wrapper no-select">
<a class="sponsor-item sponsor-item-flex" target="_blank" href="https://1panel.cn" title="新一代的 Linux 服务器运维管理面板">
<a class="sponsor-item sponsor-item-flex" target="_blank" rel="noopener noreferrer" href="https://1panel.cn" title="新一代的 Linux 服务器运维管理面板">
<img src="/assets/images/sponsor/1panel.png" alt="1Panel" />
</a>
<a class="sponsor-item sponsor-item-flex" target="_blank" href="https://www.duotuyun.com" title="智能化防护,每一次连接皆在安全之下">
<a class="sponsor-item sponsor-item-flex" target="_blank" rel="noopener noreferrer" href="https://www.duotuyun.com" title="智能化防护,每一次连接皆在安全之下">
<!-- 27 5 19 -->
<img src="/assets/images/sponsor/duotuyun-light.svg#only-light" alt="多途云" style="width: 56% !important" />
<img src="/assets/images/sponsor/duotuyun-dark.svg#only-dark" alt="多途云" style="width: 56% !important" />
</a>
<a class="sponsor-item sponsor-item-flex" target="_blank" href="https://1ms.run?utm_source=linuxmirrors" title="专为中国开发者提供镜像极速下载服务,告别 Docker 镜像拉取慢!</br>支持 Docker Hub、gcr.io、registry.k8s.io 等主流镜像仓库。">
<a class="sponsor-item sponsor-item-flex" target="_blank" rel="noopener noreferrer" href="https://1ms.run?utm_source=linuxmirrors" title="专为中国开发者提供镜像极速下载服务,告别 Docker 镜像拉取慢!</br>支持 Docker Hub、gcr.io、registry.k8s.io 等主流镜像仓库。">
<!-- 27 6 10 -->
<img src="/assets/images/sponsor/1ms-light.svg#only-light" alt="毫秒镜像" style="width: 56% !important" />
<img src="/assets/images/sponsor/1ms-dark.svg#only-dark" alt="毫秒镜像" style="width: 56% !important" />
</a>
<a class="sponsor-item sponsor-item-flex" target="_blank" href="https://www.bsncdn.org" title="香港日本高防CDN免实名/免备案,轻松阻断 DDOS / CC 攻击">
<a class="sponsor-item sponsor-item-flex" target="_blank" rel="noopener noreferrer" href="https://www.dkdun.cn/aff/VAWGETUL" title="专注独立IP高频VPSR9/i9系列定制">
<!-- 27 11 1 -->
<img src="/assets/images/sponsor/linfengyun.png" alt="林枫云" />
</a>
<a class="sponsor-item sponsor-item-flex" target="_blank" rel="noopener noreferrer" href="https://www.bsncdn.org" title="香港日本高防CDN免实名/免备案,轻松阻断 DDOS / CC 攻击">
<!-- 26 08 17 -->
<img src="/assets/images/sponsor/businiaocdn.png" alt="不死鸟CDN" />
</a>
<a class="sponsor-item sponsor-item-flex" target="_blank" href="https://www.qingyeyun.com" title="香港1T高防自助防火墙无视CC大带宽回国优化线路">
<a class="sponsor-item sponsor-item-flex" target="_blank" rel="noopener noreferrer" href="https://www.qingyeyun.com" title="香港1T高防自助防火墙无视CC大带宽回国优化线路">
<!-- 26 8 18 -->
<img src="/assets/images/sponsor/qingyeyun-light.png#only-light" alt="青叶云" />
<img src="/assets/images/sponsor/qingyeyun-dark.png#only-dark" alt="青叶云" />
</a>
<a class="sponsor-item sponsor-item-flex" target="_blank" href="https://langlangy.cn/?icf164b" title="BGP网络让每一次连接都纵享丝滑明码标价、无套路续费">
<a class="sponsor-item sponsor-item-flex" target="_blank" rel="noopener noreferrer" href="https://langlangy.cn/?icf164b" title="BGP网络让每一次连接都纵享丝滑明码标价、无套路续费">
<!-- 26 8 25 -->
<img src="/assets/images/sponsor/langlangyun-light.png#only-light" alt="浪浪云" />
<img src="/assets/images/sponsor/langlangyun-dark.png#only-dark" alt="浪浪云" />
</a>
<a class="sponsor-item sponsor-item-flex" target="_blank" href="https://www.lcayun.com" title="专业云计算服务器提供商">
<a class="sponsor-item sponsor-item-flex" target="_blank" rel="noopener noreferrer" href="https://www.lcayun.com" title="专业云计算服务器提供商">
<!-- 26 9 7 -->
<img src="/assets/images/sponsor/laikayun-light.png#only-light" alt="莱卡云" />
<img src="/assets/images/sponsor/laikayun-dark.png#only-dark" alt="莱卡云" />
</a>
<a class="sponsor-item sponsor-item-flex" target="_blank" href="https://yunyoo.cc/aff/KPTJHNWM" title="全球高性价比云服务器低至15.99元起">
<a class="sponsor-item sponsor-item-flex" target="_blank" rel="noopener noreferrer" href="https://yunyoo.cc/aff/KPTJHNWM" title="全球高性价比云服务器低至15.99元起">
<!-- 26 9 5 -->
<img src="/assets/images/sponsor/yunyoo.png" alt="云悠YUNYOO" />
</a>
<a class="sponsor-item sponsor-item-flex" target="_blank" href="https://www.sutuoyun.com" title="国内高防云28元/月香港云100M优化线路9元/月">
<a class="sponsor-item sponsor-item-flex" target="_blank" rel="noopener noreferrer" href="https://www.sutuoyun.com" title="国内高防云28元/月香港云100M优化线路9元/月">
<!-- 25 12 23 -->
<img src="/assets/images/sponsor/sutuoyun.svg" alt="速拓云" style="width: 58% !important" />
</a>
<a class="sponsor-item sponsor-item-flex" target="_blank" href="https://www.dkdun.cn/aff/VAWGETUL" title="专注独立IP高频VPSR9/i9系列定制">
<!-- 25 10 13 -->
<img src="/assets/images/sponsor/linfengyun-light.png#only-light" alt="林枫云" />
<img src="/assets/images/sponsor/linfengyun-dark.png#only-dark" alt="林枫云" />
</a>
<a class="sponsor-item sponsor-item-flex" target="_blank" href="https://arcadia.cool" title="一站式代码运维平台">
<a class="sponsor-item sponsor-item-flex" target="_blank" rel="noopener noreferrer" href="https://arcadia.cool" title="一站式代码运维平台">
<img src="/assets/images/sponsor/arcadia-light.png#only-light" alt="Arcadia" style="width: 57% !important" />
<img src="/assets/images/sponsor/arcadia-dark.png#only-dark" alt="Arcadia" style="width: 57% !important" />
</a>
<a class="sponsor-item sponsor-item-flex" target="_blank" href="https://www.lucdn.cn?utm_source=linuxmirrors" title="专业CDN加速、防御亚太百兆三网优化CDN低至9元起">
<a class="sponsor-item sponsor-item-flex" target="_blank" rel="noopener noreferrer" href="https://www.lucdn.cn?utm_source=linuxmirrors" title="专业CDN加速、防御亚太百兆三网优化CDN低至9元起">
<!-- 25 12 16 -->
<img src="/assets/images/sponsor/yuluyundun-light.png#only-light" alt="语鹿云盾" />
<img src="/assets/images/sponsor/yuluyundun-dark.png#only-dark" alt="语鹿云盾" />
</a>
<a class="sponsor-item sponsor-item-flex" target="_blank" href="https://cb2.cn" title="国内外建站快响应服务器的不二之选">
<a class="sponsor-item sponsor-item-flex" target="_blank" rel="noopener noreferrer" href="https://cb2.cn" title="国内外建站快响应服务器的不二之选">
<!-- 25 11 14 -->
<img src="/assets/images/sponsor/bueryun.svg" alt="不二云" style="width: 64% !important" />
</a>
<a class="sponsor-item sponsor-item-flex" target="_blank" href="https://www.hkgserver.com" title="HKGserver - 全球家宽双ISP住宅原生云服务器54元/月起">
<!-- 25 10 21 -->
<img src="/assets/images/sponsor/hkgserver-light.png#only-light" alt="HKGserver" />
<img src="/assets/images/sponsor/hkgserver-dark.png#only-dark" alt="HKGserver" />
</a>
</div>
</div>
@@ -74,11 +68,11 @@
<strong class="sponsor-text-2"></strong>
</div>
<div class="sponsor-wrapper sponsor-flex-wrapper no-select">
<a class="sponsor-item sponsor-item-flex" target="_blank" href="https://www.jetbrains.com" title="JetBrains">
<a class="sponsor-item sponsor-item-flex" target="_blank" rel="noopener noreferrer" href="https://www.jetbrains.com" title="JetBrains">
<img src="/assets/images/icon/jetbrains-light.svg#only-light" alt="JetBrains" />
<img src="/assets/images/icon/jetbrains-dark.svg#only-dark" alt="JetBrains" />
</a>
<a class="sponsor-item sponsor-item-flex" target="_blank" href="https://www.netlify.com" title="Netlify">
<a class="sponsor-item sponsor-item-flex" target="_blank" rel="noopener noreferrer" href="https://www.netlify.com" title="Netlify">
<img src="/assets/images/icon/netlify-light.png#only-light" alt="Netlify" style="width: 46% !important" />
<img src="/assets/images/icon/netlify-dark.png#only-dark" alt="Netlify" style="width: 46% !important" />
</a>

View File

@@ -8,6 +8,7 @@
--hero-background-image: linear-gradient(90deg, rgb(104 104 104) 50%, rgb(104 104 104) 50%);
--navbar-background: hsla(240, 9%, 75%, 0.33);
--component-border-radius: 8px;
--td-radius-default: 5px;
--component-hover-color: rgba(0, 0, 0, 0.05);
}
@@ -710,6 +711,33 @@
color: var(--md-default-fg-color);
}
.t-tag.t-size-l {
height: var(--td-comp-size-xs);
padding: 0 var(--td-comp-paddingLR-s);
}
.t-tag-input .t-input.t-size-l {
min-height: var(--td-comp-size-m);
padding: 0 var(--td-comp-paddingLR-s) 0 var(--td-comp-margin-xs);
}
.t-table--hoverable tbody tr:hover {
background-color: rgba(0, 0, 0, 0.016) !important;
}
.t-table--column-fixed .t-table__cell--fixed-left {
z-index: 3;
background-color: var(--md-default-bg-color);
}
.t-table__filter-icon-wrap {
color: var(--md-default-fg-color--light);
}
.t-table__filter-pop .t-table__filter-pop-content .t-table__filter-pop-content-inner {
padding: 6px var(--td-comp-paddingLR-l);
}
[theme-mode="dark"] .t-table {
--td-component-border: hsla(225deg, 15%, 95%, 0.12) !important;
}
@@ -718,18 +746,10 @@
--td-warning-color-light: #cf6e2d48 !important;
}
.t-table--hoverable tbody tr:hover {
background-color: rgba(0, 0, 0, 0.016) !important;
}
[theme-mode="dark"] .t-table--hoverable tbody tr:hover {
background-color: rgba(240, 241, 244, 0.016) !important;
}
.t-table--column-fixed .t-table__cell--fixed-left {
z-index: 4;
}
/* termynal 插件 */
.termy {
padding: 65px 25px 35px !important;

View File

@@ -11,6 +11,6 @@
{% else %}
本网站由 Netlify 部署并提供全球 CDN 边缘网络加速
{% endif %}
<a href="https://www.netlify.com" title="Netlify" target="_blank"><img height="64" width="64" src="/assets/images/icon/netlify.svg" style="vertical-align: -0.6em"></a>
<a href="https://www.netlify.com" title="Netlify" target="_blank" rel="noopener noreferrer"><img height="64" width="64" src="/assets/images/icon/netlify.svg" style="vertical-align: -0.6em"></a>
</div>
</div>

View File

@@ -1,4 +1,4 @@
<a class="md-header__button md-icon coze-icon-wrapper" href="https://www.coze.cn/store/agent/7503197985959428108?bot_id=true" target="_blank" title="{{'Coze AI Assistant' if i18n_page_locale == 'en' else 'Coze AI 助手' if i18n_page_locale == 'zh-Hant' else '扣子 AI 助手'}}">
<a class="md-header__button md-icon coze-icon-wrapper" href="https://www.coze.cn/store/agent/7503197985959428108?bot_id=true" target="_blank" rel="noopener noreferrer" title="{{'Coze AI Assistant' if i18n_page_locale == 'en' else 'Coze AI 助手' if i18n_page_locale == 'zh-Hant' else '扣子 AI 助手'}}">
<div aria-label="Coze" class="coze-icon-bg">
<svg fill="currentColor" fill-rule="evenodd" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" color="#fff" style="display: block; margin: auto;">
<path clip-rule="evenodd" d="M3.908 9.096A8.092 8.092 0 0111.998 1h.006c4.468 0 8.09 3.628 8.09 8.096v3.392h1.942c2.23 0 2.732 3.126.615 3.828l-2.556.85v1.466a1.947 1.947 0 01-2.818 1.742l-1.42-.707c-.067-.03-.149 0-.17.071-1.147 3.587-6.225 3.587-7.373 0a.123.123 0 00-.169-.07l-1.42.706c-1.29.65-2.817-.292-2.817-1.742v-1.466l-2.557-.85c-2.122-.697-1.614-3.828.615-3.828h1.942V9.096zm4.571 2.613a.784.784 0 00-.784.784v1.568a.784.784 0 101.568 0v-1.568a.784.784 0 00-.784-.784zm7.045.779a.784.784 0 100 1.568.784.784 0 000-1.568zm-6.186 3.415a.78.78 0 00.17.254 3.517 3.517 0 004.98 0 .782.782 0 10-1.106-1.107 1.958 1.958 0 01-2.767 0 .78.78 0 00-1.277.254.78.78 0 000 .6z"></path>

View File

@@ -14,61 +14,58 @@
<strong>{{'Sponsors' if i18n_page_locale == 'en' else '贊助商' if i18n_page_locale == 'zh-Hant' else '赞助商'}}</strong>
</div>
<div class="sponsor-wrapper sponsor-flex-wrapper-toc no-select">
<a class="sponsor-item sponsor-item-toc" target="_blank" href="https://1panel.cn" title="新一代的 Linux 服务器运维管理面板">
<a class="sponsor-item sponsor-item-toc sponsor-item-toc-full-row" target="_blank" rel="noopener noreferrer" href="https://1panel.cn" title="新一代的 Linux 服务器运维管理面板">
<img src="/assets/images/sponsor/1panel.png" alt="1Panel" style="filter: grayscale(1) invert(0.6)" />
</a>
<a class="sponsor-item sponsor-item-toc" target="_blank" href="https://www.duotuyun.com" title="智能化防护,每一次连接皆在安全之下">
<img src="/assets/images/sponsor/duotuyun-light.svg#only-light" alt="多途云" style="filter: grayscale(1) invert(0.6)" />
<img src="/assets/images/sponsor/duotuyun-dark.svg#only-dark" alt="多途云" style="filter: grayscale(1) invert(0.4)" />
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://www.duotuyun.com" title="智能化防护,每一次连接皆在安全之下">
<img src="/assets/images/sponsor/duotuyun-light.svg#only-light" alt="多途云" style="filter: grayscale(1) invert(0.5)" />
<img src="/assets/images/sponsor/duotuyun-dark.svg#only-dark" alt="多途云" style="filter: grayscale(1) invert(0.5)" />
</a>
<a class="sponsor-item sponsor-item-toc" target="_blank" href="https://1ms.run?utm_source=linuxmirrors" title="专为中国开发者提供镜像极速下载服务,告别 Docker 镜像拉取慢!</br>支持 Docker Hub、gcr.io、registry.k8s.io 等主流镜像仓库。">
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://1ms.run?utm_source=linuxmirrors" title="专为中国开发者提供镜像极速下载服务,告别 Docker 镜像拉取慢!</br>支持 Docker Hub、gcr.io、registry.k8s.io 等主流镜像仓库。">
<img src="/assets/images/sponsor/1ms-light.svg#only-light" alt="毫秒镜像" style="filter: grayscale(1) invert(0.5)" />
<img src="/assets/images/sponsor/1ms-dark.svg#only-dark" alt="毫秒镜像" style="filter: grayscale(1) invert(0.4)" />
</a>
<a class="sponsor-item sponsor-item-toc" target="_blank" href="https://www.bsncdn.org" title="香港日本高防CDN免实名/免备案,轻松阻断 DDOS / CC 攻击">
<img src="/assets/images/sponsor/businiaocdn.png#only-light" alt="不死鸟CDN" style="filter: grayscale(1) brightness(1.1)" />
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://www.dkdun.cn/aff/VAWGETUL" title="专注独立IP高频VPSR9/i9系列定制">
<img src="/assets/images/sponsor/linfengyun.png#only-light" alt="林枫云" style="filter: grayscale(1) invert(0.7)" />
<img src="/assets/images/sponsor/linfengyun.png#only-dark" alt="林枫云" style="filter: grayscale(1) invert(0.5)" />
</a>
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://www.bsncdn.org" title="香港日本高防CDN免实名/免备案,轻松阻断 DDOS / CC 攻击">
<img src="/assets/images/sponsor/businiaocdn.png#only-light" alt="不死鸟CDN" style="filter: grayscale(1) brightness(1)" />
<img src="/assets/images/sponsor/businiaocdn.png#only-dark" alt="不死鸟CDN" style="filter: grayscale(1) brightness(1.4)" />
</a>
<a class="sponsor-item sponsor-item-toc" target="_blank" href="https://www.qingyeyun.com" title="香港1T高防自助防火墙无视CC大带宽回国优化线路">
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://www.qingyeyun.com" title="香港1T高防自助防火墙无视CC大带宽回国优化线路">
<img src="/assets/images/sponsor/qingyeyun-light.png#only-light" alt="青叶云" style="filter: grayscale(1) invert(0.4)" />
<img src="/assets/images/sponsor/qingyeyun-dark.png#only-dark" alt="青叶云" style="filter: grayscale(1) invert(0.4)" />
</a>
<a class="sponsor-item sponsor-item-toc" target="_blank" href="https://langlangy.cn/?icf164b" title="BGP网络让每一次连接都纵享丝滑明码标价、无套路续费">
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://langlangy.cn/?icf164b" title="BGP网络让每一次连接都纵享丝滑明码标价、无套路续费">
<img src="/assets/images/sponsor/langlangyun-light.png#only-light" alt="浪浪云" style="filter: grayscale(1) invert(0.3)" />
<img src="/assets/images/sponsor/langlangyun-dark.png#only-dark" alt="浪浪云" style="filter: grayscale(1) invert(0.3)" />
</a>
<a class="sponsor-item sponsor-item-toc" target="_blank" href="https://www.lcayun.com" title="专业云计算服务器提供商">
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://www.lcayun.com" title="专业云计算服务器提供商">
<img src="/assets/images/sponsor/laikayun-light.png#only-light" alt="莱卡云" style="filter: grayscale(1) invert(0.4)" />
<img src="/assets/images/sponsor/laikayun-dark.png#only-dark" alt="莱卡云" style="filter: grayscale(1) invert(0.3)" />
</a>
<a class="sponsor-item sponsor-item-toc" target="_blank" href="https://yunyoo.cc/aff/KPTJHNWM" title="全球高性价比云服务器低至15.99元起">
<img src="/assets/images/sponsor/yunyoo.png" alt="云悠YUNYOO" />
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://yunyoo.cc/aff/KPTJHNWM" title="全球高性价比云服务器低至15.99元起">
<img src="/assets/images/sponsor/yunyoo.png#only-light" alt="云悠YUNYOO" style="filter: grayscale(1) brightness(1)" />
<img src="/assets/images/sponsor/yunyoo.png#only-dark" alt="云悠YUNYOO" style="filter: grayscale(1) brightness(1.1)" />
</a>
<a class="sponsor-item sponsor-item-toc" target="_blank" href="https://www.sutuoyun.com" title="国内高防云28元/月香港云100M优化线路9元/月">
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://www.sutuoyun.com" title="国内高防云28元/月香港云100M优化线路9元/月">
<img src="/assets/images/sponsor/sutuoyun.svg#only-light" alt="速拓云" />
<img src="/assets/images/sponsor/sutuoyun.svg#only-dark" alt="速拓云" style="filter: grayscale(1) invert(0.6)" />
</a>
<a class="sponsor-item sponsor-item-toc" target="_blank" href="https://www.dkdun.cn/aff/VAWGETUL" title="专注独立IP高频VPSR9/i9系列定制">
<img src="/assets/images/sponsor/linfengyun-light.png#only-light" alt="林枫云" style="filter: grayscale(1) invert(0.5)" />
<img src="/assets/images/sponsor/linfengyun-dark.png#only-dark" alt="林枫云" style="filter: grayscale(1) invert(0.4)" />
</a>
<a class="sponsor-item sponsor-item-toc" target="_blank" href="https://arcadia.cool" title="一站式代码运维平台">
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://arcadia.cool" title="一站式代码运维平台">
<img src="/assets/images/sponsor/arcadia-light.png#only-light" alt="Arcadia" style="padding: 0 2px; filter: grayscale(1) invert(0.5)" />
<img src="/assets/images/sponsor/arcadia-dark.png#only-dark" alt="Arcadia" style="padding: 0 2px; filter: grayscale(1) invert(0.4)" />
</a>
<a class="sponsor-item sponsor-item-toc" target="_blank" href="https://www.lucdn.cn?utm_source=linuxmirrors" title="专业CDN加速、防御亚太百兆三网优化CDN低至9元起">
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://www.lucdn.cn?utm_source=linuxmirrors" title="专业CDN加速、防御亚太百兆三网优化CDN低至9元起">
<img src="/assets/images/sponsor/yuluyundun-light.png#only-light" alt="语鹿云盾" style="filter: grayscale(1) invert(0.4)" />
<img src="/assets/images/sponsor/yuluyundun-dark.png#only-dark" alt="语鹿云盾" style="filter: grayscale(1) invert(0.4)" />
</a>
<a class="sponsor-item sponsor-item-toc" target="_blank" href="https://cb2.cn" title="国内外建站快响应服务器的不二之选">
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://cb2.cn" title="国内外建站快响应服务器的不二之选">
<img src="/assets/images/sponsor/bueryun.svg#only-light" alt="不二云" style="filter: grayscale(1) invert(0.6)" />
<img src="/assets/images/sponsor/bueryun.svg#only-dark" alt="不二云" style="filter: grayscale(1) invert(0.7)" />
</a>
<a class="sponsor-item sponsor-item-toc" target="_blank" href="https://www.hkgserver.com" title="HKGserver - 全球家宽双ISP住宅原生云服务器54元/月起">
<img src="/assets/images/sponsor/hkgserver-light.png#only-light" alt="HKGserver" style="filter: grayscale(1) invert(0.5)" />
<img src="/assets/images/sponsor/hkgserver-dark.png#only-dark" alt="HKGserver" style="filter: grayscale(1) invert(0.4)" />
</a>
<!-- <a class="sponsor-item sponsor-item-toc" target="_blank" title="{{'Become a Sponsor' if i18n_page_locale == 'en' else '成為贊助商' if i18n_page_locale == 'zh-Hant' else '成为赞助商'}}" href="/sponsor/">
<!-- <a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" title="{{'Become a Sponsor' if i18n_page_locale == 'en' else '成為贊助商' if i18n_page_locale == 'zh-Hant' else '成为赞助商'}}" href="/sponsor/">
<span style="font-size: 0.6rem; opacity: 0.5">
<strong>{{'Become a Sponsor' if i18n_page_locale == 'en' else '成為贊助商' if i18n_page_locale == 'zh-Hant' else '成为赞助商'}}</strong>
</span>

View File

@@ -13,39 +13,39 @@ hide:
=== ":linuxmirrors: Official Site (Recommended)"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh)
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --en
```
=== ":simple-github: GitHub"
``` bash
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh)
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --en
```
=== ":simple-gitee: Gitee"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --en
```
> Real-time sync, no delay. Recommended for use in Chinese mainland network environments.
=== ":simple-gitcode: GitCode"
``` bash
bash <(curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)
bash <(curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --en
```
> 1-hour sync delay.
=== ":simple-jsdelivr: jsDelivr (CDN)"
``` bash
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh)
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --en
```
=== ":tencent-cloud: Tencent Cloud EO (CDN)"
``` bash
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh)
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --en
```
> Not recommended in Chinese mainland network environments.
@@ -56,33 +56,33 @@ hide:
=== ":linuxmirrors: Official Site (Recommended)"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --abroad
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --en --abroad
```
=== ":simple-github: GitHub"
``` bash
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --abroad
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --en --abroad
```
=== ":simple-gitee: Gitee"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --en --abroad
```
> Real-time sync, no delay. Recommended for use in Chinese mainland network environments.
=== ":simple-gitcode: GitCode"
``` bash
bash <(curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad
bash <(curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --en --abroad
```
> 1-hour sync delay.
=== ":simple-jsdelivr: jsDelivr (CDN)"
``` bash
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --abroad
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --en --abroad
```
=== ":tencent-cloud: Tencent Cloud EO (CDN)"
@@ -99,39 +99,39 @@ hide:
=== ":linuxmirrors: Official Site (Recommended)"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --edu
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --en --edu
```
=== ":simple-github: GitHub"
``` bash
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --edu
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --en --edu
```
=== ":simple-gitee: Gitee"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --edu
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --en --edu
```
> Real-time sync, no delay. Recommended for use in Chinese mainland network environments.
=== ":simple-gitcode: GitCode"
``` bash
bash <(curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --edu
bash <(curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --en --edu
```
> 1-hour sync delay.
=== ":simple-jsdelivr: jsDelivr (CDN)"
``` bash
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --edu
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --en --edu
```
=== ":tencent-cloud: Tencent Cloud EO (CDN)"
``` bash
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --edu
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --en --edu
```
> Not recommended in Chinese mainland network environments.
@@ -260,19 +260,19 @@ hide:
=== ":material-home-city: Chinese mainland"
``` bash
bash main.sh
bash main.sh --en
```
=== ":material-earth: International Regions"
``` bash
bash main.sh --abroad
bash main.sh --en --abroad
```
=== ":material-library: China Education Network"
``` bash
bash main.sh --edu
bash main.sh --en --edu
```
If none of these work, copy the [source code](https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) to a new `.sh` file and run it with `bash`.
@@ -389,24 +389,6 @@ hide:
If you see a text input instead of the new arrow key UI, install the `ncurses` or `nano` package. The new interaction relies on the `tput` command.
- #### About the script's online location
!!! quote ""
The project uses [GitHub Action](https://github.com/SuperManito/LinuxMirrors/blob/main/.github/workflows/build-docs.yml#L29) to automatically copy the source code to the docs directory after each commit for website publishing. The site is hosted on [:netlify: Netlify](https://www.netlify.com), with almost no risk of hijacking.
You can also use the raw address from the code repository. This is just to explain why there are several different addresses; the default official site address is easier to remember and access.
- #### About mirror download speed
!!! quote ""
First, see the recommendations in the [Mirror List](../mirrors/index.md) usage help. These are based on experience, but some users still worry about speed.
The network latency (`Ping`) of a mirror is not directly related to download speed. Distance does not equal experience. Some mirrors have high bandwidth but poor speed due to load strategies.
There are many open source speed test scripts written in C or Python. This project is written in Bash Shell and does not depend on third-party libraries. Bash is the most common scripting language for Linux operations and is preinstalled on most distributions, so users can run it directly without installing anything. This convenience cannot be replaced by other languages. However, Bash scripts may not easily achieve accurate speed testing; using other languages for this is reinventing the wheel.
- #### About disabled repositories
!!! quote ""
@@ -429,6 +411,40 @@ hide:
Some repos are disabled by default. Set `enabled=1` in the relevant repo files under `/etc/zypp/repos.d`.
- #### Other
??? quote "About the script's online location"
The project uses [GitHub Action](https://github.com/SuperManito/LinuxMirrors/blob/main/.github/workflows/build-docs.yml#L29) to automatically copy the source code to the docs directory after each commit for website publishing. The site is hosted on [:netlify: Netlify](https://www.netlify.com), with almost no risk of hijacking.
You can also use the raw address from the code repository. This is just to explain why there are several different addresses; the default official site address is easier to remember and access.
??? quote "About mirror download speed"
First, see the recommendations in the [Mirror List](../mirrors/index.md) usage help. These are based on experience, but some users still worry about speed.
The network latency (`Ping`) of a mirror is not directly related to download speed. Distance does not equal experience. Some mirrors have high bandwidth but poor speed due to load strategies.
There are many open source speed test scripts written in C or Python. This project is written in Bash Shell and does not depend on third-party libraries. Bash is the most common scripting language for Linux operations and is preinstalled on most distributions, so users can run it directly without installing anything. This convenience cannot be replaced by other languages. However, Bash scripts may not easily achieve accurate speed testing; using other languages for this is reinventing the wheel.
??? quote "About software source selection"
Many people may wonder, "Since scripts are so convenient and highly automated, why can't we automatically select the optimal software source?" It's not that it can't be done, but that it can't be done.
"Software source selection" here refers to the script automatically selecting a software source with the best experience based on the client's network environment and location. This question needs to be addressed from multiple perspectives:
- Speed
As explained above, in summary, the pursuit of speed isn't a universal requirement. For most people, it's simply not noticeable; it's enough to get it working. Moreover, many Linux distributions now offer good speeds without switching sources.
- Regarding mirror sites themselves
To give a simple example, Alibaba Cloud mirror sites were once considered the top choice due to their high speed and availability. However, as the number of users increased, their speeds became increasingly slower, sometimes even below 10 Mbps.
Over time, mirror sites with large user bases may not be able to handle the high traffic, resulting in a poor user experience. Mirror sites with fewer users may eventually close, which is detrimental to the development of the entire ecosystem.
- From Developer's Perspective
This project aims to develop a universal repository switching script from the perspective of an operations and maintenance tool, rather than a tool that specifically addresses software repository requirements. The script's default behavior should be suitable for the majority of users. As an operations and maintenance tool, it should have a clear functional positioning. As a script, its pros and cons should be carefully considered from multiple perspectives, including scalability,and practicality. The choice of software repository should be fully vested in the user.
---
@@ -436,7 +452,7 @@ hide:
<!-- termynal -->
```
$ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
$ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --en --help
Command options(name/meaning/value):
@@ -464,6 +480,7 @@ Command options(name/meaning/value):
--upgrade-software Upgrade packages true or false
--clean-cache Clean cache after upgrade true or false
--clean-screen Clear screen before running true or false
--lang Specify the language of the script output language
--only-epel Only switch EPEL repo none
--ignore-backup-tips Ignore backup overwrite prompt none
--print-diff Print diff before and after modification none
@@ -497,6 +514,7 @@ Command options(name/meaning/value):
| `--upgrade-software` | Upgrade packages | `true` or `false` |
| `--clean-cache` | Clean cache after upgrade | `true` or `false` |
| `--clean-screen` | Clear screen before running | `true` or `false` |
| `--lang` | Specify the language of the script output | `language id (see docs below)` |
| `--only-epel` | Only switch EPEL repo | none |
| `--ignore-backup-tips` | Ignore backup overwrite prompt | none |
| `--print-diff` | Print diff before and after modification | none |
@@ -510,7 +528,7 @@ Below are some advanced usage examples
- ### Specify mirror address
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --source mirror.example.com
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --en --source mirror.example.com
```
- ### Specify mirror repository directory
@@ -525,36 +543,36 @@ Below are some advanced usage examples
| OS Name | Names Involved |
| --- | :---: |
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.35em"></a> **Debian** | `debian` `debian-archive` |
| <a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **Ubuntu** | `ubuntu` `ubuntu-ports` |
| <a href="https://www.kali.org" title="https://www.kali.org" target="_blank"><img src="/assets/images/icon/kali-linux.svg" width="16" height="16"></a> **Kali Linux** | `kali` |
| <a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank"><img src="/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **Linux Mint** | `linuxmint` `ubuntu` `ubuntu-ports` `debian` |
| <a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank"><img src="/assets/images/icon/deepin.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Deepin深度** | `deepin` |
| <a href="https://zorin.com/os" title="https://zorin.com/os" target="_blank"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Zorin OS** | `ubuntu` `ubuntu-ports` |
| <a href="https://www.armbian.com" title="https://www.armbian.com" target="_blank"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Armbian** | `armbian` |
| <a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Proxmox VE** | `proxmox` |
| <a href="https://www.raspberrypi.com/software" title="https://www.raspberrypi.com/software" target="_blank"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Raspberry Pi OS** | `raspberrypi` `raspbian` `debian` `debian-archive` |
| <a href="https://access.redhat.com/products/red-hat-enterprise-linux" title="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> **Red Hat Enterprise Linux** :material-information-outline:{ title="Version 9 uses <code>CentOS Stream</code>, 7/8 use <code>CentOS</code>" } | `centos` `centos-stream` `centos-altarch` `centos-vault` |
| <a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Fedora** | `fedora` `fedora-archive` |
| <a href="https://www.centos.org" title="https://www.centos.org" target="_blank"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.135em"></a> **CentOS** | `centos` `centos-stream` `centos-altarch` `centos-vault` |
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Rocky Linux** | `rocky` |
| <a href="https://almalinux.org" title="https://almalinux.org" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | `almalinux` `almalinux-vault` |
| <a href="https://www.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank"><img src="/assets/images/icon/oracle-linux.png" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** | `centos-stream` |
| <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler** | `openeuler` |
| <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"></a> **OpenCloudOS** | `opencloudos` |
| <a href="https://www.openkylin.top" title="https://www.openkylin.top" target="_blank"><img src="/assets/images/icon/openkylin.ico" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin** | `openkylin` |
| <a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank"><img src="/assets/images/icon/anolis.png" width="16" height="16" style="vertical-align: -0.1em"></a> **Anolis OS** | `anolis` |
| <a href="https://www.opensuse.org" title="https://www.opensuse.org" target="_blank"><img src="/assets/images/icon/opensuse.svg" width="16" height="16"></a> **openSUSE** | `opensuse` |
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank"><img src="/assets/images/icon/arch-linux.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Arch Linux** | `archlinux` `archlinuxarm` |
| <a href="https://manjaro.org" title="https://manjaro.org" target="_blank"><img src="/assets/images/icon/manjaro.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Manjaro** | `manjaro` |
| <a href="https://www.alpinelinux.org" title="https://www.alpinelinux.org" target="_blank"><img src="/assets/images/icon/alpine.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Alpine Linux** | `alpine` |
| <a href="https://www.gentoo.org" title="https://www.gentoo.org" target="_blank"><img src="/assets/images/icon/gentoo.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Gentoo** | `gentoo` `gentoo-portage` |
| <a href="https://nixos.org" title="https://nixos.org" target="_blank"><img src="/assets/images/icon/nixos.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | `nix-channels` |
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.35em"></a> **Debian** | `debian` `debian-archive` |
| <a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **Ubuntu** | `ubuntu` `ubuntu-ports` |
| <a href="https://www.kali.org" title="https://www.kali.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/kali-linux.png" width="16" height="16"></a> **Kali Linux** | `kali` |
| <a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **Linux Mint** | `linuxmint` `ubuntu` `ubuntu-ports` `debian` |
| <a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/deepin.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Deepin深度** | `deepin` |
| <a href="https://zorin.com/os" title="https://zorin.com/os" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Zorin OS** | `ubuntu` `ubuntu-ports` |
| <a href="https://www.armbian.com" title="https://www.armbian.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Armbian** | `armbian` |
| <a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Proxmox VE** | `proxmox` |
| <a href="https://www.raspberrypi.com/software" title="https://www.raspberrypi.com/software" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Raspberry Pi OS** | `raspberrypi` `raspbian` `debian` `debian-archive` |
| <a href="https://access.redhat.com/products/red-hat-enterprise-linux" title="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> **Red Hat Enterprise Linux** :material-information-outline:{ title="Version 9 uses <code>CentOS Stream</code>, 7/8 use <code>CentOS</code>" } | `centos` `centos-stream` `centos-altarch` `centos-vault` |
| <a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Fedora** | `fedora` `fedora-archive` |
| <a href="https://www.centos.org" title="https://www.centos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.135em"></a> **CentOS** | `centos` `centos-stream` `centos-altarch` `centos-vault` |
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Rocky Linux** | `rocky` |
| <a href="https://almalinux.org" title="https://almalinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | `almalinux` `almalinux-vault` |
| <a href="https://www.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/oracle-linux.png" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** | `centos-stream` |
| <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler** | `openeuler` |
| <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"></a> **OpenCloudOS** | `opencloudos` |
| <a href="https://www.openkylin.top" title="https://www.openkylin.top" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/openkylin.ico" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin** | `openkylin` |
| <a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/anolis.png" width="16" height="16" style="vertical-align: -0.1em"></a> **Anolis OS** | `anolis` |
| <a href="https://www.opensuse.org" title="https://www.opensuse.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/opensuse.svg" width="16" height="16"></a> **openSUSE** | `opensuse` |
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/arch-linux.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Arch Linux** | `archlinux` `archlinuxarm` |
| <a href="https://manjaro.org" title="https://manjaro.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/manjaro.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Manjaro** | `manjaro` |
| <a href="https://www.alpinelinux.org" title="https://www.alpinelinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/alpine.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Alpine Linux** | `alpine` |
| <a href="https://www.gentoo.org" title="https://www.gentoo.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/gentoo.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Gentoo** | `gentoo` `gentoo-portage` |
| <a href="https://nixos.org" title="https://nixos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | `nix-channels` |
Example:
``` { .bash title="Use Aliyun mirror for Rocky Linux" }
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --en \
--source mirrors.aliyun.com \
--branch rockylinux
```
@@ -572,7 +590,7 @@ Below are some advanced usage examples
Sometimes your desired mirror does not have EPEL. You can skip EPEL during the first run and then run:
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --only-epel
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --en --only-epel
```
For EPEL 7 (EOL), use the [`archive`](https://dl.fedoraproject.org/pub/archive/epel) repo. For overseas networks, use `--use-official-source-epel true` to use the official repo.
@@ -582,7 +600,7 @@ Below are some advanced usage examples
If you accidentally deleted the backup of the official mirror, use this command to restore. This skips mirror selection.
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --use-official-source true
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --en --use-official-source true
```
> Some systems (e.g., `Arch Linux`) have no official mirror, so Aliyun will be used as a fallback.
@@ -615,7 +633,7 @@ Below are some advanced usage examples
For maximum security, use the official repo due to mirror sync delays.
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --en \
--source-security security.debian.org \
--branch-security debian-security
```
@@ -629,7 +647,7 @@ Below are some advanced usage examples
- Change version code
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --en \
--codename trixie \
--upgrade-software false
```
@@ -653,13 +671,13 @@ Below are some advanced usage examples
# Clear the original software sources (If there is any non-system software source content, please back it up manually first)
sed -i '1,$d' /etc/apt/sources.list
# Rerun the mirror switching script
bash <(curl -sSL https://linuxmirrors.cn/main.sh)
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --en
```
=== "Switch GNU/Linux Debian to testing branch"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --en \
--codename testing \
--upgrade-software false
```
@@ -675,7 +693,7 @@ Below are some advanced usage examples
See the official [Wiki](https://wiki.ubuntu.com/Releases) for version support and check each mirror for `Ubuntu Old Releases` support.
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --en \
--source mirrors.ustc.edu.cn \
--branch ubuntu-old-releases
```
@@ -689,12 +707,41 @@ Below are some advanced usage examples
grep -q "\[archlinuxcn\]" /etc/pacman.conf || echo -e "[archlinuxcn]\nServer = ${SOURCE}/\$arch" >>/etc/pacman.conf
```
- ### Unattended (automation)
- ### I18n (Internationalization)
The script provides multi-language support. Currently, there are three built-in display languages: `简体中文`、`繁體中文`、`English`. The default is `简体中文`.
- #### Specify Language
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --lang xxx
```
| Type | Value |
| :-: | :-: |
| 简体中文 | `zh-hans` `zh-cn` `zh` |
| 繁體中文 | `zh-hant` `zh-tw` `zh-hk` |
| English | `en` `en-us` |
It can also be used directly as a command option
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --zh-hant
```
> `--en` `--en-us` `--zh` `--zh-cn` `--zh-hans` `--zh-hant`
- #### Select through interaction
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --lang auto
```
- ### Unattended (Automation)
To run without interaction, use at least the following options. Recommended for experienced users.
``` { .bash .no-copy title="Example Command" }
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --en \
--source mirror.example.com \
--protocol http \
--use-intranet-source false \
@@ -711,7 +758,7 @@ Below are some advanced usage examples
This feature is introduced to facilitate the use of developers and operation and maintenance personnel. After it is enabled, the script content output will be simplified. It is recommended to use it with other command options without interaction.
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --pure-mode
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --en --pure-mode
```
!!! tip "Scrolling command logs may have unpredictable display issues, but no problems have been found so far."
@@ -730,35 +777,38 @@ If you are a developer of another project and want to create a custom script bas
1. Keep the original structure; empty out the function bodies if not needed.
2. Remove unused OS repo content `gen_repo_files_xxx`, which takes up over 60% of the script.
3. Remove unused feature modules, e.g., `handle_command_options`, `backup_original_mirrors`, `upgrade_software`.
4. Remove unnecessary language packs, for example: `function msg_pack_en() {}`
6. Main configuration is controlled by unified variables, as are command options. These global variables are all uppercase and use underscores. See the table below. Declare them at the top of the script (reserved comment area) for quick customization.
| Variable | Meaning | Value Type |
| :-: | :-: | :-: |
| `SOURCE` | Specify mirror address (domain or IP) | `address` |
| `SOURCE_EPEL` | Specify EPEL repo address (domain or IP) | `address` |
| `SOURCE_SECURITY` | Specify Debian/Ubuntu security repo address (domain or IP) | `address` |
| `SOURCE_VAULT` | Specify CentOS/AlmaLinux vault repo address (domain or IP) | `address` |
| `SOURCE_PORTAGE` | Specify Gentoo portage repo address (domain or IP) | `address` |
| `SOURCE_BASE_SYSTEM` | Specify Linux Mint/Raspberry Pi OS base system repo address (domain or IP) | `address` |
| `SOURCE_BRANCH` | Specify mirror repo (path) | `repo name` |
| `SOURCE_EPEL_BRANCH` | Specify EPEL repo (path) | `repo name` |
| `SOURCE_SECURITY_BRANCH` | Specify Debian security repo (path) | `repo name` |
| `SOURCE_VAULT_BRANCH` | Specify CentOS/AlmaLinux vault repo (path) | `repo name` |
| `SOURCE_PORTAGE_BRANCH` | Specify Gentoo portage repo (path) | `repo name` |
| `SOURCE_BASE_SYSTEM_BRANCH` | Specify Linux Mint/Raspberry Pi OS base system repo (path) | `repo name` |
| `DEBIAN_CODENAME` | Specify Debian/openKylin codename | `codename` |
| `USE_INTRANET_SOURCE` | Prefer intranet mirror address | `true` or `false` |
| `USE_OFFICIAL_SOURCE` | Use official mirror of target OS | `true` or `false` |
| `USE_OFFICIAL_SOURCE_EPEL` | Use official EPEL repo | `true` or `false` |
| `WEB_PROTOCOL` | Specify Web protocol | `http` or `https` |
| `INSTALL_EPEL` | Install EPEL repository | `true` or `false` |
| `ONLY_EPEL` | Only switch EPEL repo | `true` or `false` |
| `BACKUP` | Backup original mirrors | `true` or `false` |
| `IGNORE_BACKUP_TIPS` | Ignore backup overwrite prompt | `true` or `false` |
| `UPGRADE_SOFTWARE` | Upgrade packages | `true` or `false` |
| `CLEAN_CACHE` | Clean cache after upgrade | `true` or `false` |
| `CLEAN_SCREEN` | Clear screen before running | `true` or `false` |
| `PRINT_DIFF` | Print diff before and after modification | `true` or `false` |
| `PURE_MODE` | Pure mode, minimal output | `true` or `false` |
??? note "Variable list (click to expand)"
> Some variables have defaults. Unused variables do not need to be declared as empty strings. If a configuration is missing, interaction may occur.
| Variable | Meaning | Value Type |
| :-: | :-: | :-: |
| `SOURCE` | Specify mirror address (domain or IP) | `address` |
| `SOURCE_EPEL` | Specify EPEL repo address (domain or IP) | `address` |
| `SOURCE_SECURITY` | Specify Debian/Ubuntu security repo address (domain or IP) | `address` |
| `SOURCE_VAULT` | Specify CentOS/AlmaLinux vault repo address (domain or IP) | `address` |
| `SOURCE_PORTAGE` | Specify Gentoo portage repo address (domain or IP) | `address` |
| `SOURCE_BASE_SYSTEM` | Specify Linux Mint/Raspberry Pi OS base system repo address (domain or IP) | `address` |
| `SOURCE_BRANCH` | Specify mirror repo (path) | `repo name` |
| `SOURCE_EPEL_BRANCH` | Specify EPEL repo (path) | `repo name` |
| `SOURCE_SECURITY_BRANCH` | Specify Debian security repo (path) | `repo name` |
| `SOURCE_VAULT_BRANCH` | Specify CentOS/AlmaLinux vault repo (path) | `repo name` |
| `SOURCE_PORTAGE_BRANCH` | Specify Gentoo portage repo (path) | `repo name` |
| `SOURCE_BASE_SYSTEM_BRANCH` | Specify Linux Mint/Raspberry Pi OS base system repo (path) | `repo name` |
| `DEBIAN_CODENAME` | Specify Debian/openKylin codename | `codename` |
| `USE_INTRANET_SOURCE` | Prefer intranet mirror address | `true` or `false` |
| `USE_OFFICIAL_SOURCE` | Use official mirror of target OS | `true` or `false` |
| `USE_OFFICIAL_SOURCE_EPEL` | Use official EPEL repo | `true` or `false` |
| `WEB_PROTOCOL` | Specify Web protocol | `http` or `https` |
| `INSTALL_EPEL` | Install EPEL repository | `true` or `false` |
| `ONLY_EPEL` | Only switch EPEL repo | `true` or `false` |
| `BACKUP` | Backup original mirrors | `true` or `false` |
| `IGNORE_BACKUP_TIPS` | Ignore backup overwrite prompt | `true` or `false` |
| `UPGRADE_SOFTWARE` | Upgrade packages | `true` or `false` |
| `CLEAN_CACHE` | Clean cache after upgrade | `true` or `false` |
| `CLEAN_SCREEN` | Clear screen before running | `true` or `false` |
| `PRINT_DIFF` | Print diff before and after modification | `true` or `false` |
| `PURE_MODE` | Pure mode, minimal output | `true` or `false` |
> Some variables have defaults. Unused variables do not need to be declared as empty strings. If a configuration is missing, interaction may occur.

View File

@@ -391,24 +391,6 @@ hide:
如果发现交互界面是输入而不是新式的方向键控制,那么请自行安装 `ncurses` 或 `nano` 软件包,新式的按键交互依赖 `tput` 指令实现。
- #### 关于调用脚本的互联网位置
!!! quote ""
项目利用 [GitHub Action](https://github.com/SuperManito/LinuxMirrors/blob/main/.github/workflows/build-docs.yml#L29) 在每次提交后自动拷贝源码到文档目录作为网站资源发布,网站托管于 [:netlify: Netlify](https://www.netlify.com),几乎没有被劫持的风险请放心使用。
当然你也可以使用代码托管仓库的原始地址来调用,这里只是想告诉你为什么会有几个不同的地址,默认的官网地址更易于记忆和访问。
- #### 关于软件源下载速度相关问题
!!! quote ""
首先,在[软件源列表](../mirrors/index.md)的使用帮助处有写使用推荐,这是根据以往经验总结出来的,但总有用户在纠结软件源速度的问题。
软件源(镜像站)的网络延迟即 `Ping` 与下载速度没有太大的关联,双方地理位置间隔的远近不代表实际体验,有些镜像站下行总带宽很高但实际测速却并不理想,因为这与镜像站的负载策略有关。
网上也有很多基于 C、Python 编写的镜像站测速开源脚本,而本项目脚本基于 Bash Shell 编写且不依赖任何第三方库Bash 是 Linux 运维中最常用的脚本语言并且绝大部分发行版都会预装,这意味着用户不需要安装任何环境就能直接运行,这种便利性是其它高级语言无法替代的,不过目前来看 Bash 脚本可能不太容易实现精准测速的功能,使用其它高级语言编写测速功能无疑是造轮子的行为。
- #### 关于未启用的软件源仓库
!!! quote ""
@@ -431,6 +413,40 @@ hide:
部分仓库默认没有启用,若需启用请将 `/etc/zypp/repos.d` 目录下相关 repo 文件中的 `enabled` 值修改为 `1`
- #### 其它
??? quote "关于调用脚本的互联网位置"
项目利用 [GitHub Action](https://github.com/SuperManito/LinuxMirrors/blob/main/.github/workflows/build-docs.yml#L29) 在每次提交后自动拷贝源码到文档目录作为网站资源发布,网站托管于 [:netlify: Netlify](https://www.netlify.com),几乎没有被劫持的风险请放心使用。
当然你也可以使用代码托管仓库的原始地址来调用,这里只是想告诉你为什么会有几个不同的地址,默认的官网地址更易于记忆和访问。
??? quote "关于软件源下载速度问题"
首先,在[软件源列表](../mirrors/index.md)的使用帮助处有写使用推荐,这是根据以往经验总结出来的,但总有用户在纠结软件源速度的问题。
软件源(镜像站)的网络延迟即 `Ping` 与下载速度没有太大的关联,双方地理位置间隔的远近不代表实际体验,有些镜像站下行总带宽很高但实际测速却并不理想,因为这与镜像站的负载策略有关。
网上也有很多基于 C、Python 编写的镜像站测速开源脚本,而本项目脚本基于 Bash Shell 编写且不依赖任何第三方库Bash 是 Linux 运维中最常用的脚本语言并且绝大部分发行版都会预装,这意味着用户不需要安装任何环境就能直接运行,这种便利性是其它高级语言无法替代的,不过目前来看 Bash 脚本可能不太容易实现精准测速的功能,使用其它高级语言编写测速功能无疑是造轮子的行为。
??? quote "关于软件源选优"
很多朋友可能都会有一个疑问:“既然脚本已经如此便捷且实现了高度自动化,为什么不能实现软件源自动选优呢?”,不是做不到而是不能。
“软件源选优” 在这里指的是脚本根据客户端的网络环境、地理位置自动选择一个体验最佳的软件源,这个问题要从多个角度来论证:
- 速度方面
其实上面已经解释过了,总结来说就是追求速度不是普遍需求,对大多数人来说是无感的、能用即可,况且现在很多 Linux 发行版不需要换源就有不错的速度。
- 对于镜像站本身
举个最简单的例子,以前阿里云镜像站因为速度快、可用性高几乎被当成首选,但是随着用户越来越多导致速度变的原来越慢甚至可能不足 10 Mbps。
长此以往,那些用户多的镜像站可能无法承受过高的流量而导致体验下降,用户少的镜像站可能会最终走向关闭,这不利于整个生态的发展。
- 开发者角度
本项目站在运维工具的角度致力于开发一个通用的换源脚本,而不是一个解决软件源需求的具体化工具,要使脚本的默认行为适用于大多数用户群体。作为运维工具要有明确的功能定位,作为脚本要从扩展性、实用性等多个方面去衡量利弊,软件源的选择权应该完全交给用户。
---
@@ -466,6 +482,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
--upgrade-software 是否更新软件包 true 或 false
--clean-cache 是否在更新软件包后清理下载缓存 true 或 false
--clean-screen 是否在运行前清除屏幕上的所有内容 true 或 false
--lang 指定脚本输出的语言 语言
--only-epel 仅更换 EPEL 软件源模式 无
--ignore-backup-tips 忽略覆盖备份提示 无
--print-diff 打印源文件修改前后差异 无
@@ -499,6 +516,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
| `--upgrade-software` | 是否更新软件包 | `true` 或 `false` |
| `--clean-cache` | 是否在更新软件包后清理下载缓存 | `true` 或 `false` |
| `--clean-screen` | 是否在运行前清除屏幕上的所有内容 | `true` 或 `false` |
| `--lang` | 指定脚本输出的语言 | `语言ID详见下方文档` |
| `--only-epel` | 仅更换 EPEL 软件源模式 | 无 |
| `--ignore-backup-tips` | 忽略覆盖备份提示(即不覆盖备份) | 无 |
| `--print-diff` | 是否打印源文件修改前后差异 | 无 |
@@ -527,31 +545,31 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
| 系统名称 | 涉及的名称 |
| --- | :---: |
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.35em"></a> **Debian** | `debian` `debian-archive` |
| <a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **Ubuntu** | `ubuntu` `ubuntu-ports` |
| <a href="https://www.kali.org" title="https://www.kali.org" target="_blank"><img src="/assets/images/icon/kali-linux.svg" width="16" height="16"></a> **Kali Linux** | `kali` |
| <a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank"><img src="/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **Linux Mint** | `linuxmint` `ubuntu` `ubuntu-ports` `debian` |
| <a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank"><img src="/assets/images/icon/deepin.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Deepin深度** | `deepin` |
| <a href="https://zorin.com/os" title="https://zorin.com/os" target="_blank"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Zorin OS** | `ubuntu` `ubuntu-ports` |
| <a href="https://www.armbian.com" title="https://www.armbian.com" target="_blank"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Armbian** | `armbian` |
| <a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Proxmox VE** | `proxmox` |
| <a href="https://www.raspberrypi.com/software" title="https://www.raspberrypi.com/software" target="_blank"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Raspberry Pi OS** | `raspberrypi` `raspbian` `debian` `debian-archive` |
| <a href="https://access.redhat.com/products/red-hat-enterprise-linux" title="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> **Red Hat Enterprise Linux** :material-information-outline:{ title="9版本使用 <code>CentOS Stream</code> 7、8版本使用<code>CentOS</code>" } | `centos` `centos-stream` `centos-altarch` `centos-vault` |
| <a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Fedora** | `fedora` `fedora-archive` |
| <a href="https://www.centos.org" title="https://www.centos.org" target="_blank"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.135em"></a> **CentOS** | `centos` `centos-stream` `centos-altarch` `centos-vault` |
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Rocky Linux** | `rocky` |
| <a href="https://almalinux.org" title="https://almalinux.org" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | `almalinux` `almalinux-vault` |
| <a href="https://www.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank"><img src="/assets/images/icon/oracle-linux.png" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** | `centos-stream` |
| <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler开源欧拉** | `openeuler` |
| <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"></a> **OpenCloudOS鸥栖** | `opencloudos` |
| <a href="https://www.openkylin.top" title="https://www.openkylin.top" target="_blank"><img src="/assets/images/icon/openkylin.ico" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin开放麒麟** | `openkylin` |
| <a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank"><img src="/assets/images/icon/anolis.png" width="16" height="16" style="vertical-align: -0.1em"></a> **Anolis OS龙蜥** | `anolis` |
| <a href="https://www.opensuse.org" title="https://www.opensuse.org" target="_blank"><img src="/assets/images/icon/opensuse.svg" width="16" height="16"></a> **openSUSE** | `opensuse` |
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank"><img src="/assets/images/icon/arch-linux.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Arch Linux** | `archlinux` `archlinuxarm` |
| <a href="https://manjaro.org" title="https://manjaro.org" target="_blank"><img src="/assets/images/icon/manjaro.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Manjaro** | `manjaro` |
| <a href="https://www.alpinelinux.org" title="https://www.alpinelinux.org" target="_blank"><img src="/assets/images/icon/alpine.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Alpine Linux** | `alpine` |
| <a href="https://www.gentoo.org" title="https://www.gentoo.org" target="_blank"><img src="/assets/images/icon/gentoo.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Gentoo** | `gentoo` `gentoo-portage` |
| <a href="https://nixos.org" title="https://nixos.org" target="_blank"><img src="/assets/images/icon/nixos.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | `nix-channels` |
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.35em"></a> **Debian** | `debian` `debian-archive` |
| <a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **Ubuntu** | `ubuntu` `ubuntu-ports` |
| <a href="https://www.kali.org" title="https://www.kali.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/kali-linux.png" width="16" height="16"></a> **Kali Linux** | `kali` |
| <a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **Linux Mint** | `linuxmint` `ubuntu` `ubuntu-ports` `debian` |
| <a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/deepin.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Deepin深度** | `deepin` |
| <a href="https://zorin.com/os" title="https://zorin.com/os" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Zorin OS** | `ubuntu` `ubuntu-ports` |
| <a href="https://www.armbian.com" title="https://www.armbian.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Armbian** | `armbian` |
| <a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Proxmox VE** | `proxmox` |
| <a href="https://www.raspberrypi.com/software" title="https://www.raspberrypi.com/software" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Raspberry Pi OS** | `raspberrypi` `raspbian` `debian` `debian-archive` |
| <a href="https://access.redhat.com/products/red-hat-enterprise-linux" title="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> **Red Hat Enterprise Linux** :material-information-outline:{ title="9版本使用 <code>CentOS Stream</code> 7、8版本使用<code>CentOS</code>" } | `centos` `centos-stream` `centos-altarch` `centos-vault` |
| <a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Fedora** | `fedora` `fedora-archive` |
| <a href="https://www.centos.org" title="https://www.centos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.135em"></a> **CentOS** | `centos` `centos-stream` `centos-altarch` `centos-vault` |
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Rocky Linux** | `rocky` |
| <a href="https://almalinux.org" title="https://almalinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | `almalinux` `almalinux-vault` |
| <a href="https://www.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/oracle-linux.png" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** | `centos-stream` |
| <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler开源欧拉** | `openeuler` |
| <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"></a> **OpenCloudOS鸥栖** | `opencloudos` |
| <a href="https://www.openkylin.top" title="https://www.openkylin.top" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/openkylin.ico" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin开放麒麟** | `openkylin` |
| <a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/anolis.png" width="16" height="16" style="vertical-align: -0.1em"></a> **Anolis OS龙蜥** | `anolis` |
| <a href="https://www.opensuse.org" title="https://www.opensuse.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/opensuse.svg" width="16" height="16"></a> **openSUSE** | `opensuse` |
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/arch-linux.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Arch Linux** | `archlinux` `archlinuxarm` |
| <a href="https://manjaro.org" title="https://manjaro.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/manjaro.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Manjaro** | `manjaro` |
| <a href="https://www.alpinelinux.org" title="https://www.alpinelinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/alpine.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Alpine Linux** | `alpine` |
| <a href="https://www.gentoo.org" title="https://www.gentoo.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/gentoo.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Gentoo** | `gentoo` `gentoo-portage` |
| <a href="https://nixos.org" title="https://nixos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | `nix-channels` |
请看下面的例子
@@ -691,6 +709,35 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
grep -q "\[archlinuxcn\]" /etc/pacman.conf || echo -e "[archlinuxcn]\nServer = ${SOURCE}/\$arch" >>/etc/pacman.conf # 一键配置命令
```
- ### 国际化I18n
脚本提供多语言支持,当前内置 `简体中文`、`繁體中文`、`English` 共三种显示语言,默认为 `简体中文`
- #### 指定语言
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --lang xxx
```
| 类型 | 值 |
| :-: | :-: |
| 简体中文 | `zh-hans` `zh-cn` `zh` |
| 繁體中文 | `zh-hant` `zh-tw` `zh-hk` |
| English | `en` `en-us` |
也可以直接作为命令选项使用
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --en
```
> `--en` `--en-us` `--zh` `--zh-cn` `--zh-hans` `--zh-hant`
- #### 通过交互进行选择
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --lang auto
```
- ### 无人值守(自动化)
不通过交互完成换源操作,至少需要使用如下命令选项来实现,建议熟悉后再使用
@@ -732,35 +779,38 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
1. 首先在删除内容时应尽可能保留脚本原始结构,直接把涉及函数中的内容删除即可,使其保留为空函数
2. 可以删除一些不使用(操作系统)的软件源原始内容 `gen_repo_files_xxx`,这些内容占据了脚本 `60%` 以上的体积
3. 如果你不使用某些功能那么可以删除对应功能模块函数中的内容,`命令选项 handle_command_options`、`备份原有软件源 backup_original_mirrors`、`更新软件包 upgrade_software`
4. 移除不需要的语言包,例:`function msg_pack_en() {}`
6. 脚本主要功能配置是由统一的变量控制的,命令选项亦是如此,这些全局变量由全大写字母构成并遵循下划线命名法,具体变量详见如下表格,你只需要将这些变量声明在脚本头部(预留注释区域)即可快速完成定制
| 变量名 | 含义 | 值类型 |
| :-: | :-: | :-: |
| `SOURCE` | 指定软件源地址域名或IP | `地址` |
| `SOURCE_EPEL` | 指定 EPEL 附加软件包仓库的软件源地址域名或IP | `地址` |
| `SOURCE_SECURITY` | 指定 Debian / Ubuntu 系统 security 仓库的软件源地址域名或IP | `地址` |
| `SOURCE_VAULT` | 指定 CentOS / AlmaLinux 系统 vault 仓库的软件源地址域名或IP | `地址` |
| `SOURCE_PORTAGE` | 指定 Gentoo 系统 portage 仓库的软件源地址域名或IP | `地址` |
| `SOURCE_BASE_SYSTEM` | 指定 Linux Mint / Raspberry Pi OS 底层系统的软件源地址域名或IP | `地址` |
| `SOURCE_BRANCH` | 指定软件源仓库(路径) | `仓库名` |
| `SOURCE_EPEL_BRANCH` | 指定 EPEL 附加软件包仓库的软件源仓库(路径) | `仓库名` |
| `SOURCE_SECURITY_BRANCH` | 指定 Debian 系统 security 仓库的软件源仓库(路径) | `仓库名` |
| `SOURCE_VAULT_BRANCH` | 指定 CentOS / AlmaLinux 系统 vault 仓库的软件源仓库(路径) | `仓库名` |
| `SOURCE_PORTAGE_BRANCH` | 指定 Gentoo 系统 portage 仓库的软件源仓库(路径) | `仓库名` |
| `SOURCE_BASE_SYSTEM_BRANCH` | 指定 Linux Mint / Raspberry Pi OS 底层系统的软件源仓库(路径) | `仓库名` |
| `DEBIAN_CODENAME` | 指定 Debian 系 / openKylin 操作系统的版本代号 | `代号名称` |
| `USE_INTRANET_SOURCE` | 是否优先使用内网软件源地址 | `true` 或 `false` |
| `USE_OFFICIAL_SOURCE` | 是否使用目标操作系统的官方软件源 | `true` 或 `false` |
| `USE_OFFICIAL_SOURCE_EPEL` | 是否使用 EPEL 附加软件包的官方软件源 | `true` 或 `false` |
| `WEB_PROTOCOL` | 指定 Web 协议 | `http` 或 `https` |
| `INSTALL_EPEL` | 是否安装 EPEL 附加软件包 | `true` 或 `false` |
| `ONLY_EPEL` | 仅更换 EPEL 软件源模式 | `true` 或 `false` |
| `BACKUP` | 是否备份原有软件源 | `true` 或 `false` |
| `IGNORE_BACKUP_TIPS` | 忽略覆盖备份提示(即不覆盖备份) | `true` 或 `false` |
| `UPGRADE_SOFTWARE` | 是否更新软件包 | `true` 或 `false` |
| `CLEAN_CACHE` | 是否在更新软件包后清理下载缓存 | `true` 或 `false` |
| `CLEAN_SCREEN` | 是否在运行前清除屏幕上的所有内容 | `true` 或 `false` |
| `PRINT_DIFF` | 是否打印源文件修改前后差异 | `true` 或 `false` |
| `PURE_MODE` | 纯净模式,精简打印内容 | `true` 或 `false` |
??? note "变量列表(点击展开查看)"
> 部分变量存在默认值,未涉及的变量无需声明为空值(空字符串),另外如果对应功能配置不存在那么就可能会出现交互
| 变量名 | 含义 | 值类型 |
| :-: | :-: | :-: |
| `SOURCE` | 指定软件源地址域名或IP | `地址` |
| `SOURCE_EPEL` | 指定 EPEL 附加软件包仓库的软件源地址域名或IP | `地址` |
| `SOURCE_SECURITY` | 指定 Debian / Ubuntu 系统 security 仓库的软件源地址域名或IP | `地址` |
| `SOURCE_VAULT` | 指定 CentOS / AlmaLinux 系统 vault 仓库的软件源地址域名或IP | `地址` |
| `SOURCE_PORTAGE` | 指定 Gentoo 系统 portage 仓库的软件源地址域名或IP | `地址` |
| `SOURCE_BASE_SYSTEM` | 指定 Linux Mint / Raspberry Pi OS 底层系统的软件源地址域名或IP | `地址` |
| `SOURCE_BRANCH` | 指定软件源仓库(路径) | `仓库名` |
| `SOURCE_EPEL_BRANCH` | 指定 EPEL 附加软件包仓库的软件源仓库(路径) | `仓库名` |
| `SOURCE_SECURITY_BRANCH` | 指定 Debian 系统 security 仓库的软件源仓库(路径) | `仓库名` |
| `SOURCE_VAULT_BRANCH` | 指定 CentOS / AlmaLinux 系统 vault 仓库的软件源仓库(路径) | `仓库名` |
| `SOURCE_PORTAGE_BRANCH` | 指定 Gentoo 系统 portage 仓库的软件源仓库(路径) | `仓库名` |
| `SOURCE_BASE_SYSTEM_BRANCH` | 指定 Linux Mint / Raspberry Pi OS 底层系统的软件源仓库(路径) | `仓库名` |
| `DEBIAN_CODENAME` | 指定 Debian 系 / openKylin 操作系统的版本代号 | `代号名称` |
| `USE_INTRANET_SOURCE` | 是否优先使用内网软件源地址 | `true` 或 `false` |
| `USE_OFFICIAL_SOURCE` | 是否使用目标操作系统的官方软件源 | `true` 或 `false` |
| `USE_OFFICIAL_SOURCE_EPEL` | 是否使用 EPEL 附加软件包的官方软件源 | `true` 或 `false` |
| `WEB_PROTOCOL` | 指定 Web 协议 | `http` 或 `https` |
| `INSTALL_EPEL` | 是否安装 EPEL 附加软件包 | `true` 或 `false` |
| `ONLY_EPEL` | 仅更换 EPEL 软件源模式 | `true` 或 `false` |
| `BACKUP` | 是否备份原有软件源 | `true` 或 `false` |
| `IGNORE_BACKUP_TIPS` | 忽略覆盖备份提示(即不覆盖备份) | `true` 或 `false` |
| `UPGRADE_SOFTWARE` | 是否更新软件包 | `true` 或 `false` |
| `CLEAN_CACHE` | 是否在更新软件包后清理下载缓存 | `true` 或 `false` |
| `CLEAN_SCREEN` | 是否在运行前清除屏幕上的所有内容 | `true` 或 `false` |
| `PRINT_DIFF` | 是否打印源文件修改前后差异 | `true` 或 `false` |
| `PURE_MODE` | 纯净模式,精简打印内容 | `true` 或 `false` |
> 部分变量存在默认值,未涉及的变量无需声明为空值(空字符串),另外如果对应功能配置不存在那么就可能会出现交互

View File

@@ -13,39 +13,39 @@ hide:
=== ":linuxmirrors: 官網 (推薦)"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh)
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --zh-hant
```
=== ":simple-github: GitHub"
``` bash
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh)
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --zh-hant
```
=== ":simple-gitee: Gitee 碼雲 (鏡像倉庫)"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --zh-hant
```
> 即時同步、無延遲,中國大陸網路環境下推薦使用
=== ":simple-gitcode: GitCode (鏡像倉庫)"
``` bash
bash <(curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)
bash <(curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --zh-hant
```
> 同步存在1小時延遲
=== ":simple-jsdelivr: jsDelivr (CDN)"
``` bash
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh)
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --zh-hant
```
=== ":tencent-cloud: 騰訊雲 EO (CDN)"
``` bash
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh)
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --zh-hant
```
> 不建議在中國大陸網路環境下使用
@@ -56,26 +56,26 @@ hide:
=== ":linuxmirrors: 官網 (推薦)"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --abroad
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --zh-hant --abroad
```
=== ":simple-github: GitHub"
``` bash
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --abroad
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --zh-hant --abroad
```
=== ":simple-gitee: Gitee 碼雲 (鏡像倉庫)"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --zh-hant --abroad
```
> 即時同步、無延遲,中國大陸網路環境下推薦使用
=== ":simple-gitcode: GitCode (鏡像倉庫)"
``` bash
bash <(curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad
bash <(curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --zh-hant --abroad
```
> 同步存在1小時延遲
@@ -83,13 +83,13 @@ hide:
=== ":simple-jsdelivr: jsDelivr (CDN)"
``` bash
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --abroad
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --zh-hant --abroad
```
=== ":tencent-cloud: 騰訊雲 EO (CDN)"
``` bash
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --abroad
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --zh-hant --abroad
```
> 不建議在中國大陸網路環境下使用
@@ -100,26 +100,26 @@ hide:
=== ":linuxmirrors: 官網 (推薦)"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --edu
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --zh-hant --edu
```
=== ":simple-github: GitHub"
``` bash
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --edu
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --zh-hant --edu
```
=== ":simple-gitee: Gitee 碼雲 (鏡像倉庫)"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --edu
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --zh-hant --edu
```
> 即時同步、無延遲,中國大陸網路環境下推薦使用
=== ":simple-gitcode: GitCode (鏡像倉庫)"
``` bash
bash <(curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --edu
bash <(curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --zh-hant --edu
```
> 同步存在1小時延遲
@@ -127,13 +127,13 @@ hide:
=== ":simple-jsdelivr: jsDelivr (CDN)"
``` bash
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --edu
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --zh-hant --edu
```
=== ":tencent-cloud: 騰訊雲 EO (CDN)"
``` bash
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --edu
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --zh-hant --edu
```
> 不建議在中國大陸網路環境下使用
@@ -262,19 +262,19 @@ hide:
=== ":material-home-city: 中國大陸"
``` bash
bash main.sh
bash main.sh --zh-hant
```
=== ":material-earth: 國際地區"
``` bash
bash main.sh --abroad
bash main.sh --zh-hant --abroad
```
=== ":material-library: 中國大陸教育網"
``` bash
bash main.sh --edu
bash main.sh --zh-hant --edu
```
如果以上方法試了都不行,那就複製[原始碼](https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)至本地新建任意名稱的 `.sh` 腳本,貼上原始碼內容後透過 `bash` 指令手動執行。
@@ -391,24 +391,6 @@ hide:
如果發現互動介面是輸入而非新式的方向鍵控制,那麼請自行安裝 `ncurses` 或 `nano` 軟體包,新式的按鍵互動依賴 `tput` 指令實作。
- #### 關於呼叫腳本的互聯網位置
!!! quote ""
專案利用 [GitHub Action](https://github.com/SuperManito/LinuxMirrors/blob/main/.github/workflows/build-docs.yml#L29) 在每次提交後自動拷貝原始碼到文件目錄作為網站資源發佈,網站託管於 [:netlify: Netlify](https://www.netlify.com),幾乎沒有使用風險。
當然你也可以使用程式碼託管倉庫的原始位址來調用,這裡只是想告訴你為什麼會有幾個不同的位址,預設的官網位址更容易記憶和訪問。
- #### 關於軟體源下載速度相關問題
!!! quote ""
首先,在[軟體源列表](../mirrors/index.md)的使用幫助處有寫使用推薦,這是根據以往經驗總結出來的,但總有用戶在糾結軟體源速度的問題。
軟體源(鏡像站)的網路延遲即 `Ping` 與下載速度沒有太大的關聯,雙方地理位置間隔的遠近不代表實際體驗,有些鏡像站下行總頻寬很高但實際測速卻並不理想,因為這與鏡像站的負載策略有關。
網路上也有很多基於 C、Python 編寫的鏡像站測速開源腳本,而本專案腳本基於 Bash Shell 編寫且不依賴任何第三方庫Bash 是 Linux 運維中最常用的腳本語言並且絕大部分發行版都會預裝,這意味著用戶不需要安裝任何環境就能直接運行,這種便利性是其他高級語言無法替代的,不過目前 Bash 腳本可能不太容易實現精準測速的功能,使用其它高級語言編寫測速功能無疑是造輪子的行為。
- #### 關於未啟用的軟體源倉庫
!!! quote ""
@@ -431,6 +413,40 @@ hide:
部分倉庫預設沒有啟用,若需啟用請將 `/etc/zypp/repos.d` 目錄下相關 repo 文件中的 `enabled` 值修改為 `1`
- #### 其它
??? quote "關於呼叫腳本的互聯網位置"
專案利用 [GitHub Action](https://github.com/SuperManito/LinuxMirrors/blob/main/.github/workflows/build-docs.yml#L29) 在每次提交後自動拷貝原始碼到文件目錄作為網站資源發佈,網站託管於 [:netlify: Netlify](https://www.netlify.com),幾乎沒有使用風險。
當然你也可以使用程式碼託管倉庫的原始位址來調用,這裡只是想告訴你為什麼會有幾個不同的位址,預設的官網位址更容易記憶和訪問。
??? quote "關於軟體源下載速度問題"
首先,在[軟體源列表](../mirrors/index.md)的使用幫助處有寫使用推薦,這是根據以往經驗總結出來的,但總有用戶在糾結軟體源速度的問題。
軟體源(鏡像站)的網路延遲即 `Ping` 與下載速度沒有太大的關聯,雙方地理位置間隔的遠近不代表實際體驗,有些鏡像站下行總頻寬很高但實際測速卻並不理想,因為這與鏡像站的負載策略有關。
網路上也有很多基於 C、Python 編寫的鏡像站測速開源腳本,而本專案腳本基於 Bash Shell 編寫且不依賴任何第三方庫Bash 是 Linux 運維中最常用的腳本語言並且絕大部分發行版都會預裝,這意味著用戶不需要安裝任何環境就能直接運行,這種便利性是其他高級語言無法替代的,不過目前 Bash 腳本可能不太容易實現精準測速的功能,使用其它高級語言編寫測速功能無疑是造輪子的行為。
??? quote "關於軟體源選優"
很多朋友可能都會有一個疑問:“既然腳本已經如此便捷且實現了高度自動化,為什麼不能實現軟體源自動選優呢?”,不是做不到而是不能。
「軟體源選優」 在這裡指的是腳本根據客戶端的網路環境、地理位置自動選擇一個體驗最佳的軟體源,這個問題要從多個角度來論證:
- 速度方面
其實上面已經解釋過了,總結來說就是追求速度不是普遍需求,對大多數人來說是無感的、能用即可,況且現在很多 Linux 發行版不需要換源就有不錯的速度。
- 對於鏡像站本身
舉個最簡單的例子,以前阿里雲鏡像站因為速度快、可用性高幾乎被當成首選,但是隨著用戶越來越多導致速度變的原來越慢甚至可能不足 10 Mbps。
長此以往,那些用戶多的鏡像站可能無法承受過高的流量而導致體驗下降,用戶少的鏡像站可能會最終走向關閉,這不利於整個生態的發展。
- 開發者角度
本專案站在維運工具的角度致力於開發一個通用的換源腳本,而不是一個解決軟體源需求的具體化工具,要使腳本的預設行為適用於大多數使用者群體。作為維運工具要有明確的功能定位,作為腳本要從擴展性、實用性等多個方面去衡量利弊,軟體源的選擇權應該完全交給使用者。
---
@@ -438,7 +454,7 @@ hide:
<!-- termynal -->
```
$ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
$ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --zh-hant --help
命令選項(名稱/含義/值)
@@ -466,6 +482,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
--upgrade-software 是否更新軟體包 true 或 false
--clean-cache 是否在更新軟體包後清理下載快取 true 或 false
--clean-screen 是否在運行前清除螢幕上的所有內容 true 或 false
--lang 指定腳本輸出的語言 语言
--only-epel 僅更換 EPEL 軟體源模式 無
--ignore-backup-tips 忽略覆蓋備份提示 無
--print-diff 是否列印原始文件修改前後差異 無
@@ -473,7 +490,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
--help 查看幫助選單 無
```
| 名稱 | 含義 | 选项值 |
| 名稱 | 含義 | 選項值 |
| - | - | :-: |
| `--abroad` | 使用境外以及海外軟體源 | 無 |
| `--edu` | 使用中國大陸教育網軟體源 | 無 |
@@ -499,6 +516,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
| `--upgrade-software` | 是否更新軟體套件 | `true` 或 `false` |
| `--clean-cache` | 是否在更新軟體包後清理下載快取 | `true` 或 `false` |
| `--clean-screen` | 是否在運行前清除螢幕上的所有內容 | `true` 或 `false` |
| `--lang` | 指定腳本輸出的語言 | `語言ID詳見下方文件` |
| `--only-epel` | 僅更換 EPEL 軟體源模式 | 無 |
| `--ignore-backup-tips` | 忽略覆蓋備份提示(即不覆蓋備份) | 無 |
| `--print-diff` | 是否列印原始文件修改前後差異 | 無 |
@@ -512,7 +530,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
- ### 指定軟體源位址
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --source mirror.example.com
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --zh-hant --source mirror.example.com
```
- ### 指定軟體源倉庫目錄
@@ -527,36 +545,36 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
| 系統名稱 | 涉及的名稱 |
| --- | :---: |
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.35em"></a> **Debian** | `debian` `debian-archive` |
| <a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **Ubuntu** | `ubuntu` `ubuntu-ports` |
| <a href="https://www.kali.org" title="https://www.kali.org" target="_blank"><img src="/assets/images/icon/kali-linux.svg" width="16" height="16"></a> **Kali Linux** | `kali` |
| <a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank"><img src="/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **Linux Mint** | `linuxmint` `ubuntu` `ubuntu-ports` `debian` |
| <a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank"><img src="/assets/images/icon/deepin.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Deepin** | `deepin` |
| <a href="https://zorin.com/os" title="https://zorin.com/os" target="_blank"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Zorin OS** | `ubuntu` `ubuntu-ports` |
| <a href="https://www.armbian.com" title="https://www.armbian.com" target="_blank"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Armbian** | `armbian` |
| <a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Proxmox VE** | `proxmox` |
| <a href="https://www.raspberrypi.com/software" title="https://www.raspberrypi.com/software" target="_blank"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Raspberry Pi OS** | `raspberrypi` `raspbian` `debian` `debian-archive` |
| <a href="https://access.redhat.com/products/red-hat-enterprise-linux" title="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> **Red Hat Enterprise Linux** :material-information-outline:{ title="9版本使用 <code>CentOS Stream</code> 7、8版本使用<code>CentOS</code>" } | `centos` `centos-stream` `centos-altarch` `centos-vault` |
| <a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Fedora** | `fedora` `fedora-archive` |
| <a href="https://www.centos.org" title="https://www.centos.org" target="_blank"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.135em"></a> **CentOS** | `centos` `centos-stream` `centos-altarch` `centos-vault` |
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Rocky Linux** | `rocky` |
| <a href="https://almalinux.org" title="https://almalinux.org" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | `almalinux` `almalinux-vault` |
| <a href="https://www.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank"><img src="/assets/images/icon/oracle-linux.png" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** | `centos-stream` |
| <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler** | `openeuler` |
| <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"></a> **OpenCloudOS** | `opencloudos` |
| <a href="https://www.openkylin.top" title="https://www.openkylin.top" target="_blank"><img src="/assets/images/icon/openkylin.ico" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin** | `openkylin` |
| <a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank"><img src="/assets/images/icon/anolis.png" width="16" height="16" style="vertical-align: -0.1em"></a> **Anolis OS** | `anolis` |
| <a href="https://www.opensuse.org" title="https://www.opensuse.org" target="_blank"><img src="/assets/images/icon/opensuse.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **openSUSE** | `opensuse` |
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank"><img src="/assets/images/icon/arch-linux.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Arch Linux** | `archlinux` `archlinuxarm` |
| <a href="https://manjaro.org" title="https://manjaro.org" target="_blank"><img src="/assets/images/icon/manjaro.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Manjaro** | `manjaro` |
| <a href="https://www.alpinelinux.org" title="https://www.alpinelinux.org" target="_blank"><img src="/assets/images/icon/alpine.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Alpine Linux** | `alpine` |
| <a href="https://www.gentoo.org" title="https://www.gentoo.org" target="_blank"><img src="/assets/images/icon/gentoo.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Gentoo** | `gentoo` `gentoo-portage` |
| <a href="https://nixos.org" title="https://nixos.org" target="_blank"><img src="/assets/images/icon/nixos.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | `nix-channels` |
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.35em"></a> **Debian** | `debian` `debian-archive` |
| <a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **Ubuntu** | `ubuntu` `ubuntu-ports` |
| <a href="https://www.kali.org" title="https://www.kali.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/kali-linux.png" width="16" height="16"></a> **Kali Linux** | `kali` |
| <a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **Linux Mint** | `linuxmint` `ubuntu` `ubuntu-ports` `debian` |
| <a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/deepin.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Deepin** | `deepin` |
| <a href="https://zorin.com/os" title="https://zorin.com/os" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Zorin OS** | `ubuntu` `ubuntu-ports` |
| <a href="https://www.armbian.com" title="https://www.armbian.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Armbian** | `armbian` |
| <a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Proxmox VE** | `proxmox` |
| <a href="https://www.raspberrypi.com/software" title="https://www.raspberrypi.com/software" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Raspberry Pi OS** | `raspberrypi` `raspbian` `debian` `debian-archive` |
| <a href="https://access.redhat.com/products/red-hat-enterprise-linux" title="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> **Red Hat Enterprise Linux** :material-information-outline:{ title="9版本使用 <code>CentOS Stream</code> 7、8版本使用<code>CentOS</code>" } | `centos` `centos-stream` `centos-altarch` `centos-vault` |
| <a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Fedora** | `fedora` `fedora-archive` |
| <a href="https://www.centos.org" title="https://www.centos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.135em"></a> **CentOS** | `centos` `centos-stream` `centos-altarch` `centos-vault` |
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Rocky Linux** | `rocky` |
| <a href="https://almalinux.org" title="https://almalinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | `almalinux` `almalinux-vault` |
| <a href="https://www.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/oracle-linux.png" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** | `centos-stream` |
| <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler** | `openeuler` |
| <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"></a> **OpenCloudOS** | `opencloudos` |
| <a href="https://www.openkylin.top" title="https://www.openkylin.top" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/openkylin.ico" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin** | `openkylin` |
| <a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/anolis.png" width="16" height="16" style="vertical-align: -0.1em"></a> **Anolis OS** | `anolis` |
| <a href="https://www.opensuse.org" title="https://www.opensuse.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/opensuse.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **openSUSE** | `opensuse` |
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/arch-linux.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Arch Linux** | `archlinux` `archlinuxarm` |
| <a href="https://manjaro.org" title="https://manjaro.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/manjaro.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Manjaro** | `manjaro` |
| <a href="https://www.alpinelinux.org" title="https://www.alpinelinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/alpine.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Alpine Linux** | `alpine` |
| <a href="https://www.gentoo.org" title="https://www.gentoo.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/gentoo.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Gentoo** | `gentoo` `gentoo-portage` |
| <a href="https://nixos.org" title="https://nixos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | `nix-channels` |
請看下面的例子
``` { .bash title="使用阿里雲鏡像站的 Rocky Linux 軟體源" }
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --zh-hant \
--source mirrors.aliyun.com \
--branch rockylinux
```
@@ -574,7 +592,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
有些時候你會發現想使用的鏡像站沒有 EPEL 倉庫,那麼你可以在第一次運行腳本時不安裝或更換 EPEL 軟體源,然後再單獨執行下面的命令
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --only-epel
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --zh-hant --only-epel
```
對於已經 EOL 的 EPEL 7注意需要使用 [`archive`](https://dl.fedoraproject.org/pub/archive/epel) 倉庫,境外以及海外網絡環境建議通過命令選項 `--use-official-source-epel true` 使用官方源
@@ -584,7 +602,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
當你不小心刪除了官方軟體源的備份時可以使用此命令來恢復,使用此命令選項後將跳過選擇軟體源步驟
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --use-official-source true
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --zh-hant --use-official-source true
```
> 部分系統不存在官方軟體源例如 `Arch Linux`,屆時會自動更換成相容性較高的阿里雲鏡像站
@@ -617,7 +635,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
如果你想盡可能提高伺服器的安全性建議使用官方軟體源,因為鏡像同步存在延遲
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --zh-hant \
--source-security security.debian.org \
--branch-security debian-security
```
@@ -631,7 +649,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
- 更換版本代號
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --zh-hant \
--codename trixie \
--upgrade-software false
```
@@ -655,13 +673,13 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
# 清空原有軟體源(如有非系統軟體源內容請先自行手動備份)
sed -i '1,$d' /etc/apt/sources.list
# 重新執行換源腳本
bash <(curl -sSL https://linuxmirrors.cn/main.sh)
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --zh-hant
```
=== "將 GNU/Linux Debian 的版本切換到測試分支"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --zh-hant \
--codename testing \
--upgrade-software false
```
@@ -677,7 +695,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
具體版本支援情況詳見官方 [Wiki](https://wiki.ubuntu.com/Releases),關於 `Ubuntu Old Releases` 倉庫的支援情況詳見各鏡像站
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --zh-hant \
--source mirrors.ustc.edu.cn \
--branch ubuntu-old-releases
```
@@ -691,12 +709,41 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
grep -q "\[archlinuxcn\]" /etc/pacman.conf || echo -e "[archlinuxcn]\nServer = ${SOURCE}/\$arch" >>/etc/pacman.conf # 一鍵配置命令
```
- ### 國際化I18n
腳本提供多語言支持,目前內建 `简体中文`、`繁體中文`、`English` 共三種顯示語言,預設為 `简体中文`
- #### 指定語言
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --lang xxx
```
| 類型 | 值 |
| :-: | :-: |
| 简体中文 | `zh-hans` `zh-cn` `zh` |
| 繁體中文 | `zh-hant` `zh-tw` `zh-hk` |
| English | `en` `en-us` |
也可以直接作為指令選項使用
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --en
```
> `--en` `--en-us` `--zh` `--zh-cn` `--zh-hans` `--zh-hant`
- #### 透過互動進行選擇
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --lang auto
```
- ### 無人值守(自動化)
不透過交互完成換源操作,至少需要使用以下命令選項來實現,建議熟悉後再使用
``` { .bash .no-copy title="参考命令" }
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --zh-hant \
--source mirror.example.com \
--protocol http \
--use-intranet-source false \
@@ -713,7 +760,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
推出此功能是為了方便開發以及运維人員使用,啟用後會精簡腳本內容輸出,建議搭配其它指令選項無互動使用
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --pure-mode
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --zh-hant --pure-mode
```
!!! tip "滾動輸出的命令日誌可能有無法預料的顯示問題,不過目前暫未發現異常"
@@ -732,4 +779,38 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
1. 首先在刪除內容時應盡可能保留腳本原始結構,直接把涉及函數中的內容刪除即可,使其保留為空函數
2. 可以刪除一些不使用(作業系統)的軟體源原始內容 `gen_repo_files_xxx`,這些內容佔據了腳本 `60%` 以上的體積
3. 如果你不使用某些功能,那麼可以刪除對應功能模組函數中的內容,`命令選項 handle_command_options`、`備份原有軟體源 backup_original_mirrors`、`更新軟體包 upgrade_software`
4. 移除不需要的語言包,例:`function msg_pack_en() {}`
6. 腳本主要功能配置是由統一的變量控制的,命令選項亦是如此,這些全局變量由全大寫字母構成並遵循下劃線命名法,具體變量詳見如下表格,你只需要將這些變量聲明在腳本頭部(預留註釋區域)即可快速完成定制
??? note "變數列表(點擊展開查看)"
| 名稱 | 含義 | 值型別 |
| :-: | :-: | :-: |
| `SOURCE` | 指定軟體源位址網域名稱或IP | `位址` |
| `SOURCE_EPEL` | 指定 EPEL 附加軟體包倉庫的軟體源位址網域名稱或IP | `位址` |
| `SOURCE_SECURITY` | 指定 Debian / Ubuntu 系統 security 倉庫的軟體源位址網域名稱或IP | `位址` |
| `SOURCE_VAULT` | 指定 CentOS / AlmaLinux 系統 vault 倉庫的軟體源位址網域名稱或IP | `位址` |
| `SOURCE_PORTAGE` | 指定 Gentoo 系統 portage 倉庫的軟體源位址網域名稱或IP | `位址` |
| `SOURCE_BASE_SYSTEM` | 指定 Linux Mint / Raspberry Pi OS 底層系統的軟體源位址網域名稱或IP | `位址` |
| `SOURCE_BRANCH` | 指定軟體源倉庫(路徑) | `倉庫名稱` |
| `SOURCE_EPEL_BRANCH` | 指定 EPEL 附加軟體套件倉庫的軟體源倉庫(路徑) | `倉庫名稱` |
| `SOURCE_SECURITY_BRANCH` | 指定 Debian 系統 security 倉庫的軟體源倉庫(路徑) | `倉庫名稱` |
| `SOURCE_VAULT_BRANCH` | 指定 CentOS / AlmaLinux 系統 vault 倉庫的軟體源倉庫(路徑) | `倉庫名稱` |
| `SOURCE_PORTAGE_BRANCH` | 指定 Gentoo 系統 portage 倉庫的軟體源倉庫(路徑) | `倉庫名稱` |
| `SOURCE_BASE_SYSTEM_BRANCH` | 指定 Linux Mint / Raspberry Pi OS 底層系統的軟體源倉庫(路徑) | `倉庫名稱` |
| `DEBIAN_CODENAME` | 指定 Debian 系 / openKylin 作業系統的版本代號 | `代號名稱` |
| `USE_INTRANET_SOURCE` | 是否優先使用內網軟體源位址 | `true` 或 `false` |
| `USE_OFFICIAL_SOURCE` | 是否使用目標作業系統的官方軟體源 | `true` 或 `false` |
| `USE_OFFICIAL_SOURCE_EPEL` | 是否使用 EPEL 附加軟體包的官方軟體源 | `true` 或 `false` |
| `WEB_PROTOCOL` | 指定 Web 協定 | `http` 或 `https` |
| `INSTALL_EPEL` | 是否安裝 EPEL 附加軟體包 | `true` 或 `false` |
| `ONLY_EPEL` | 僅更換 EPEL 軟體源模式 | `true` 或 `false` |
| `BACKUP` | 是否備份原有軟體源 | `true` 或 `false` |
| `IGNORE_BACKUP_TIPS` | 忽略覆蓋備份提示(即不覆蓋備份) | `true` 或 `false` |
| `UPGRADE_SOFTWARE` | 是否更新軟體包 | `true` 或 `false` |
| `CLEAN_CACHE` | 是否在更新軟體包後清理下載快取 | `true` 或 `false` |
| `CLEAN_SCREEN` | 是否在運行前清除螢幕上的所有內容 | `true` 或 `false` |
| `PRINT_DIFF` | 是否列印原始檔案修改前後差異 | `true` 或 `false` |
| `PURE_MODE` | 純淨模式,精簡列印內容 | `true` 或 `false` |
> 部分變數存在預設值,未涉及的變數無需宣告為空值(空字串),另外如果對應功能配置不存在那麼就可能會出現交互

148
locales/docker/en.sh Normal file
View File

@@ -0,0 +1,148 @@
MESSAGE_CONTENTS=(
['start.welcome']='Docker installation & mirror switcher'
['start.runtimeEnv']='Runtime Env'
['start.dateTime']='System Time'
['end.moreInfo']='Script execution completed, visit our website for more tutorials'
['end.sponsorAds']='[Sponsor Ads]'
['error.cmd.options.needConfirm']='Please confirm and re-enter'
['error.cmd.options.needSpecify']='Please specify {} after this option'
['error.cmd.options.invalid']='Command option {} is invalid, {}!'
['error.cmd.options.validAddress']='a valid address'
['error.cmd.options.sourceAddress']='mirror address'
['error.cmd.options.registryAddress']='registry mirror address'
['error.cmd.options.sourceRepository']='mirror repository'
['error.cmd.options.validVersion']='a valid version number'
['error.cmd.options.ceRepositoryVersion']='Docker CE mirror repository version'
['error.cmd.options.version']='version number'
['error.cmd.options.codename']='version codename'
['error.cmd.options.boolean']=' true or false '
['error.cmd.options.protocol']=' http or https '
['error.cmd.options.needProtocol']=' Web protocol(http/https)'
['error.cmd.options.validLangKey']='A valid language ID '
['error.cmd.options.langKey']='language ID '
['error.unsupportSystem1']='Unsupported operating system ({})'
['error.unsupportSystem2']='Unsupported operating system ({}), please install manually with commands:'
['error.unknownSystem']='Unknown system'
['error.unsupportX86_32']='Docker Engine does not support installation on x86_32 architecture!'
['error.unknownArch']='Unknown system architecture: {}'
['error.unsupportS390x']='Please refer to RHEL distribution announcement for s390x support'
['error.input']='Input error, {}!'
['error.needRoot']='Insufficient permissions, please run this script as Root user'
['error.sync']='{} failed. Please fix system software sources (package repositories) so the {} package manager is available!'
['error.downloadGPG']='GPG key download failed, please check network or switch Docker CE mirror and retry!'
['error.queryVersionFailed']='Failed to query Docker Engine version list!'
['error.designatedVersion']='Specified Docker Engine version does not exist or is not supported for installation!'
['error.invalidVersion']='Please enter a valid version number!'
['error.reEnter']='Input error, please re-enter!'
['error.installDockerEngineFailed']='Docker Engine installation failed!'
['error.installPackageFailed']='Package {} installation failed, please install manually and rerun script!'
['error.defaultBehavior.https']='Using HTTPS protocol by default'
['error.defaultBehavior.noClose']='Not closing by default'
['error.defaultBehavior.installLatest']='Installing latest version by default'
['error.defaultBehavior.noOverwrite']='Not overwriting by default'
['error.defaultBehavior.noUseIntranetSource']='Not using intranet address by default'
['warn.usedIntranetSource']='Switched to intranet-only address, use only in specific environments!'
['warn.needValidNumberIndex']='Please enter a valid number index!'
['warn.needInputNumberIndex']='Please enter a number index!'
['warn.needManuallyDeleteConfig']='Please manually delete {} configuration in {} and restart service {}'
['tip.skipInstallDockerEngine']='Detected Docker Engine is already installed with latest version, skipping installation'
['info.backuped.dockerConfig']='Original Docker config file has been backed up'
['interaction.source.type.public']='Public'
['interaction.source.type.intranet']='Intranet'
['interaction.source.type.select']='Please select network address (access method) for Docker CE mirror:'
['interaction.source.type.usePublicAddress']='Use public network address for Docker CE mirror by default, continue'
['interaction.source.dockerCE.select']='Please select the Docker CE mirror you want to use:'
['interaction.source.dockerCE.selectAndInput']='Please select and enter the Docker CE mirror you want to use'
['interaction.source.dockerRegistry.select']='Please select the Docker Registry mirror you want to use:'
['interaction.source.dockerRegistry.selectAndInput']='Please select and enter the Docker Registry mirror you want to use'
['interaction.protocol.select']='Please select network protocol for Docker CE mirror:'
['interaction.protocol.useHttp']='Use HTTP protocol for Docker CE mirror'
['interaction.firewall.close']='Close system firewall and SELinux'
['interaction.install.selectVersion']='Please select the version you want to install:'
['interaction.install.selectedVersion']='Specified installation version:'
['interaction.install.selectedTitle']='Please select the version to install, e.g.: {}'
['interaction.install.inputVersion']='Based on the list above, please select and enter the specific version you want to install:'
['interaction.install.latestVersion']='Install latest version of Docker Engine'
['interaction.backup.skipOverwrite']='Detected existing backup of Docker config file, skip overwriting backup'
['interaction.common.tip']='Tip'
['interaction.common.operationCanceled']='Operation canceled'
['interaction.common.yes']='Yes'
['interaction.common.no']='No'
['work.installDependents']='Install environment packages'
['work.installDockerEngine']='Install Docker Engine'
['source.sync.text1']='Update APT package index'
['source.sync.text2']='Generate mirror cache'
['result.install.failed']='Installation failed'
['result.install.checkSourceFile']='Check source file:'
['result.install.manuallyExecCmd']='Please try manually executing installation command: {}'
['result.install.notRunning']='Detected Docker service startup error, try running this script again'
['result.install.manuallyRun']='Please execute {} command to try starting or investigate error cause'
['result.registry.success']='Registry mirror replaced successfully'
['result.registry.dockerEngineNotExsit']='Docker Engine is not installed yet, please remove {} command option and rerun script!'
['commands.help']='Command options(name/meaning/value):
--source Specify Docker CE mirror address (domain or IP) address
--source-registry Specify Docker Registry mirror address (domain or IP) address
--branch Specify Docker CE mirror repository (path) repo name
--branch-version Specify Docker CE mirror repository version version
--designated-version Specify Docker Engine installation version version
--codename Specify Debian-based OS codename codename
--protocol Specify Web protocol for Docker CE mirror http or https
--use-intranet-source Prefer intranet Docker CE mirror address true or false
--install-latest Whether to install the latest Docker Engine true or false
--close-firewall Whether to disable the firewall true or false
--clean-screen Whether to clear the screen before running true or false
--lang Specify the language of the script output language
--only-registry Only switch registry mirror mode none
--ignore-backup-tips Ignore backup overwrite prompt (do not backup) none
--pure-mode Pure mode, minimal output none
--help Show help menu none
Issue Report {}'
['mirrors.dockerCE.0']='Alibaba Cloud'
['mirrors.dockerCE.1']='Tencent Cloud'
['mirrors.dockerCE.2']='Huawei Cloud'
['mirrors.dockerCE.3']='China Mobile Cloud'
['mirrors.dockerCE.4']='NetEase'
['mirrors.dockerCE.5']='Volcengine'
['mirrors.dockerCE.6']='Microsoft Azure China'
['mirrors.dockerCE.7']='Tsinghua University'
['mirrors.dockerCE.8']='Peking University'
['mirrors.dockerCE.9']='Zhejiang University'
['mirrors.dockerCE.10']='Nanjing University'
['mirrors.dockerCE.11']='Shanghai Jiao Tong University'
['mirrors.dockerCE.12']='Chongqing University of Posts and Telecommunications'
['mirrors.dockerCE.13']='University of Science and Technology of China'
['mirrors.dockerCE.14']='Institute of Software, Chinese Academy of Sciences'
['mirrors.dockerCE.15']='Official Source'
['mirrors.registry.0']='Millisecond Mirror (recommended)'
['mirrors.registry.1']='Docker Proxy'
['mirrors.registry.2']='DaoCloud'
['mirrors.registry.3']='1Panel Mirror'
['mirrors.registry.4']='Alibaba Cloud (Hangzhou)'
['mirrors.registry.5']='Alibaba Cloud (Shanghai)'
['mirrors.registry.6']='Alibaba Cloud (Qingdao)'
['mirrors.registry.7']='Alibaba Cloud (Beijing)'
['mirrors.registry.8']='Alibaba Cloud (Zhangjiakou)'
['mirrors.registry.9']='Alibaba Cloud (Hohhot)'
['mirrors.registry.10']='Alibaba Cloud (Ulanqab)'
['mirrors.registry.11']='Alibaba Cloud (Shenzhen)'
['mirrors.registry.12']='Alibaba Cloud (Heyuan)'
['mirrors.registry.13']='Alibaba Cloud (Guangzhou)'
['mirrors.registry.14']='Alibaba Cloud (Chengdu)'
['mirrors.registry.15']='Alibaba Cloud (Hong Kong)'
['mirrors.registry.16']='Alibaba Cloud (Japan - Tokyo)'
['mirrors.registry.17']='Alibaba Cloud (Singapore)'
['mirrors.registry.18']='Alibaba Cloud (Malaysia - Kuala Lumpur)'
['mirrors.registry.19']='Alibaba Cloud (Indonesia - Jakarta)'
['mirrors.registry.20']='Alibaba Cloud (Germany - Frankfurt)'
['mirrors.registry.21']='Alibaba Cloud (UK - London)'
['mirrors.registry.22']='Alibaba Cloud (US West - Silicon Valley)'
['mirrors.registry.23']='Alibaba Cloud (US East - Virginia)'
['mirrors.registry.24']='Alibaba Cloud (UAE - Dubai)'
['mirrors.registry.25']='Tencent Cloud'
['mirrors.registry.26']='Google Cloud (North America)'
['mirrors.registry.27']='Google Cloud (Asia)'
['mirrors.registry.28']='Google Cloud (Europe)'
['mirrors.registry.29']='Official Docker Hub'
)

148
locales/docker/zh-hans.sh Normal file
View File

@@ -0,0 +1,148 @@
MESSAGE_CONTENTS=(
['start.welcome']='欢迎使用 Docker Engine 安装与换源脚本'
['start.runtimeEnv']='运行环境'
['start.dateTime']='系统时间'
['end.moreInfo']='脚本运行完毕,更多使用教程详见官网'
['end.sponsorAds']='【赞助商广告】'
['error.cmd.options.needConfirm']='请确认后重新输入'
['error.cmd.options.needSpecify']='请在该选项后指定{}'
['error.cmd.options.invalid']='命令选项 {} 无效,{}'
['error.cmd.options.validAddress']='有效的地址'
['error.cmd.options.sourceAddress']='软件源地址'
['error.cmd.options.registryAddress']='镜像仓库地址'
['error.cmd.options.sourceRepository']='软件源仓库'
['error.cmd.options.validVersion']='有效的版本号'
['error.cmd.options.ceRepositoryVersion']='Docker CE 软件源仓库的版本号'
['error.cmd.options.version']='版本号'
['error.cmd.options.codename']='版本代号'
['error.cmd.options.boolean']=' true 或 false '
['error.cmd.options.protocol']=' http 或 https '
['error.cmd.options.needProtocol']=' Web 协议(http/https)'
['error.cmd.options.validLangKey']='有效的语言 ID '
['error.cmd.options.langKey']='语言 '
['error.unsupportSystem1']='不支持当前操作系统({}'
['error.unsupportSystem2']='不支持当前操作系统({}),请参考如下命令自行安装:'
['error.unknownSystem']='未知系统'
['error.unsupportX86_32']='Docker Engine 不支持安装在 x86_32 架构的环境上!'
['error.unknownArch']='未知的系统架构:{}'
['error.unsupportS390x']='请查阅 RHEL 发行版声明以了解 s390x 支持'
['error.input']='输入错误,{}'
['error.needRoot']='权限不足,请使用 Root 用户运行本脚本'
['error.sync']='{}出错,请先解决系统原有软件源错误以确保 {} 软件包管理工具可用!'
['error.downloadGPG']='GPG 密钥下载失败,请检查网络或更换 Docker CE 软件源后重试!'
['error.queryVersionFailed']='查询 Docker Engine 版本列表失败!'
['error.designatedVersion']='指定的 Docker Engine 版本不存在或不支持安装!'
['error.invalidVersion']='请输入正确的版本号!'
['error.reEnter']='输入错误请重新输入!'
['error.installDockerEngineFailed']='安装 Docker Engine 失败!'
['error.installPackageFailed']='软件包 {} 安装失败,请自行安装后重新运行脚本!'
['error.defaultBehavior.https']='默认使用 HTTPS 协议'
['error.defaultBehavior.noClose']='默认不关闭'
['error.defaultBehavior.installLatest']='默认安装最新版本'
['error.defaultBehavior.noOverwrite']='默认不覆盖'
['error.defaultBehavior.noUseIntranetSource']='默认不使用内网地址'
['warn.usedIntranetSource']='已切换至内网专用地址,仅限在特定环境下使用!'
['warn.needValidNumberIndex']='请输入有效的数字序号!'
['warn.needInputNumberIndex']='请输入数字序号!'
['warn.needManuallyDeleteConfig']='请自行删除 {} 中的 {} 配置并重启服务 {}'
['tip.skipInstallDockerEngine']='检测到系统已安装 Docker Engine 且是最新版本,跳过安装'
['info.backuped.dockerConfig']='已备份原有 Docker 配置文件'
['interaction.source.type.public']='公网'
['interaction.source.type.intranet']='内网'
['interaction.source.type.select']='请选择 Docker CE 源的网络地址(访问方式)'
['interaction.source.type.usePublicAddress']='默认使用 Docker CE 源的公网地址,是否继续'
['interaction.source.dockerCE.select']='请选择你想使用的 Docker CE 源:'
['interaction.source.dockerCE.selectAndInput']='请选择并输入你想使用的 Docker CE 源'
['interaction.source.dockerRegistry.select']='请选择你想使用的 Docker Registry 源:'
['interaction.source.dockerRegistry.selectAndInput']='请选择并输入你想使用的 Docker Registry 源'
['interaction.protocol.select']='请选择 Docker CE 软件源的网络协议:'
['interaction.protocol.useHttp']='Docker CE 软件源是否使用 HTTP 协议'
['interaction.firewall.close']='是否关闭系统防火墙和 SELinux '
['interaction.install.selectVersion']='请选择你想安装的版本:'
['interaction.install.selectedVersion']='指定安装版本:'
['interaction.install.selectedTitle']='请选择你要安装的版本,如:{}'
['interaction.install.inputVersion']='请根据上面的列表,选择并输入你想要安装的具体版本号:'
['interaction.install.latestVersion']='Docker Engine 是否安装最新版本'
['interaction.backup.skipOverwrite']='检测到已备份的 Docker 配置文件,是否跳过覆盖备份'
['interaction.common.tip']='提示'
['interaction.common.operationCanceled']='操作已取消'
['interaction.common.yes']='是'
['interaction.common.no']='否'
['work.installDependents']='安装环境软件包'
['work.installDockerEngine']='安装 Docker Engine'
['source.sync.text1']='更新软件源'
['source.sync.text2']='生成软件源缓存'
['result.install.failed']='安装失败'
['result.install.checkSourceFile']='检查源文件:'
['result.install.manuallyExecCmd']='请尝试手动执行安装命令:{}'
['result.install.notRunning']='检测到 Docker 服务启动异常,可尝试再次执行本脚本重试'
['result.install.manuallyRun']='请执行 {} 命令尝试启动或自行查询错误原因'
['result.registry.success']='已更换镜像仓库'
['result.registry.dockerEngineNotExsit']='当前尚未安装 Docker Engine请取消设置 {} 命令选项后重新执行脚本!'
['commands.help']='命令选项(名称/含义/值)
--source 指定 Docker CE 软件源地址(域名或IP) 地址
--source-registry 指定 Docker 镜像仓库地址(域名或IP) 地址
--branch 指定 Docker CE 软件源仓库(路径) 仓库名
--branch-version 指定 Docker CE 软件源仓库版本 版本号
--designated-version 指定 Docker Engine 安装版本 版本号
--codename 指定 Debian 系操作系统的版本代号 代号名称
--protocol 指定 Docker CE 软件源的 Web 协议 http 或 https
--use-intranet-source 是否优先使用内网 Docker CE 软件源地址 true 或 false
--install-latest 是否安装最新版本的 Docker Engine true 或 false
--close-firewall 是否关闭防火墙 true 或 false
--clean-screen 是否在运行前清除屏幕上的所有内容 true 或 false
--lang 指定脚本使用的语言 ID 语言
--only-registry 仅更换镜像仓库模式 无
--ignore-backup-tips 忽略覆盖备份提示 无
--pure-mode 纯净模式,精简打印内容 无
--help 查看帮助菜单 无
问题报告 {}'
['mirrors.dockerCE.0']='阿里云'
['mirrors.dockerCE.1']='腾讯云'
['mirrors.dockerCE.2']='华为云'
['mirrors.dockerCE.3']='移动云'
['mirrors.dockerCE.4']='网易'
['mirrors.dockerCE.5']='火山引擎'
['mirrors.dockerCE.6']='微软 Azure 中国'
['mirrors.dockerCE.7']='清华大学'
['mirrors.dockerCE.8']='北京大学'
['mirrors.dockerCE.9']='浙江大学'
['mirrors.dockerCE.10']='南京大学'
['mirrors.dockerCE.11']='上海交通大学'
['mirrors.dockerCE.12']='重庆邮电大学'
['mirrors.dockerCE.13']='中国科学技术大学'
['mirrors.dockerCE.14']='中国科学院软件研究所'
['mirrors.dockerCE.15']='官方源'
['mirrors.registry.0']='毫秒镜像(推荐)'
['mirrors.registry.1']='Docker Proxy'
['mirrors.registry.2']='DaoCloud 道客'
['mirrors.registry.3']='1Panel 镜像'
['mirrors.registry.4']='阿里云(杭州)'
['mirrors.registry.5']='阿里云(上海)'
['mirrors.registry.6']='阿里云(青岛)'
['mirrors.registry.7']='阿里云(北京)'
['mirrors.registry.8']='阿里云(张家口)'
['mirrors.registry.9']='阿里云(呼和浩特)'
['mirrors.registry.10']='阿里云(乌兰察布)'
['mirrors.registry.11']='阿里云(深圳)'
['mirrors.registry.12']='阿里云(河源)'
['mirrors.registry.13']='阿里云(广州)'
['mirrors.registry.14']='阿里云(成都)'
['mirrors.registry.15']='阿里云(香港)'
['mirrors.registry.16']='阿里云(日本-东京)'
['mirrors.registry.17']='阿里云(新加坡)'
['mirrors.registry.18']='阿里云(马来西亚-吉隆坡)'
['mirrors.registry.19']='阿里云(印度尼西亚-雅加达)'
['mirrors.registry.20']='阿里云(德国-法兰克福)'
['mirrors.registry.21']='阿里云(英国-伦敦)'
['mirrors.registry.22']='阿里云(美国西部-硅谷)'
['mirrors.registry.23']='阿里云(美国东部-弗吉尼亚)'
['mirrors.registry.24']='阿里云(阿联酋-迪拜)'
['mirrors.registry.25']='腾讯云'
['mirrors.registry.26']='谷歌云(北美)'
['mirrors.registry.27']='谷歌云(亚洲)'
['mirrors.registry.28']='谷歌云(欧洲)'
['mirrors.registry.29']='官方 Docker Hub'
)

148
locales/docker/zh-hant.sh Normal file
View File

@@ -0,0 +1,148 @@
MESSAGE_CONTENTS=(
['start.welcome']='歡迎使用 Docker Engine 安裝與換源腳本'
['start.runtimeEnv']='執行環境'
['start.dateTime']='系統時間'
['end.moreInfo']='腳本執行完畢,更多使用教學詳見官網'
['end.sponsorAds']='【贊助商廣告】'
['error.cmd.options.needConfirm']='請確認後重新輸入'
['error.cmd.options.needSpecify']='請在該選項後指定{}'
['error.cmd.options.invalid']='命令選項 {} 無效,{}'
['error.cmd.options.validAddress']='有效的位址'
['error.cmd.options.sourceAddress']='軟體源位址'
['error.cmd.options.registryAddress']='映象倉庫位址'
['error.cmd.options.sourceRepository']='軟體源倉庫'
['error.cmd.options.validVersion']='有效的版本號'
['error.cmd.options.ceRepositoryVersion']='Docker CE 軟體源倉庫的版本號'
['error.cmd.options.version']='版本號'
['error.cmd.options.codename']='版本代號'
['error.cmd.options.boolean']=' true 或 false '
['error.cmd.options.protocol']=' http 或 https '
['error.cmd.options.needProtocol']=' Web 協定(http/https)'
['error.cmd.options.validLangKey']='有效的語言 ID '
['error.cmd.options.langKey']='語言 ID '
['error.unsupportSystem1']='不支援當前作業系統({}'
['error.unsupportSystem2']='不支援當前作業系統({}),請參考如下命令自行安裝:\n\n{}'
['error.unknownSystem']='未知系統'
['error.unsupportX86_32']='Docker Engine 不支援安裝在 x86_32 架構的環境上!'
['error.unknownArch']='未知的系統架構:{}'
['error.unsupportS390x']='請查閱 RHEL 發行版宣告以瞭解 s390x 支援'
['error.input']='輸入錯誤,{}'
['error.needRoot']='權限不足,請使用 Root 使用者執行本腳本'
['error.sync']='{}出錯,請先解決系統原有軟體源錯誤以確保 {} 軟體包管理工具可用!'
['error.downloadGPG']='GPG 金鑰下載失敗,請檢查網路或更換 Docker CE 軟體源後重試!'
['error.queryVersionFailed']='查詢 Docker Engine 版本清單失敗!'
['error.designatedVersion']='指定的 Docker Engine 版本不存在或不支援安裝!'
['error.invalidVersion']='請輸入正確的版本號!'
['error.reEnter']='輸入錯誤請重新輸入!'
['error.installDockerEngineFailed']='安裝 Docker Engine 失敗!'
['error.installPackageFailed']='軟體包 {} 安裝失敗,請自行安裝後重新執行腳本!'
['error.defaultBehavior.https']='預設使用 HTTPS 協定'
['error.defaultBehavior.noClose']='預設不關閉'
['error.defaultBehavior.installLatest']='預設安裝最新版本'
['error.defaultBehavior.noOverwrite']='預設不覆寫'
['error.defaultBehavior.noUseIntranetSource']='預設不使用內網位址'
['warn.usedIntranetSource']='已切換至內網專用位址,僅限在特定環境下使用!'
['warn.needValidNumberIndex']='請輸入有效的數字序號!'
['warn.needInputNumberIndex']='請輸入數字序號!'
['warn.needManuallyDeleteConfig']='請自行刪除 {} 中的 {} 設定並重新啟動服務 {}'
['tip.skipInstallDockerEngine']='偵測到系統已安裝 Docker Engine 且是最新版本,跳過安裝'
['info.backuped.dockerConfig']='已備份原有 Docker 設定檔'
['interaction.source.type.public']='公網'
['interaction.source.type.intranet']='內網'
['interaction.source.type.select']='請選擇 Docker CE 源的網路位址(存取方式)'
['interaction.source.type.usePublicAddress']='預設使用 Docker CE 源的公網位址,是否繼續'
['interaction.source.dockerCE.select']='請選擇你想使用的 Docker CE 源:'
['interaction.source.dockerCE.selectAndInput']='請選擇並輸入你想使用的 Docker CE 源'
['interaction.source.dockerRegistry.select']='請選擇你想使用的 Docker Registry 源:'
['interaction.source.dockerRegistry.selectAndInput']='請選擇並輸入你想使用的 Docker Registry 源'
['interaction.protocol.select']='請選擇 Docker CE 軟體源的網路協定:'
['interaction.protocol.useHttp']='Docker CE 軟體源是否使用 HTTP 協定'
['interaction.firewall.close']='是否關閉系統防火牆和 SELinux '
['interaction.install.selectVersion']='請選擇你想安裝的版本:'
['interaction.install.selectedVersion']='指定安裝版本:'
['interaction.install.selectedTitle']='請選擇你要安裝的版本,如:{}'
['interaction.install.inputVersion']='請根據上面的清單,選擇並輸入你想要安裝的具體版本號:'
['interaction.install.latestVersion']='Docker Engine 是否安裝最新版本'
['interaction.backup.skipOverwrite']='偵測到已備份的 Docker 設定檔,是否跳過覆寫備份'
['interaction.common.tip']='提示'
['interaction.common.operationCanceled']='操作已取消'
['interaction.common.yes']='是'
['interaction.common.no']='否'
['work.installDependents']='安裝環境軟體包'
['work.installDockerEngine']='安裝 Docker Engine'
['source.sync.text1']='更新軟體源'
['source.sync.text2']='產生軟體源快取'
['result.install.failed']='安裝失敗'
['result.install.checkSourceFile']='檢查源檔案:'
['result.install.manuallyExecCmd']='請嘗試手動執行安裝命令:{}'
['result.install.notRunning']='偵測到 Docker 服務啟動異常,可嘗試再次執行本腳本重試'
['result.install.manuallyRun']='請執行 {} 命令嘗試啟動或自行查詢錯誤原因'
['result.registry.success']='已更換映象倉庫'
['result.registry.dockerEngineNotExsit']='目前尚未安裝 Docker Engine請取消設定 {} 命令選項後重新執行腳本!'
['commands.help']='命令選項(名稱/含義/值)
--source 指定 Docker CE 軟體源位址(網域名稱或IP) 位址
--source-registry 指定 Docker 映像倉庫位址 (網域名稱或IP) 位址
--branch 指定 Docker CE 軟體源倉庫 (路徑) 倉庫名稱
--branch-version 指定 Docker CE 軟體源倉庫版本 版本號
--designated-version 指定 Docker Engine 安裝版本 版本號
--codename 指定 Debian 係作業系統的版本代號 代號名稱
--protocol 指定 Docker CE 源的 Web 協定 http 或 https
--use-intranet-source 是否優先使用內部網路 Docker CE 軟體源位址 true 或 false
--install-latest 是否安裝最新版本的 Docker Engine true 或 false
--close-firewall 是否關閉防火牆 true 或 false
--clean-screen 是否在運行前清除螢幕上的所有內容 true 或 false
--lang 指定腳本輸出的語言 语言
--only-registry 僅更換映像倉庫模式 無
--ignore-backup-tips 忽略覆蓋備份提示 無
--pure-mode 純淨模式,精簡列印內容 無
--help 查看幫助選單 無
問題報告 {}'
['mirrors.dockerCE.0']='阿里雲'
['mirrors.dockerCE.1']='騰訊雲'
['mirrors.dockerCE.2']='華為雲'
['mirrors.dockerCE.3']='移動雲'
['mirrors.dockerCE.4']='網易'
['mirrors.dockerCE.5']='火山引擎'
['mirrors.dockerCE.6']='微軟 Azure 中國'
['mirrors.dockerCE.7']='清華大學'
['mirrors.dockerCE.8']='北京大學'
['mirrors.dockerCE.9']='浙江大學'
['mirrors.dockerCE.10']='南京大學'
['mirrors.dockerCE.11']='上海交通大學'
['mirrors.dockerCE.12']='重慶郵電大學'
['mirrors.dockerCE.13']='中國科學技術大學'
['mirrors.dockerCE.14']='中國科學院軟體研究所'
['mirrors.dockerCE.15']='官方源'
['mirrors.registry.0']='毫秒鏡像(推薦)'
['mirrors.registry.1']='Docker Proxy'
['mirrors.registry.2']='DaoCloud 道客'
['mirrors.registry.3']='1Panel 鏡像'
['mirrors.registry.4']='阿里雲(杭州)'
['mirrors.registry.5']='阿里雲(上海)'
['mirrors.registry.6']='阿里雲(青島)'
['mirrors.registry.7']='阿里雲(北京)'
['mirrors.registry.8']='阿里雲(張家口)'
['mirrors.registry.9']='阿里雲(呼和浩特)'
['mirrors.registry.10']='阿里雲(烏蘭察布)'
['mirrors.registry.11']='阿里雲(深圳)'
['mirrors.registry.12']='阿里雲(河源)'
['mirrors.registry.13']='阿里雲(廣州)'
['mirrors.registry.14']='阿里雲(成都)'
['mirrors.registry.15']='阿里雲(香港)'
['mirrors.registry.16']='阿里雲(日本-東京)'
['mirrors.registry.17']='阿里雲(新加坡)'
['mirrors.registry.18']='阿里雲(馬來西亞-吉隆坡)'
['mirrors.registry.19']='阿里雲(印度尼西亞-雅加達)'
['mirrors.registry.20']='阿里雲(德國-法蘭克福)'
['mirrors.registry.21']='阿里雲(英國-倫敦)'
['mirrors.registry.22']='阿里雲(美國西部-矽谷)'
['mirrors.registry.23']='阿里雲(美國東部-弗吉尼亞)'
['mirrors.registry.24']='阿里雲(阿聯酋-迪拜)'
['mirrors.registry.25']='騰訊雲'
['mirrors.registry.26']='谷歌雲(北美)'
['mirrors.registry.27']='谷歌雲(亞洲)'
['mirrors.registry.28']='谷歌雲(歐洲)'
['mirrors.registry.29']='官方 Docker Hub'
)

228
locales/linux/en.sh Normal file
View File

@@ -0,0 +1,228 @@
MESSAGE_CONTENTS=(
['start.welcome']=' GNU/Linux mirror switching script'
['start.runtimeEnv']='Runtime Env'
['start.dateTime']='System Time'
['end.moreInfo']='Script execution completed, visit our website for more tutorials'
['end.sponsorAds']='[Sponsor Ads]'
['error.cmd.options.needConfirm']='Please confirm and re-enter'
['error.cmd.options.needSpecify']='Please specify {} after this option'
['error.cmd.options.invalid']='Command option {} is invalid, {}!'
['error.cmd.options.validAddress']='a valid address'
['error.cmd.options.sourceAddress']='mirror address'
['error.cmd.options.sourceRepository']='mirror repository'
['error.cmd.options.codename']='version codename'
['error.cmd.options.boolean']=' true or false '
['error.cmd.options.protocol']=' http or https '
['error.cmd.options.needProtocol']=' Web protocol(http/https)'
['error.cmd.options.validLangKey']='A valid language ID '
['error.cmd.options.langKey']='language ID '
['error.cmd.options.unsupportTwoSourceMode']='Two mirror modes cannot be used at the same time. Please retry!'
['error.cmd.options.unsupportCodename']='The current system does not support specifying a codename. Please retry!'
['error.cmd.options.unsupportEPEL']='The current system cannot install the EPEL add-on package. Please retry!'
['error.unsupportSystem']='The operating system ({}) is not supported. Check the supported list on the website!'
['error.unsupportVersion']='The current system version is not supported'
['error.unknownSystem']='Unknown system'
['error.unknownVersion']='System version unknown'
['error.input']='Input error, {}!'
['error.needRoot']='Insufficient permissions, please run this script as Root user'
['error.defaultBehavior.https']='HTTPS is used by default'
['error.defaultBehavior.noReplace']='No replacement by default'
['error.defaultBehavior.noOverwrite']='No overwrite by default'
['error.defaultBehavior.noUpdate']='No update by default'
['error.defaultBehavior.noClean']='No cleanup by default'
['error.defaultBehavior.noUseIntranetSource']='Intranet mirrors are disabled by default'
['warn.usedIntranetSource']='Switched to an intranet-only mirror. Use only in the intended environment!'
['warn.unstableDebian']='Detected system version {} which may cause unpredictable issues.'
['warn.EPEL7']='Extra Packages for Enterprise Linux 7 reached end-of-life and was moved to the archive!'
['warn.needValidNumberIndex']='Please enter a valid number index!'
['warn.needInputNumberIndex']='Please enter a number index!'
['info.backuped.sourceFile']='Backed up existing {} source file'
['tip.EPEL7']="Some mirrors don't sync that archive. If errors occur, verify the target mirror provides it."
['interaction.source.type.public']='Public'
['interaction.source.type.intranet']='Intranet'
['interaction.source.type.select']='Please select network address (access method) for mirror:'
['interaction.source.type.usePublicAddress']='Use public network address for mirror by default, continue'
['interaction.source.select']='Please select the mirror you want to use:'
['interaction.source.selectAndInput']='Please select and enter the mirror you want to use'
['interaction.protocol.select']='Please select network protocol for mirror:'
['interaction.protocol.useHttp']='Use HTTP protocol for mirror'
['interaction.epel.skipReplace']='EPEL already installed. Replace/overwrite mirror'
['interaction.epel.install']='Install EPEL add-on package'
['interaction.backup.skipOverwrite.sourceFile']='A backup of {} already exists. Skip overwriting'
['interaction.upgrade.skip']='Skip upgrading packages'
['interaction.cache.autoClean']='Clean download cache after upgrading packages'
['interaction.common.tip']='Tip'
['interaction.common.operationCanceled']='Operation canceled'
['interaction.common.yes']='Yes'
['interaction.common.no']='No'
['work.upgradeSoftware']='Upgrading packages'
['work.installEPELPackage']='Installing epel-release package...'
['source.sync.text1']='Update APT package index'
['source.sync.text2']='Generate mirror cache'
['source.sync.text3']='Refreshing mirrors'
['source.sync.text4']='Synchronizing mirrors'
['source.sync.text5']='Updating binary cache and channels'
['source.comment.disabledSourceCode']='Source code mirrors are disabled by default for speed. Uncomment to enable'
['source.comment.securitySource']='Security updates'
['source.comment.proposedSource']='Proposed repository (not recommended)'
['source.changeResult.success']='Mirror switching complete'
['source.changeResult.fail']='Mirror switching complete, but {} failed'
['source.changeResult.tipTitle']='Run the script again with the same mirror. If {} still fails, consider:'
['source.changeResult.tip1']='Connectivity issues: unstable network, blocked access, or mirror-side firewall rules'
['source.changeResult.tip2']='Mirror issues: test the mirror manually at {}'
['source.changeResult.tip2.1']='If a file is missing, the mirror might still be syncing'
['source.changeResult.tip2.2']='If a path is missing, the mirror may not provide this system repository'
['source.changeResult.tip2.3']='Try another mirror. Syncing mirrors may temporarily serve broken content'
['source.changeResult.tip3']='Original mirrors failing: fix unrelated mirror errors and rerun the script'
['commands.help']='Command options(name/meaning/value):
--abroad Use overseas mirrors none
--edu Use China education network mirrors none
--source Specify mirror address (domain or IP) address
--source-epel Specify EPEL repository address (domain or IP) address
--source-security Specify Debian/Ubuntu security repo address (domain or IP) address
--source-vault Specify CentOS/AlmaLinux vault repo address (domain or IP) address
--source-portage Specify Gentoo portage repo address (domain or IP) address
--source-base-system Specify Linux Mint/Raspberry Pi OS base system repo address (domain or IP) address
--branch Specify mirror repository (repo name) repo name
--branch-epel Specify EPEL repository (path) repo name
--branch-security Specify Debian security repo (path) repo name
--branch-vault Specify CentOS/AlmaLinux vault repo (path) repo name
--branch-portage Specify Gentoo portage repo (path) repo name
--branch-base-system Specify Linux Mint/Raspberry Pi OS base system repo (path) repo name
--codename Specify Debian/openKylin codename codename
--protocol Specify web protocol http or https
--use-intranet-source Prefer intranet mirror address true or false
--use-official-source Use official mirror of target OS true or false
--use-official-source-epel Use official EPEL repo true or false
--install-epel Install EPEL repository true or false
--backup Backup original mirrors true or false
--upgrade-software Upgrade packages true or false
--clean-cache Clean cache after upgrade true or false
--clean-screen Clear screen before running true or false
--lang Specify the language of the script output language
--only-epel Only switch EPEL repo none
--ignore-backup-tips Ignore backup overwrite prompt none
--print-diff Print diff before and after modification none
--pure-mode Pure mode, minimal output none
--help Show help menu none
Issue Report {}'
['mirrors.default.0']='Alibaba Cloud'
['mirrors.default.1']='Tencent Cloud'
['mirrors.default.2']='Huawei Cloud'
['mirrors.default.3']='China Mobile Cloud'
['mirrors.default.4']='China Telecom Cloud'
['mirrors.default.5']='NetEase'
['mirrors.default.6']='Volcengine'
['mirrors.default.7']='Tsinghua University'
['mirrors.default.8']='Peking University'
['mirrors.default.9']='Zhejiang University'
['mirrors.default.10']='Nanjing University'
['mirrors.default.11']='Lanzhou University'
['mirrors.default.12']='Shanghai Jiao Tong University'
['mirrors.default.13']='Chongqing University of Posts and Telecommunications'
['mirrors.default.14']='University of Science and Technology of China'
['mirrors.default.15']='Institute of Software, Chinese Academy of Sciences'
['mirrors.default.16']='Official Source'
['mirrors.edu.0']='Peking University'
['mirrors.edu.1']='Beijing Jiaotong University'
['mirrors.edu.2']='Beijing Foreign Studies University'
['mirrors.edu.3']='Beijing University of Posts and Telecommunications'
['mirrors.edu.4']='Chongqing University'
['mirrors.edu.5']='Chongqing University of Posts and Telecommunications'
['mirrors.edu.6']='Dalian Neusoft University of Information'
['mirrors.edu.7']='University of Electronic Science and Technology of China'
['mirrors.edu.8']='South China Agricultural University'
['mirrors.edu.9']='Huazhong University of Science and Technology'
['mirrors.edu.10']='Jilin University'
['mirrors.edu.11']='Jingchu University of Technology'
['mirrors.edu.12']='Jiangxi University of Science and Technology'
['mirrors.edu.13']='Lanzhou University'
['mirrors.edu.14']='Nanjing University'
['mirrors.edu.15']='Nanjing Tech University'
['mirrors.edu.16']='Nanjing University of Posts and Telecommunications'
['mirrors.edu.17']='Southern University of Science and Technology'
['mirrors.edu.18']='Nanyang Institute of Technology'
['mirrors.edu.19']='Qilu University of Technology'
['mirrors.edu.20']='Tsinghua University'
['mirrors.edu.21']='Shandong University'
['mirrors.edu.22']='ShanghaiTech University'
['mirrors.edu.23']='Shanghai Jiao Tong University (Siyuan)'
['mirrors.edu.24']='Shanghai Jiao Tong University (Zhiyuan)'
['mirrors.edu.25']='Wuchang Shouyi University'
['mirrors.edu.26']="Xi'an Jiaotong University"
['mirrors.edu.27']='Northwest A&F University'
['mirrors.edu.28']='Zhejiang University'
['mirrors.edu.29']='University of Science and Technology of China'
['mirrors.edu.30']='Official Source'
['mirrors.abroad.0']='AS · xTom · Hong Kong'
['mirrors.abroad.1']='AS · 01Link · Hong Kong'
['mirrors.abroad.2']='AS · National University of Singapore (NUS) · Singapore'
['mirrors.abroad.3']='AS · SG.GS · Singapore'
['mirrors.abroad.4']='AS · xTom · Singapore'
['mirrors.abroad.5']='AS · NCHC Free Software Lab · Taiwan'
['mirrors.abroad.6']='AS · OSS Planet · Taiwan'
['mirrors.abroad.7']='AS · National Yang Ming Chiao Tung University · Taiwan'
['mirrors.abroad.8']='AS · Tamkang University · Taiwan'
['mirrors.abroad.9']='AS · Taiwan Digital Streaming · Taiwan'
['mirrors.abroad.10']='AS · AniGil Linux Archive · Korea'
['mirrors.abroad.11']='AS · ICSCoE (Industrial Cyber Security Center of Excellence) · Japan'
['mirrors.abroad.12']='AS · JAIST (Japan Advanced Institute of Science and Technology) · Japan'
['mirrors.abroad.13']='AS · Yamagata University · Japan'
['mirrors.abroad.14']='AS · xTom · Japan'
['mirrors.abroad.15']='AS · GB Network Solutions · Malaysia'
['mirrors.abroad.16']='AS · Khon Kaen University · Thailand'
['mirrors.abroad.17']='EU · Vorboss Ltd · United Kiongdom'
['mirrors.abroad.18']='EU · QuickHost · United Kiongdom'
['mirrors.abroad.19']='EU · dogado · Germany'
['mirrors.abroad.20']='EU · xTom · Germany'
['mirrors.abroad.21']='EU · RWTH Aachen University · Germany'
['mirrors.abroad.22']='EU · Dresden University (AG DSN) · Germany'
['mirrors.abroad.23']='EU · CCIN2P3 · France'
['mirrors.abroad.24']='EU · Ircam · France'
['mirrors.abroad.25']='EU · Crans · France'
['mirrors.abroad.26']='EU · CRIHAN · France'
['mirrors.abroad.27']='EU · xTom · Netherlands'
['mirrors.abroad.28']='EU · DataPacket · Netherlands'
['mirrors.abroad.29']='EU · Linux Kernel · Netherlands'
['mirrors.abroad.30']='EU · xTom · Estonia'
['mirrors.abroad.31']='EU · netsite · Denmark'
['mirrors.abroad.32']='EU · Dotsrc · Denmark'
['mirrors.abroad.33']='EU · Academic Computer Club · Sweden'
['mirrors.abroad.34']='EU · Lysator · Sweden'
['mirrors.abroad.35']='EU · Yandex · Russia'
['mirrors.abroad.36']='EU · ia64 · Russia'
['mirrors.abroad.37']='EU · Truenetwork · Russia'
['mirrors.abroad.38']='EU · Belgian Research Network · Belgium'
['mirrors.abroad.39']='EU · University of Crete Computer Center · Greece'
['mirrors.abroad.40']='EU · Masaryk University Faculty of Informatics · Czech'
['mirrors.abroad.41']='EU · Czech Technical University Student Club (Silicon Hill) · Czech'
['mirrors.abroad.42']='EU · Vodafone · Czech'
['mirrors.abroad.43']='EU · CZ.NIC · Czech'
['mirrors.abroad.44']='EU · ETH Zurich · Switzerland'
['mirrors.abroad.45']='NA · Linux Kernel · United States'
['mirrors.abroad.46']='NA · MIT · United States'
['mirrors.abroad.47']='NA · Princeton University Department of Mathematics · United States'
['mirrors.abroad.48']='NA · Oregon State University Open Source Lab · United States'
['mirrors.abroad.49']='NA · Fremont Cabal Internet Exchange(FCIX) · United States'
['mirrors.abroad.50']='NA · xTom · United States'
['mirrors.abroad.51']='NA · Steadfast · United States'
['mirrors.abroad.52']='NA · University of British Columbia · Canada'
['mirrors.abroad.53']='NA · GoCodeIT · Canada'
['mirrors.abroad.54']='NA · Switch · Canada'
['mirrors.abroad.55']='SA · PoP-SC · Brazil'
['mirrors.abroad.56']='SA · State University of Ponta Grossa · Brazil'
['mirrors.abroad.57']='SA · UFSCar · Brazil'
['mirrors.abroad.58']='SA · Sysarmy Community · Argentina'
['mirrors.abroad.59']='OC · Fremont Cabal Internet Exchange(FCIX) · Australia'
['mirrors.abroad.60']='OC · AARNet · Australia'
['mirrors.abroad.61']='OC · DataMossa · Australia'
['mirrors.abroad.62']='OC · Amaze · Australia'
['mirrors.abroad.63']='OC · xTom · Australia'
['mirrors.abroad.64']='OC · Over the Wire · Australia'
['mirrors.abroad.65']='OC · Free Software Mirror Group · New Zealand'
['mirrors.abroad.66']='AF · Liquid Telecom · Kenya'
['mirrors.abroad.67']='AF · Dimension Data · South Africa'
['mirrors.abroad.68']='Official Source'
)

228
locales/linux/zh-hans.sh Normal file
View File

@@ -0,0 +1,228 @@
MESSAGE_CONTENTS=(
['start.welcome']='欢迎使用 GNU/Linux 更换系统软件源脚本'
['start.runtimeEnv']='运行环境'
['start.dateTime']='系统时间'
['end.moreInfo']='脚本运行完毕,更多使用教程详见官网'
['end.sponsorAds']='【赞助商广告】'
['error.cmd.options.needConfirm']='请确认后重新输入'
['error.cmd.options.needSpecify']='请在该选项后指定{}'
['error.cmd.options.invalid']='命令选项 {} 无效,{}'
['error.cmd.options.validAddress']='有效的地址'
['error.cmd.options.sourceAddress']='软件源地址'
['error.cmd.options.sourceRepository']='软件源仓库'
['error.cmd.options.codename']='版本代号'
['error.cmd.options.boolean']=' true 或 false '
['error.cmd.options.protocol']=' http 或 https '
['error.cmd.options.needProtocol']=' Web 协议(http/https)'
['error.cmd.options.validLangKey']='有效的语言 ID '
['error.cmd.options.langKey']='语言 '
['error.cmd.options.unsupportTwoSourceMode']='不可同时使用两种软件源模式,请确认后重试!'
['error.cmd.options.unsupportCodename']='当前系统不支持使用指定版本代号命令选项,请确认后重试!'
['error.cmd.options.unsupportEPEL']='当前系统不支持安装 EPEL 附加软件包,请确认后重试!'
['error.unsupportSystem']='不支持当前操作系统({}),请前往官网查看支持列表!'
['error.unsupportVersion']='不支持当前系统版本'
['error.unknownSystem']='未知系统'
['error.unknownVersion']='系统版本未知'
['error.input']='输入错误,{}'
['error.needRoot']='权限不足,请使用 Root 用户运行本脚本'
['error.defaultBehavior.https']='默认使用 HTTPS 协议'
['error.defaultBehavior.noReplace']='默认不更换'
['error.defaultBehavior.noOverwrite']='默认不覆盖'
['error.defaultBehavior.noUpdate']='默认不更新'
['error.defaultBehavior.noClean']='默认不清理'
['error.defaultBehavior.noUseIntranetSource']='默认不使用内网地址'
['warn.usedIntranetSource']='已切换至内网专用地址,仅限在特定环境下使用!'
['warn.unstableDebian']='检测到当前系统为 {} 版本,可能会产生一些无法预料的问题。'
['warn.EPEL7']='Extra Packages for Enterprise Linux 7 已结束生命周期并被官方移至归档库!'
['warn.needValidNumberIndex']='请输入有效的数字序号!'
['warn.needInputNumberIndex']='请输入数字序号!'
['info.backuped.sourceFile']='已备份原有 {} 源文件'
['tip.EPEL7']='目前部分镜像站没有同步该归档仓库,若换源后出现错误那么请先检查目标镜像站是否支持该仓库。'
['interaction.source.type.public']='公网'
['interaction.source.type.intranet']='内网'
['interaction.source.type.select']='请选择软件源的网络地址(访问方式)'
['interaction.source.type.usePublicAddress']='默认使用软件源的公网地址,是否继续'
['interaction.source.select']='请选择你想使用的软件源:'
['interaction.source.selectAndInput']='请选择并输入你想使用的软件源'
['interaction.protocol.select']='请选择软件源网络协议:'
['interaction.protocol.useHttp']='软件源是否使用 HTTP 协议'
['interaction.epel.skipReplace']='检测到系统已安装 EPEL 附加软件包,是否替换/覆盖软件源'
['interaction.epel.install']='是否安装 EPEL 附加软件包'
['interaction.backup.skipOverwrite.sourceFile']='检测到系统存在已备份的 {} 源文件,是否跳过覆盖备份'
['interaction.upgrade.skip']='是否跳过更新软件包'
['interaction.cache.autoClean']='在更新软件包后,是否自动清理下载缓存'
['interaction.common.tip']='提示'
['interaction.common.operationCanceled']='操作已取消'
['interaction.common.yes']='是'
['interaction.common.no']='否'
['work.upgradeSoftware']='更新软件包'
['work.installEPELPackage']='安装 epel-release 软件包...'
['source.sync.text1']='更新软件源'
['source.sync.text2']='生成软件源缓存'
['source.sync.text3']='刷新软件源'
['source.sync.text4']='同步软件源'
['source.sync.text5']='更新二进制缓存与频道源'
['source.comment.disabledSourceCode']='默认禁用源码镜像以提高更新速度,如需启用请自行取消注释'
['source.comment.securitySource']='安全更新软件源'
['source.comment.proposedSource']='预发布软件源(不建议启用)'
['source.changeResult.success']='软件源更换完毕'
['source.changeResult.fail']='软件源更换完毕,但{}失败'
['source.changeResult.tipTitle']='请再次执行脚本并更换相同软件源后进行尝试,若仍然{}失败那么可能由以下原因导致:'
['source.changeResult.tip1']='网络连通性问题:例如连接异常、由地区影响的网络间歇式中断、禁止外部访问、软件源网站防火墙阻断等'
['source.changeResult.tip2']='目标软件源异常:请手动前往软件源(镜像站)地址进行验证:{}'
['source.changeResult.tip2.1']='若报错内容是提示某个文件不存在那么有可能是软件源的问题,多常见于正在同步中的软件源仓库'
['source.changeResult.tip2.2']='若报错内容是目录path不存在也有可能是目标软件源不存在当前系统镜像仓库即不支持当前系统'
['source.changeResult.tip2.3']='建议更换其它镜像站进行尝试,少数情况下软件源若处于同步中状态则可能会出现文件同步错误问题'
['source.changeResult.tip3']='原有软件源报错:请先排除系统原有的其它软件源报错,因为脚本不会干预这些无关的软件源配置,解决后重新运行脚本即可'
['commands.help']='命令选项(名称/含义/值)
--abroad 使用境外以及海外软件源 无
--edu 使用中国大陆教育网软件源 无
--source 指定软件源地址(域名或IP) 地址
--source-epel 指定 EPEL 附加软件包仓库的软件源地址(域名或IP) 地址
--source-security 指定 Debian / Ubuntu 系统 security 仓库的软件源地址(域名或IP) 地址
--source-vault 指定 CentOS / AlmaLinux 系统 vault 仓库的软件源地址(域名或IP) 地址
--source-portage 指定 Gentoo 系统 portage 仓库的软件源地址(域名或IP) 地址
--source-base-system 指定 Linux Mint / Raspberry Pi OS 底层系统的软件源地址(域名或IP) 地址
--branch 指定软件源仓库(路径) 仓库名
--branch-epel 指定 EPEL 附加软件包仓库的软件源仓库(路径) 仓库名
--branch-security 指定 Debian 系统 security 仓库的软件源仓库(路径) 仓库名
--branch-vault 指定 CentOS / AlmaLinux 系统 vault 仓库的软件源仓库(路径) 仓库名
--branch-portage 指定 Gentoo 系统 portage 仓库的软件源仓库(路径) 仓库名
--branch-base-system 指定 Linux Mint / Raspberry Pi OS 底层系统的软件源仓库(路径) 仓库名
--codename 指定 Debian 系 / openKylin 操作系统的版本代号 代号名称
--protocol 指定 Web 协议 http 或 https
--use-intranet-source 是否优先使用内网软件源地址 true 或 false
--use-official-source 是否使用目标操作系统的官方软件源 true 或 false
--use-official-source-epel 是否使用 EPEL 附加软件包的官方软件源 true 或 false
--install-epel 是否安装 EPEL 附加软件包 true 或 false
--backup 是否备份原有软件源 true 或 false
--upgrade-software 是否更新软件包 true 或 false
--clean-cache 是否在更新软件包后清理下载缓存 true 或 false
--clean-screen 是否在运行前清除屏幕上的所有内容 true 或 false
--lang 指定脚本输出的语言 语言
--only-epel 仅更换 EPEL 软件源模式 无
--ignore-backup-tips 忽略覆盖备份提示 无
--print-diff 打印源文件修改前后差异 无
--pure-mode 纯净模式,精简打印内容 无
--help 查看帮助菜单 无
问题报告 {}'
['mirrors.default.0']='阿里云'
['mirrors.default.1']='腾讯云'
['mirrors.default.2']='华为云'
['mirrors.default.3']='移动云'
['mirrors.default.4']='天翼云'
['mirrors.default.5']='网易'
['mirrors.default.6']='火山引擎'
['mirrors.default.7']='清华大学'
['mirrors.default.8']='北京大学'
['mirrors.default.9']='浙江大学'
['mirrors.default.10']='南京大学'
['mirrors.default.11']='兰州大学'
['mirrors.default.12']='上海交通大学'
['mirrors.default.13']='重庆邮电大学'
['mirrors.default.14']='中国科学技术大学'
['mirrors.default.15']='中国科学院软件研究所'
['mirrors.default.16']='官方源'
['mirrors.edu.0']='北京大学'
['mirrors.edu.1']='北京交通大学'
['mirrors.edu.2']='北京外国语大学'
['mirrors.edu.3']='北京邮电大学'
['mirrors.edu.4']='重庆大学'
['mirrors.edu.5']='重庆邮电大学'
['mirrors.edu.6']='大连东软信息学院'
['mirrors.edu.7']='电子科技大学'
['mirrors.edu.8']='华南农业大学'
['mirrors.edu.9']='华中科技大学'
['mirrors.edu.10']='吉林大学'
['mirrors.edu.11']='荆楚理工学院'
['mirrors.edu.12']='江西理工大学'
['mirrors.edu.13']='兰州大学'
['mirrors.edu.14']='南京大学'
['mirrors.edu.15']='南京工业大学'
['mirrors.edu.16']='南京邮电大学'
['mirrors.edu.17']='南方科技大学'
['mirrors.edu.18']='南阳理工学院'
['mirrors.edu.19']='齐鲁工业大学'
['mirrors.edu.20']='清华大学'
['mirrors.edu.21']='山东大学'
['mirrors.edu.22']='上海科技大学'
['mirrors.edu.23']='上海交通大学(思源)'
['mirrors.edu.24']='上海交通大学(致远)'
['mirrors.edu.25']='武昌首义学院'
['mirrors.edu.26']='西安交通大学'
['mirrors.edu.27']='西北农林科技大学'
['mirrors.edu.28']='浙江大学'
['mirrors.edu.29']='中国科学技术大学'
['mirrors.edu.30']='官方源'
['mirrors.abroad.0']='亚洲 · xTom · 香港'
['mirrors.abroad.1']='亚洲 · 01Link · 香港'
['mirrors.abroad.2']='亚洲 · 新加坡国立大学(NUS) · 新加坡'
['mirrors.abroad.3']='亚洲 · SG.GS · 新加坡'
['mirrors.abroad.4']='亚洲 · xTom · 新加坡'
['mirrors.abroad.5']='亚洲 · 自由软件实验室(NCHC) · 台湾'
['mirrors.abroad.6']='亚洲 · OSS Planet · 台湾'
['mirrors.abroad.7']='亚洲 · 国立阳明交通大学 · 台湾'
['mirrors.abroad.8']='亚洲 · 淡江大学 · 台湾'
['mirrors.abroad.9']='亚洲 · Taiwan Digital Streaming · 台湾'
['mirrors.abroad.10']='亚洲 · AniGil Linux Archive · 韩国'
['mirrors.abroad.11']='亚洲 · 工业网络安全中心(ICSCoE) · 日本'
['mirrors.abroad.12']='亚洲 · 北陆先端科学技术大学院大学(JAIST) · 日本'
['mirrors.abroad.13']='亚洲 · 山形大学 · 日本'
['mirrors.abroad.14']='亚洲 · xTom · 日本'
['mirrors.abroad.15']='亚洲 · GB Network Solutions · 马来西亚'
['mirrors.abroad.16']='亚洲 · 孔敬大学 · 泰国'
['mirrors.abroad.17']='欧洲 · Vorboss Ltd · 英国'
['mirrors.abroad.18']='欧洲 · QuickHost · 英国'
['mirrors.abroad.19']='欧洲 · dogado · 德国'
['mirrors.abroad.20']='欧洲 · xTom · 德国'
['mirrors.abroad.21']='欧洲 · 亚琛工业大学(RWTH Aachen) · 德国'
['mirrors.abroad.22']='欧洲 · 德累斯顿大学(AG DSN) · 德国'
['mirrors.abroad.23']='欧洲 · CCIN2P3 · 法国'
['mirrors.abroad.24']='欧洲 · Ircam · 法国'
['mirrors.abroad.25']='欧洲 · Crans · 法国'
['mirrors.abroad.26']='欧洲 · CRIHAN · 法国'
['mirrors.abroad.27']='欧洲 · xTom · 荷兰'
['mirrors.abroad.28']='欧洲 · DataPacket · 荷兰'
['mirrors.abroad.29']='欧洲 · Linux Kernel · 荷兰'
['mirrors.abroad.30']='欧洲 · xTom · 爱沙尼亚'
['mirrors.abroad.31']='欧洲 · netsite · 丹麦'
['mirrors.abroad.32']='欧洲 · Dotsrc · 丹麦'
['mirrors.abroad.33']='欧洲 · Academic Computer Club · 瑞典'
['mirrors.abroad.34']='欧洲 · Lysator · 瑞典'
['mirrors.abroad.35']='欧洲 · Yandex · 俄罗斯'
['mirrors.abroad.36']='欧洲 · ia64 · 俄罗斯'
['mirrors.abroad.37']='欧洲 · Truenetwork · 俄罗斯'
['mirrors.abroad.38']='欧洲 · Belgian Research Network · 比利时'
['mirrors.abroad.39']='欧洲 · 克里特大学计算机中心 · 希腊'
['mirrors.abroad.40']='欧洲 · 马萨里克大学信息学院 · 捷克'
['mirrors.abroad.41']='欧洲 · 捷克理工大学学生会俱乐部(Silicon Hill) · 捷克'
['mirrors.abroad.42']='欧洲 · Vodafone · 捷克'
['mirrors.abroad.43']='欧洲 · CZ.NIC · 捷克'
['mirrors.abroad.44']='欧洲 · 苏黎世联邦理工学院 · 瑞士'
['mirrors.abroad.45']='北美 · Linux Kernel · 美国'
['mirrors.abroad.46']='北美 · 麻省理工学院(MIT) · 美国'
['mirrors.abroad.47']='北美 · 普林斯顿大学数学系 · 美国'
['mirrors.abroad.48']='北美 · 俄勒冈州立大学开源实验室 · 美国'
['mirrors.abroad.49']='北美 · Fremont Cabal Internet Exchange(FCIX) · 美国'
['mirrors.abroad.50']='北美 · xTom · 美国'
['mirrors.abroad.51']='北美 · Steadfast · 美国'
['mirrors.abroad.52']='北美 · 不列颠哥伦比亚大学 · 加拿大'
['mirrors.abroad.53']='北美 · GoCodeIT · 加拿大'
['mirrors.abroad.54']='北美 · Switch · 加拿大'
['mirrors.abroad.55']='南美 · PoP-SC · 巴西'
['mirrors.abroad.56']='南美 · 蓬塔格罗萨州立大学 · 巴西'
['mirrors.abroad.57']='南美 · UFSCar · 巴西'
['mirrors.abroad.58']='南美 · Sysarmy Community · 阿根廷'
['mirrors.abroad.59']='大洋 · Fremont Cabal Internet Exchange(FCIX) · 澳大利亚'
['mirrors.abroad.60']='大洋 · AARNet · 澳大利亚'
['mirrors.abroad.61']='大洋 · DataMossa · 澳大利亚'
['mirrors.abroad.62']='大洋 · Amaze · 澳大利亚'
['mirrors.abroad.63']='大洋 · xTom · 澳大利亚'
['mirrors.abroad.64']='大洋 · Over the Wire · 澳大利亚'
['mirrors.abroad.65']='大洋 · Free Software Mirror Group · 新西兰'
['mirrors.abroad.66']='非洲 · Liquid Telecom · 肯尼亚'
['mirrors.abroad.67']='非洲 · Dimension Data · 南非'
['mirrors.abroad.68']='官方源'
)

229
locales/linux/zh-hant.sh Normal file
View File

@@ -0,0 +1,229 @@
MESSAGE_CONTENTS=(
['start.welcome']='歡迎使用 GNU/Linux 更換系統軟體源腳本'
['start.runtimeEnv']='執行環境'
['start.dateTime']='系統時間'
['end.moreInfo']='腳本執行完畢,更多使用教學詳見官網'
['end.sponsorAds']='【贊助商廣告】'
['error.cmd.options.needConfirm']='請確認後重新輸入'
['error.cmd.options.needSpecify']='請在該選項後指定{}'
['error.cmd.options.invalid']='命令選項 {} 無效,{}'
['error.cmd.options.invalid']='命令選項 {} 無效,{}'
['error.cmd.options.validAddress']='有效的地址'
['error.cmd.options.sourceAddress']='軟體源地址'
['error.cmd.options.sourceRepository']='軟體源倉庫'
['error.cmd.options.codename']='版本代號'
['error.cmd.options.boolean']=' true 或 false '
['error.cmd.options.protocol']=' http 或 https '
['error.cmd.options.needProtocol']=' Web 協定(http/https)'
['error.cmd.options.validLangKey']='有效的語言 ID '
['error.cmd.options.langKey']='語言 ID '
['error.cmd.options.unsupportTwoSourceMode']='不可同時使用兩種軟體源模式,請確認後重試!'
['error.cmd.options.unsupportCodename']='當前系統不支援使用指定版本代號命令選項,請確認後重試!'
['error.cmd.options.unsupportEPEL']='當前系統不支援安裝 EPEL 附加軟體包,請確認後重試!'
['error.unsupportSystem']='不支援當前系統({}),請前往官網查看支援清單!'
['error.unsupportVersion']='不支援當前系統版本'
['error.unknownSystem']='未知系統'
['error.unknownVersion']='系統版本未知'
['error.input']='輸入錯誤,{}'
['error.needRoot']='權限不足,請使用 Root 使用者執行本腳本'
['error.defaultBehavior.https']='預設使用 HTTPS 協定'
['error.defaultBehavior.noReplace']='預設不更換'
['error.defaultBehavior.noOverwrite']='預設不覆蓋'
['error.defaultBehavior.noUpdate']='預設不更新'
['error.defaultBehavior.noClean']='預設不清理'
['error.defaultBehavior.noUseIntranetSource']='預設不使用內網地址'
['warn.usedIntranetSource']='已切換至內網專用地址,僅限在特定環境下使用!'
['warn.unstableDebian']='偵測到當前系統為 {} 版本,可能會產生一些無法預料的問題。'
['warn.EPEL7']='Extra Packages for Enterprise Linux 7 已結束生命週期並被官方移至封存庫!'
['warn.needValidNumberIndex']='請輸入有效的數字序號!'
['warn.needInputNumberIndex']='請輸入數字序號!'
['info.backuped.sourceFile']='已備份原有 {} 源檔案'
['tip.EPEL7']='目前部分鏡像站尚未同步該封存倉庫,若換源後出現錯誤請先檢查目標鏡像站是否支援該倉庫。'
['interaction.source.type.public']='外網'
['interaction.source.type.intranet']='內網'
['interaction.source.type.select']='請選擇軟體源的網路地址(存取方式):'
['interaction.source.type.usePublicAddress']='預設使用軟體源的外網地址,是否繼續'
['interaction.source.select']='請選擇你想使用的軟體源:'
['interaction.source.selectAndInput']='請選擇並輸入你想使用的軟體源'
['interaction.protocol.select']='請選擇軟體源網路協定:'
['interaction.protocol.useHttp']='軟體源是否使用 HTTP 协议'
['interaction.epel.skipReplace']='偵測到系統已安裝 EPEL 附加軟體包,是否替換/覆蓋軟體源'
['interaction.epel.install']='是否安裝 EPEL 附加軟體包'
['interaction.backup.skipOverwrite.sourceFile']='偵測到系統存在已備份的 {} 源檔案,是否跳過覆蓋備份'
['interaction.upgrade.skip']='是否跳過更新軟體包'
['interaction.cache.autoClean']='在更新軟體包後,是否自動清理下載快取'
['interaction.common.tip']='提示'
['interaction.common.operationCanceled']='操作已取消'
['interaction.common.yes']='是'
['interaction.common.no']='否'
['work.upgradeSoftware']='更新軟體包'
['work.installEPELPackage']='正在安裝 epel-release 套件...'
['source.sync.text1']='更新軟體源'
['source.sync.text2']='產生軟體源快取'
['source.sync.text3']='重新整理軟體源'
['source.sync.text4']='同步軟體源'
['source.sync.text5']='更新二進位快取與頻道來源'
['source.comment.disabledSourceCode']='預設停用原始碼鏡像以提升更新速度,如需啟用請自行取消註解'
['source.comment.securitySource']='安全更新軟體源'
['source.comment.proposedSource']='預發布軟體源(不建議啟用)'
['source.changeResult.success']='軟體源更換完畢'
['source.changeResult.fail']='軟體源更換完畢,但{}失敗'
['source.changeResult.tipTitle']='請再次執行腳本並更換相同軟體源後重試,若仍然{}失敗則可能由下列原因造成:'
['source.changeResult.tip1']='網路連通性問題:例如連線異常、地域因素造成的網路間歇中斷、禁止外部存取、軟體源站台防火牆阻斷等'
['source.changeResult.tip2']='目標軟體源異常:請手動前往軟體源(鏡像站)地址進行驗證:{}'
['source.changeResult.tip2.1']='若錯誤內容是提示某個檔案不存在,可能是軟體源的問題,常見於鏡像站同步期間'
['source.changeResult.tip2.2']='若錯誤內容是目錄不存在,也可能代表目標軟體源不含當前系統的鏡像倉庫,即不支援當前系統'
['source.changeResult.tip2.3']='建議更換其他鏡像站再試,少數情況下軟體源若處於同步中狀態則可能會出現檔案同步錯誤'
['source.changeResult.tip3']='原有軟體源報錯:請先排除系統其他軟體源的錯誤,因為腳本不會處理無關的軟體源配置,解決後重新執行腳本即可'
['commands.help']='命令選項(名稱/含義/值)
--abroad 使用境外以及海外軟體源 無
--edu 使用中國大陸教育網軟體源 無
--source 指定軟體源地址(網域名稱或IP) 位址
--source-epel 指定 EPEL 附加軟體包倉庫的軟體源地址(網域名稱或IP) 位址
--source-security 指定 Debian / Ubuntu 系統 security 倉庫的軟體源地址(網域名稱或IP) 位址
--source-vault 指定 CentOS / AlmaLinux 系統 vault 倉庫的軟體源地址(網域名稱或IP) 位址
--source-portage 指定 Gentoo 系統 portage 倉庫的軟體源地址(網域名稱或IP) 位址
--source-base-system 指定 Linux Mint / Raspberry Pi OS 底層系統的軟體源地址(網域名稱或IP) 位址
--branch 指定軟體源倉庫(路徑) 倉庫名稱
--branch-epel 指定 EPEL 附加軟體包倉庫的軟體源倉庫(路徑) 倉庫名稱
--branch-security 指定 Debian 系統 security 倉庫的軟體源倉庫(路徑) 倉庫名稱
--branch-vault 指定 CentOS / AlmaLinux 系統 vault 倉庫的軟體源倉庫(路徑) 倉庫名稱
--branch-portage 指定 Gentoo 系統 portage 倉庫的軟體源倉庫(路徑) 倉庫名稱
--branch-base-system 指定 Linux Mint / Raspberry Pi OS 底層系統的軟體源倉庫(路徑) 倉庫名稱
--codename 指定 Debian 系 / openKylin 系統的版本代號 代號名稱
--protocol 指定 Web 協定 http 或 https
--use-intranet-source 是否優先使用內部網路軟體源位址 true 或 false
--use-official-source 是否使用目標系統的官方軟體源 true 或 false
--use-official-source-epel 是否使用 EPEL 附加軟體包的官方軟體源 true 或 false
--install-epel 是否安裝 EPEL 附加軟體包 true 或 false
--backup 是否備份原有軟體源 true 或 false
--upgrade-software 是否更新軟體包 true 或 false
--clean-cache 是否在更新軟體包後清理下載快取 true 或 false
--clean-screen 是否在運行前清除螢幕上的所有內容 true 或 false
--lang 指定腳本輸出的語言 语言
--only-epel 僅更換 EPEL 軟體源模式 無
--ignore-backup-tips 忽略覆蓋備份提示 無
--print-diff 是否列印原始文件修改前後差異 無
--pure-mode 純淨模式,精簡列印內容 無
--help 查看幫助選單 無
問題報告 {}'
['mirrors.default.0']='阿里雲'
['mirrors.default.1']='騰訊雲'
['mirrors.default.2']='華為雲'
['mirrors.default.3']='移動雲'
['mirrors.default.4']='天翼雲'
['mirrors.default.5']='網易'
['mirrors.default.6']='火山引擎'
['mirrors.default.7']='清華大學'
['mirrors.default.8']='北京大學'
['mirrors.default.9']='浙江大學'
['mirrors.default.10']='南京大學'
['mirrors.default.11']='蘭州大學'
['mirrors.default.12']='上海交通大學'
['mirrors.default.13']='重慶郵電大學'
['mirrors.default.14']='中國科學技術大學'
['mirrors.default.15']='中國科學院軟件研究所'
['mirrors.default.16']='官方源'
['mirrors.edu.0']='北京大學'
['mirrors.edu.1']='北京交通大學'
['mirrors.edu.2']='北京外國語大學'
['mirrors.edu.3']='北京郵電大學'
['mirrors.edu.4']='重慶大學'
['mirrors.edu.5']='重慶郵電大學'
['mirrors.edu.6']='大連東軟信息學院'
['mirrors.edu.7']='電子科技大學'
['mirrors.edu.8']='華南農業大學'
['mirrors.edu.9']='華中科技大學'
['mirrors.edu.10']='吉林大學'
['mirrors.edu.11']='荊楚理工學院'
['mirrors.edu.12']='江西理工大學'
['mirrors.edu.13']='蘭州大學'
['mirrors.edu.14']='南京大學'
['mirrors.edu.15']='南京工業大學'
['mirrors.edu.16']='南京郵電大學'
['mirrors.edu.17']='南方科技大學'
['mirrors.edu.18']='南陽理工學院'
['mirrors.edu.19']='齊魯工業大學'
['mirrors.edu.20']='清華大學'
['mirrors.edu.21']='山東大學'
['mirrors.edu.22']='上海科技大學'
['mirrors.edu.23']='上海交通大學(思源)'
['mirrors.edu.24']='上海交通大學(致遠)'
['mirrors.edu.25']='武昌首義學院'
['mirrors.edu.26']='西安交通大學'
['mirrors.edu.27']='西北農林科技大學'
['mirrors.edu.28']='浙江大學'
['mirrors.edu.29']='中國科學技術大學'
['mirrors.edu.30']='官方源'
['mirrors.abroad.0']='亞洲 · xTom · 香港'
['mirrors.abroad.1']='亞洲 · 01Link · 香港'
['mirrors.abroad.2']='亞洲 · 新加坡國立大學(NUS) · 新加坡'
['mirrors.abroad.3']='亞洲 · SG.GS · 新加坡'
['mirrors.abroad.4']='亞洲 · xTom · 新加坡'
['mirrors.abroad.5']='亞洲 · 自由軟體實驗室(NCHC) · 臺灣'
['mirrors.abroad.6']='亞洲 · OSS Planet · 臺灣'
['mirrors.abroad.7']='亞洲 · 國立陽明交通大學 · 臺灣'
['mirrors.abroad.8']='亞洲 · 淡江大學 · 臺灣'
['mirrors.abroad.9']='亞洲 · Taiwan Digital Streaming · 臺灣'
['mirrors.abroad.10']='亞洲 · AniGil Linux Archive · 韓國'
['mirrors.abroad.11']='亞洲 · 工業網路安全中心(ICSCoE) · 日本'
['mirrors.abroad.12']='亞洲 · 北陸先端科學技術大學院大學(JAIST) · 日本'
['mirrors.abroad.13']='亞洲 · 山形大學 · 日本'
['mirrors.abroad.14']='亞洲 · xTom · 日本'
['mirrors.abroad.15']='亞洲 · GB Network Solutions · 馬來西亞'
['mirrors.abroad.16']='亞洲 · 孔敬大學 · 泰國'
['mirrors.abroad.17']='歐洲 · Vorboss Ltd · 英國'
['mirrors.abroad.18']='歐洲 · QuickHost · 英國'
['mirrors.abroad.19']='歐洲 · dogado · 德國'
['mirrors.abroad.20']='歐洲 · xTom · 德國'
['mirrors.abroad.21']='歐洲 · 亞琛工業大學(RWTH Aachen) · 德國'
['mirrors.abroad.22']='歐洲 · 德勒斯登大學(AG DSN) · 德國'
['mirrors.abroad.23']='歐洲 · CCIN2P3 · 法國'
['mirrors.abroad.24']='歐洲 · Ircam · 法國'
['mirrors.abroad.25']='歐洲 · Crans · 法國'
['mirrors.abroad.26']='歐洲 · CRIHAN · 法國'
['mirrors.abroad.27']='歐洲 · xTom · 荷蘭'
['mirrors.abroad.28']='歐洲 · DataPacket · 荷蘭'
['mirrors.abroad.29']='歐洲 · Linux Kernel · 荷蘭'
['mirrors.abroad.30']='歐洲 · xTom · 愛沙尼亞'
['mirrors.abroad.31']='歐洲 · netsite · 丹麥'
['mirrors.abroad.32']='歐洲 · Dotsrc · 丹麥'
['mirrors.abroad.33']='歐洲 · Academic Computer Club · 瑞典'
['mirrors.abroad.34']='歐洲 · Lysator · 瑞典'
['mirrors.abroad.35']='歐洲 · Yandex · 俄羅斯'
['mirrors.abroad.36']='歐洲 · ia64 · 俄羅斯'
['mirrors.abroad.37']='歐洲 · Truenetwork · 俄羅斯'
['mirrors.abroad.38']='歐洲 · Belgian Research Network · 比利時'
['mirrors.abroad.39']='歐洲 · 克里特大學計算機中心 · 希臘'
['mirrors.abroad.40']='歐洲 · 馬薩里克大學信息學院 · 捷克'
['mirrors.abroad.41']='歐洲 · 捷克理工大學學生會俱樂部(Silicon Hill) · 捷克'
['mirrors.abroad.42']='歐洲 · Vodafone · 捷克'
['mirrors.abroad.43']='歐洲 · CZ.NIC · 捷克'
['mirrors.abroad.44']='歐洲 · 蘇黎世聯邦理工學院 · 瑞士'
['mirrors.abroad.45']='北美 · Linux Kernel · 美國'
['mirrors.abroad.46']='北美 · 麻省理工學院(MIT) · 美國'
['mirrors.abroad.47']='北美 · 普林斯頓大學數學系 · 美國'
['mirrors.abroad.48']='北美 · 俄勒岡州立大學開源實驗室 · 美國'
['mirrors.abroad.49']='北美 · Fremont Cabal Internet Exchange(FCIX) · 美國'
['mirrors.abroad.50']='北美 · xTom · 美國'
['mirrors.abroad.51']='北美 · Steadfast · 美國'
['mirrors.abroad.52']='北美 · 不列顛哥倫比亞大學 · 加拿大'
['mirrors.abroad.53']='北美 · GoCodeIT · 加拿大'
['mirrors.abroad.54']='北美 · Switch · 加拿大'
['mirrors.abroad.55']='南美 · PoP-SC · 巴西'
['mirrors.abroad.56']='南美 · 蓬塔格羅薩州立大學 · 巴西'
['mirrors.abroad.57']='南美 · UFSCar · 巴西'
['mirrors.abroad.58']='南美 · Sysarmy Community · 阿根廷'
['mirrors.abroad.59']='大洋 · Fremont Cabal Internet Exchange(FCIX) · 澳大利亞'
['mirrors.abroad.60']='大洋 · AARNet · 澳大利亞'
['mirrors.abroad.61']='大洋 · DataMossa · 澳大利亞'
['mirrors.abroad.62']='大洋 · Amaze · 澳大利亞'
['mirrors.abroad.63']='大洋 · xTom · 澳大利亞'
['mirrors.abroad.64']='大洋 · Over the Wire · 澳大利亞'
['mirrors.abroad.65']='大洋 · Free Software Mirror Group · 紐西蘭'
['mirrors.abroad.66']='非洲 · Liquid Telecom · 肯亞'
['mirrors.abroad.67']='非洲 · Dimension Data · 南非'
['mirrors.abroad.68']='官方源'
)

View File

@@ -2,7 +2,7 @@ site_name: LinuxMirrors
repo_name: LinuxMirrors
repo_url: https://github.com/SuperManito/LinuxMirrors
edit_uri: edit/main/docs/
copyright: 'Copyright &copy; 2025 <a href="https://github.com/SuperManito" target="_blank">SuperManito</a>'
copyright: 'Copyright &copy; 2025 <a href="https://github.com/SuperManito" target="_blank" rel="noopener noreferrer">SuperManito</a>'
nav:
- "介绍": index.md

View File

@@ -1,5 +1,5 @@
mkdocs-material==9.6.21
mkdocs-glightbox==0.5.1
mkdocs-material==9.6.22
mkdocs-glightbox==0.5.2
mkdocs-exclude-search==0.6.6
# mkdocs-minify-plugin==0.8.0
mkdocs-static-i18n==1.3.0