更新文档

This commit is contained in:
Super Manito
2025-06-27 22:25:33 +08:00
parent 20e68fd113
commit ad45c4d834
24 changed files with 1983 additions and 84 deletions

45
CHANGELOG.en-US.md Normal file
View File

@@ -0,0 +1,45 @@
2025-06-15
* Adapted for Rocky Linux 10 [#dafaa13](https://github.com/SuperManito/LinuxMirrors/commit/dafaa13e44209d719b5b6f06f4cc3c4f2ef24d3b)
2025-06-03
* Added support for Manjaro OS [#a93f23e](https://github.com/SuperManito/LinuxMirrors/commit/a93f23e48d4ffbffb0e04efcf33138fc7218b560)
2025-05-29
* Adapted for Red Hat Enterprise Linux 10 & AlmaLinux 10 [#26f493a](https://github.com/SuperManito/LinuxMirrors/commit/26f493a762221569404d45a6556afd7945ac75f8)
2025-05-13
* Enabled DEB822 format for new versions of Debian and Ubuntu repositories [#c3d0d5f](https://github.com/SuperManito/LinuxMirrors/commit/c3d0d5fa2c0993e104711f55e37fa8ada1031b5e)
2025-05-12
* Added "Only Replace Mirror Accelerator" command option to Docker script [#3f13f40](https://github.com/SuperManito/LinuxMirrors/commit/3f13f40111fa3631555ca7104cea21b4bb5adefa)
2025-05-11
* Adapted for Anolis OS 8.10 [#582b1d1](https://github.com/SuperManito/LinuxMirrors/commit/582b1d1fbcc3cab4899d4d400cf9a51023773aad)
2025-04-05
* Added "Clean Mode" command option [#e63dea7](https://github.com/SuperManito/LinuxMirrors/commit/e63dea7e64fa6c31ecee3c02b143924ab12917b4)
2025-03-16
* Adapted for EPEL 10 [#b71c0b9](https://github.com/SuperManito/LinuxMirrors/commit/b71c0b9790cc1dfb431729b817e726d6dd19a555)
2025-03-15
* Added support for Raspberry Pi OS [#c08000c](https://github.com/SuperManito/LinuxMirrors/commit/c08000cb645994d669e5ca2678d429a9d9eb3c90)
2025-03-14
* Adapted for CentOS Stream 10 [#12eb98c](https://github.com/SuperManito/LinuxMirrors/commit/12eb98ce2945294873bfaa7b422fda175d9f8c10)
2025-02-20
* Added support for NixOS [#4d91f7d](https://github.com/SuperManito/LinuxMirrors/commit/4d91f7d1b2ddd58f7794cc7620d0ea7e4f9af02b)
......

189
README.en-US.md Normal file
View File

@@ -0,0 +1,189 @@
<p align="center">
<a href="https://linuxmirrors.cn/en/">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="/docs/assets/images/brand/dark/2.png" width="320">
<img src="/docs/assets/images/brand/light/2.png" alt="LinuxMirrors" width="320">
</picture>
</a>
</p>
<p align="center">GNU/Linux System Software Mirror Switching Script and Docker Installation & Mirror Switching Script</p>
<p align="center"><a href="README.md">简体中文</a> | <a href="README.zh-Hant.md">繁體中文</a> | English</p>
<p align="center">
<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>
<a href="https://github.com/SuperManito/LinuxMirrors"><img src="https://img.shields.io/github/stars/SuperManito/LinuxMirrors?color=%23007bff&style=flat-square" alt="Stars"></a><br>
</p>
<p align="center">
<a href="https://hellogithub.com/repository/775d5b3d0aa04e90be9162104e757f2e" target="_blank">
<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">
</picture>
</a>
</p>
<table align="center">
<tr>
<th align="left">Operating System</th>
<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 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 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 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 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 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 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 align="center">all</td>
</tr>
<tr>
<td><a href="https://www.proxmox.com" target="_blank"><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 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 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 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 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 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 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 align="center">21 ~ 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 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 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 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 align="center">Leap 15 / 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 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 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 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 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 align="center">19 ~ 24</td>
</tr>
</table>
<p align="center">
<strong>
<a href="https://linuxmirrors.cn/en/" style="text-decoration: none;">Official Website</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/en/use/" style="text-decoration: none;">Usage</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/en/mirrors/" style="text-decoration: none;">Mirror List</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/en/other/" style="text-decoration: none;">Docker Install (Extra Script)</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/en/community/" style="text-decoration: none;">Community</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/en/sponsor/" style="text-decoration: none;">Sponsor</a>
</strong>
</p>
<p align="center"><strong>Sponsors</strong></p>
<p align="center">
<a href="https://linuxmirrors.cn/en/sponsor">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="/docs/assets/images/sponsor/all-dark.png">
<img src="/docs/assets/images/sponsor/all-light.png" alt="Sponsors">
</picture>
</a>
</p>
***
## Quick Start
> The official project website integrates AI chat and search. For more usage, see [**linuxmirrors.cn**](https://linuxmirrors.cn/en/use/)
- ### GNU/Linux System Software Mirror Switching
```bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh)
```
- ### Docker Installation & Mirror Switching
```bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh)
```
- ### Docker Switch Registry Mirror
```bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --only-registry
```
## Special Thanks
<a href="https://www.jetbrains.com/zh-cn" 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>
This project has joined the JetBrains & Netlify Open Source Program.
## LICENSE
Copyright © 2025, [SuperManito](https://github.com/SuperManito). Released under the [MIT](https://github.com/SuperManito/LinuxMirrors/blob/main/LICENSE).
This is a fully open source project, aiming to provide convenience for friends in the computer-related industry and make mirror switching easier.
<a href="https://star-history.com/#SuperManito/LinuxMirrors&Date">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=SuperManito/LinuxMirrors&type=Date&theme=dark" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=SuperManito/LinuxMirrors&type=Date" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=SuperManito/LinuxMirrors&type=Date" />
</picture>
</a>
__If you find this project helpful, please click the ⭐ in the upper right corner of the repository and share it with more friends.__

View File

@@ -1,5 +1,5 @@
<p align="center">
<a href="https://linuxmirrors.cn">
<a href="https://linuxmirrors.cn/">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="/docs/assets/images/brand/dark/2.png" width="320">
<img src="/docs/assets/images/brand/light/2.png" alt="LinuxMirrors" width="320">
@@ -7,7 +7,7 @@
</a>
</p>
<p align="center">GNU/Linux 更换系统软件源脚本及 Docker 安装与换源脚本</p>
<p align="center">简体中文 | <a href="README.zh-Hant.md">繁體中文</a></p>
<p align="center">简体中文 | <a href="README.zh-Hant.md">繁體中文</a> | <a href="README.en-US.md">English</a></p>
<p align="center">
<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>
<a href="https://github.com/SuperManito/LinuxMirrors"><img src="https://img.shields.io/github/stars/SuperManito/LinuxMirrors?color=%23007bff&style=flat-square" alt="Stars"></a><br>
@@ -100,7 +100,7 @@
</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 align="center">Leep 15 / Tumbleweed</td>
<td align="center">Leap 15 / 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>
@@ -126,14 +126,14 @@
<p align="center">
<strong>
<a href="https://linuxmirrors.cn" style="text-decoration: none;">官方网站</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/use" style="text-decoration: none;">使用方法</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/mirrors" style="text-decoration: none;">软件源列表</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/other" style="text-decoration: none;">Docker 安装(额外脚本)</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/community" style="text-decoration: none;">社区</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/sponsor" style="text-decoration: none;">赞助</a>
<a href="https://linuxmirrors.cn/" style="text-decoration: none;">官方网站</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/use/" style="text-decoration: none;">使用方法</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/mirrors/" style="text-decoration: none;">软件源列表</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/other/" style="text-decoration: none;">Docker 安装(额外脚本)</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/community/" style="text-decoration: none;">社区</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/sponsor/" style="text-decoration: none;">赞助</a>
</strong>
</p>
<p align="center"><strong>赞助商</strong></p>
<p align="center">
<a href="https://linuxmirrors.cn/sponsor">
<a href="https://linuxmirrors.cn/sponsor/">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="/docs/assets/images/sponsor/all-dark.png">
<img src="/docs/assets/images/sponsor/all-light.png" alt="Sponsors">
@@ -146,7 +146,7 @@
## 快速开始
> 项目官方网站集成了 AI 聊天与搜索,更多使用方法详见 [**linuxmirrors.cn**](https://linuxmirrors.cn/use)
> 项目官方网站集成了 AI 聊天与搜索,更多使用方法详见 [**linuxmirrors.cn**](https://linuxmirrors.cn/use/)
- ### GNU/Linux 更换系统软件源

View File

@@ -1,5 +1,5 @@
<p align="center">
<a href="https://linuxmirrors.cn/zh-Hant">
<a href="https://linuxmirrors.cn/zh-Hant/">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="/docs/assets/images/brand/dark/2.png" width="320">
<img src="/docs/assets/images/brand/light/2.png" alt="LinuxMirrors" width="320">
@@ -7,7 +7,7 @@
</a>
</p>
<p align="center">GNU/Linux 更換系統軟體源腳本及 Docker 安裝與換源腳本</p>
<p align="center"><a href="README.md">简体中文</a> | 繁體中文</p>
<p align="center"><a href="README.md">简体中文</a> | 繁體中文 | <a href="README.en-US.md">English</a></p>
<p align="center">
<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>
<a href="https://github.com/SuperManito/LinuxMirrors"><img src="https://img.shields.io/github/stars/SuperManito/LinuxMirrors?color=%23007bff&style=flat-square" alt="Stars"></a><br>
@@ -100,7 +100,7 @@
</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 align="center">Leep 15 / Tumbleweed</td>
<td align="center">Leap 15 / 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>
@@ -126,14 +126,14 @@
<p align="center">
<strong>
<a href="https://linuxmirrors.cn/zh-Hant" style="text-decoration: none;">官方網站</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/zh-Hant/use" style="text-decoration: none;">使用方法</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/zh-Hant/mirrors" style="text-decoration: none;">軟體源列表</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/zh-Hant/other" style="text-decoration: none;">Docker 安裝(額外腳本)</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/zh-Hant/community" style="text-decoration: none;">社群</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/zh-Hant/sponsor" style="text-decoration: none;">贊助</a>
<a href="https://linuxmirrors.cn/zh-Hant/" style="text-decoration: none;">官方網站</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/zh-Hant/use/" style="text-decoration: none;">使用方法</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/zh-Hant/mirrors/" style="text-decoration: none;">軟體源列表</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/zh-Hant/other/" style="text-decoration: none;">Docker 安裝(額外腳本)</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/zh-Hant/community/" style="text-decoration: none;">社群</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/zh-Hant/sponsor/" style="text-decoration: none;">贊助</a>
</strong>
</p>
<p align="center"><strong>贊助商</strong></p>
<p align="center">
<a href="https://linuxmirrors.cn/zh-Hant/sponsor">
<a href="https://linuxmirrors.cn/zh-Hant/sponsor/">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="/docs/assets/images/sponsor/all-dark.png">
<img src="/docs/assets/images/sponsor/all-light.png" alt="Sponsors">
@@ -146,7 +146,7 @@
## 快速開始
> 項目官方網站整合了 AI 聊天與搜索,更多使用方法詳見 [**linuxmirrors.cn**](https://linuxmirrors.cn/zh-Hant/use)
> 項目官方網站整合了 AI 聊天與搜索,更多使用方法詳見 [**linuxmirrors.cn**](https://linuxmirrors.cn/zh-Hant/use/)
- ### GNU/Linux 更換系統軟體源

View File

@@ -88,8 +88,8 @@
--text-color-accent: var(--md-accent-fg-color);
--text-color-inactive: #99989d;
--text-color-reverse: #000;
--background-color-primary: var(--md-default-bg-color--dark);
--background-color-secondary: #1a1b20;
--background-color-primary: var(--md-default-bg-color);
--background-color-secondary: #101010;
--background-color-tertiary: var(--md-accent-fg-color--transparent);
--background-color-fourth: #2e2e2e;
--background-color-reverse: #fff;
@@ -102,7 +102,7 @@
--icon-color-secondary: #dadada;
--icon-color-tertiary: #838289;
--icon-color-inactive: #99989d;
--icon-color-reverse: var(--md-default-bg-color--dark);
--icon-color-reverse: var(--md-default-bg-color);
--shadow-color-primary: #000;
--button-text-color-primary: #fbfbfb;
--button-text-color-secondary: #99989d;
@@ -119,4 +119,4 @@
--chat-button-border-color-gradientSix: transparent;
--chat-button-background-color-gradientOne: var(--md-accent-fg-color);
--chat-button-background-color-gradientTwo: transparent;
}
}

View File

@@ -1,6 +1,39 @@
const OramaI18nData = {
'zh-Hans': {
searchPlaceholder: '请输入要搜索的内容...',
chatPlaceholder: '有什么可以帮你的吗?',
suggestions: ['如何使用', '支持哪些系统'],
askAiText: '询问 AI',
searchText: '搜索',
toSelectText: '选择',
toNavigateText: '导航',
toCloseText: '关闭',
},
'zh-Hant': {
searchPlaceholder: '請輸入要搜尋的內容...',
chatPlaceholder: '有什麼可以幫你的嗎?',
suggestions: ['如何使用', '支援哪些系統'],
askAiText: '詢問 AI',
searchText: '搜尋',
toSelectText: '選擇',
toNavigateText: '導航',
toCloseText: '關閉',
},
en: {
searchPlaceholder: 'Please enter the content to search...',
chatPlaceholder: 'How can I help you?',
suggestions: ['How to use', 'What systems are supported'],
askAiText: 'Ask AI',
searchText: 'Search',
toSelectText: 'Select',
toNavigateText: 'Navigate',
toCloseText: 'Close',
},
}
// get search box config
function getOramaSearchBoxConfig() {
const isDefaultLang = window.location.pathname.includes('/zh-Hant') ? false : true
const currentLang = window.location.pathname.includes('/zh-Hant') ? 'zh-Hant' : window.location.pathname.includes('/en') ? 'en' : 'zh-Hans'
return {
themeConfig: {
// colors: {
@@ -53,18 +86,18 @@ function getOramaSearchBoxConfig() {
description: 'content',
section: 'category',
},
searchPlaceholder: isDefaultLang ? '请输入要搜索的内容...' : '請輸入要搜尋的內容...',
chatPlaceholder: isDefaultLang ? '有什么可以帮你的吗?' : '有什麼可以幫你的嗎?',
suggestions: isDefaultLang ? ['如何使用', '支持哪些系统'] : ['如何使用', '支援哪些系統'],
searchPlaceholder: OramaI18nData[currentLang].searchPlaceholder,
chatPlaceholder: OramaI18nData[currentLang].chatPlaceholder,
suggestions: OramaI18nData[currentLang].suggestions,
}
}
// localization search box component
function localizationOramaSearchBox(searchBox) {
if (!searchBox) return
const isDefaultLang = window.location.pathname.includes('/zh-Hant') ? false : true
const askAiText = isDefaultLang ? '询问 AI' : '詢問 AI'
const searchText = isDefaultLang ? '搜索' : '搜尋'
const currentLang = window.location.pathname.includes('/zh-Hant') ? 'zh-Hant' : window.location.pathname.includes('/en') ? 'en' : 'zh-Hans'
const askAiText = OramaI18nData[currentLang].askAiText
const searchText = OramaI18nData[currentLang].searchText
const observer = new MutationObserver((mutations, obs) => {
const shadowRoot = searchBox.shadowRoot
if (shadowRoot) {
@@ -77,9 +110,9 @@ function localizationOramaSearchBox(searchBox) {
}
}
// Keyboard shortcuts localization (Only PC)
const toSelectText = isDefaultLang ? '选择' : '選擇'
const toNavigateText = isDefaultLang ? '导航' : '導航'
const toCloseText = isDefaultLang ? '关闭' : '關閉'
const toSelectText = OramaI18nData[currentLang].toSelectText
const toNavigateText = OramaI18nData[currentLang].toNavigateText
const toCloseText = OramaI18nData[currentLang].toCloseText
const shortcutDescriptions = shadowRoot.querySelectorAll('.shortcut-description')
shortcutDescriptions.forEach((element) => {
if (element.textContent === 'to select' && element.textContent !== toSelectText) {

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,53 @@
---
hide:
- navigation
- footer
search:
exclude: true
---
### `2025-06-15`
* Adapted for Rocky Linux 10 [#dafaa13](https://github.com/SuperManito/LinuxMirrors/commit/dafaa13e44209d719b5b6f06f4cc3c4f2ef24d3b)
### `2025-06-03`
* Added support for Manjaro OS [#a93f23e](https://github.com/SuperManito/LinuxMirrors/commit/a93f23e48d4ffbffb0e04efcf33138fc7218b560)
### `2025-05-29`
* Adapted for Red Hat Enterprise Linux 10 & AlmaLinux 10 [#26f493a](https://github.com/SuperManito/LinuxMirrors/commit/26f493a762221569404d45a6556afd7945ac75f8)
### `2025-05-13`
* Enabled DEB822 format for new versions of Debian and Ubuntu repositories [#c3d0d5f](https://github.com/SuperManito/LinuxMirrors/commit/c3d0d5fa2c0993e104711f55e37fa8ada1031b5e)
### `2025-05-12`
* Added "Only Replace Mirror Accelerator" command option to Docker script [#3f13f40](https://github.com/SuperManito/LinuxMirrors/commit/3f13f40111fa3631555ca7104cea21b4bb5adefa)
### `2025-05-11`
* Adapted for Anolis OS 8.10 [#582b1d1](https://github.com/SuperManito/LinuxMirrors/commit/582b1d1fbcc3cab4899d4d400cf9a51023773aad)
### `2025-04-05`
* Added "Clean Mode" command option [#e63dea7](https://github.com/SuperManito/LinuxMirrors/commit/e63dea7e64fa6c31ecee3c02b143924ab12917b4)
### `2025-03-16`
* Adapted for EPEL 10 [#b71c0b9](https://github.com/SuperManito/LinuxMirrors/commit/b71c0b9790cc1dfb431729b817e726d6dd19a555)
### `2025-03-15`
* Added support for Raspberry Pi OS [#c08000c](https://github.com/SuperManito/LinuxMirrors/commit/c08000cb645994d669e5ca2678d429a9d9eb3c90)
### `2025-03-14`
* Adapted for CentOS Stream 10 [#12eb98c](https://github.com/SuperManito/LinuxMirrors/commit/12eb98ce2945294873bfaa7b422fda175d9f8c10)
### `2025-02-20`
* Added support for NixOS [#4d91f7d](https://github.com/SuperManito/LinuxMirrors/commit/4d91f7d1b2ddd58f7794cc7620d0ea7e4f9af02b)
......

View File

@@ -0,0 +1,8 @@
---
comments: true
comments_description: Please ensure that the discussion content is relevant to the project and do not publish any illegal content such as advertisements
hide:
- navigation
- toc
- footer
---

141
docs/index.en.md Normal file
View File

@@ -0,0 +1,141 @@
---
title: One-Click Script Makes Mirror Switching Easier
description: GNU/Linux System Software Mirror Switching Script and Docker Installation & 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>
hide:
- navigation
- toc
- footer
---
<div class="grid" markdown>
<figure style="margin: 0 auto" markdown>
<div class="hero">
<span class="hero-background">
</span>
</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 System Software Mirror Switching Script and Docker Installation & 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>
=== "GNU/Linux"
<img src="/assets/images/brand/command/linux-light.png#only-light" style="width: 560px; box-shadow: var(--md-shadow-z2)" alt="command-linux" />
<img src="/assets/images/brand/command/linux-dark.png#only-dark" style="width: 560px; box-shadow: var(--md-shadow-z2)" alt="command-linux" />
<button class="md-clipboard" data-clipboard-text="bash &lt;(curl -sSL https://linuxmirrors.cn/main.sh)" title="Copy"></button>
=== "Docker"
<img src="/assets/images/brand/command/docker-light.png#only-light" style="width: 560px; box-shadow: var(--md-shadow-z2)" alt="command-docker" />
<img src="/assets/images/brand/command/docker-dark.png#only-dark" style="width: 560px; box-shadow: var(--md-shadow-z2)" alt="command-docker" />
<button class="md-clipboard" data-clipboard-text="bash &lt;(curl -sSL https://linuxmirrors.cn/docker.sh)" title="Copy"></button>
</figure>
</div>
<div class="grid" markdown>
<div class="grid cards" style="height: fit-content" markdown>
- :material-thumb-up-outline:{ .lg .middle } __Easy to Use__
---
Just one command to run directly, zero technical barrier, no dependencies required
Documentation integrates AI search and chat, providing solutions for various scenarios
- :material-vector-polyline:{ .lg .middle } __Wide System Support__
---
Supports up to `24+` operating systems, covering various versions, accurately identifying system types
High script compatibility, unsupported systems will prompt and exit without operation
- :material-vector-triangle:{ .lg .middle } __Diverse Mirror Adaptation__
---
In-depth research on domestic mirror site compatibility, tailored for users in China
Also provides a collection of domestic education network and overseas mirrors for users to choose
- :material-rocket-launch-outline:{ .lg .middle } __Fast and Efficient__
---
Mirror switching can be completed in as little as 10 seconds, efficient operations, saving a lot of time
The project has undergone years of iteration and optimization, with excellent script performance and stability, and comprehensive scenario handling
- :octicons-globe-24:{ .lg .middle } __Global Network, Worry-Free Access__
---
This website provides global edge network acceleration, easily accessible in any network environment
Multiple backup addresses are provided to ensure the script is always available, truly worry-free usage
- :material-arm-flex-outline:{ .lg .middle } __Powerful and Unmatched__
---
The script guides users step by step to select mirror configurations via arrow key interaction, making switching easier
In addition, the script offers rich command options, supporting CI/CD integration and automated operations
- :material-pencil-ruler-outline:{ .lg .middle } __Highly Customizable__
---
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
- :material-scale-balance:{ .lg .middle } __Free and Open Source__
---
The project is licensed under the MIT open source license, script code is fully open source and free to use
Please respect the author's intellectual achievements, and indicate the source or project address prominently when sharing
</div>
<div style="text-align: center" markdown>
| 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" title="https://www.proxmox.com" 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.1em"></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.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** | _2125_ |
| <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 / 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** | _1924_ |
</div>
</div>
<div style="text-align: center; padding: 1rem 0" markdown>
[Get Started](use/index.md){ .md-button .md-button--primary } &nbsp; [View Mirror List](mirrors/index.md){ .md-button }
</div>
--8<-- "docs/sponsor/main.html"

240
docs/mirrors/index.en.md Normal file
View File

@@ -0,0 +1,240 @@
---
hide:
- navigation
- toc
- feedback
- footer
search:
exclude: true
---
## Mainland China :flag-CN:
> All mirror sites in the list below support `Debian`, `Ubuntu`, `CentOS`, `openSUSE`, and `openEuler` repositories. The list is sorted by institution type, geographic location, and name length, and is not related to actual 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>
???+ question "Usage Help"
:supported: Supported &nbsp;&nbsp; :unsupport: Not Supported &nbsp;&nbsp; :incompatible: Incompatible, meaning the repository branch naming does not conform to the script's default rules but can be used via command options. For specific usage examples and the default branch names for each OS, [see here](../use/index.md#specify-mirror-repository).
If you can't find the mirror you want to use here, you can check other running modes and command options. The speed of a repository is divided into refresh speed and download rate, the latter being the key. Please choose and try according to your actual geographic location, and you can also use [auxiliary tool websites](#tool-websites) for some tests.
:material-thumb-up-outline: Usage suggestions: For speed, we recommend `USTC` and `ByteDance (Volcengine)`; for regional compatibility, `Aliyun` and `Tencent Cloud`; for repository variety, `Nanjing University` and `CAS`. For overseas or complex network environments, it is not recommended to use mirrors like `Tsinghua (TUNA)` that are easily blocked.
??? note "China Education Network (Click to expand)"
| Mirror Name | Mirror URL |
| :- | :-: |
| Peking University | [mirrors.pku.edu.cn](https://mirrors.pku.edu.cn "https://mirrors.pku.edu.cn") |
| Beijing Jiaotong University | [mirror.bjtu.edu.cn](https://mirror.bjtu.edu.cn "https://mirror.bjtu.edu.cn") |
| Beijing Foreign Studies University | [mirrors.bfsu.edu.cn](https://mirrors.bfsu.edu.cn "https://mirrors.bfsu.edu.cn") |
| Beijing University of Posts and Telecommunications | [mirror.bupt.edu.cn](https://mirror.bupt.edu.cn "https://mirror.bupt.edu.cn") |
| Chongqing University | [mirrors.cqu.edu.cn](https://mirrors.cqu.edu.cn "https://mirrors.cqu.edu.cn") |
| Chongqing University of Posts and Telecommunications | [mirrors.cqupt.edu.cn](https://mirrors.cqupt.edu.cn "https://mirrors.cqupt.edu.cn") |
| Dalian Neusoft University of Information | [mirrors.neusoft.edu.cn](https://mirrors.neusoft.edu.cn "https://mirrors.neusoft.edu.cn") |
| University of Electronic Science and Technology of China | [mirrors.uestc.cn](https://mirrors.uestc.cn "https://mirrors.uestc.cn") |
| South China Agricultural University | [mirrors.scau.edu.cn](https://mirrors.scau.edu.cn "https://mirrors.scau.edu.cn") |
| Huazhong University of Science and Technology | [mirrors.hust.edu.cn](https://mirrors.hust.edu.cn "https://mirrors.hust.edu.cn") |
| Jilin University | [mirrors.jlu.edu.cn](https://mirrors.jlu.edu.cn "https://mirrors.jlu.edu.cn") |
| Jingchu University of Technology | [mirrors.jcut.edu.cn](https://mirrors.jcut.edu.cn "https://mirrors.jcut.edu.cn") |
| Jiangxi University of Science and Technology | [mirrors.jxust.edu.cn](https://mirrors.jxust.edu.cn "https://mirrors.jxust.edu.cn") |
| Lanzhou University | [mirror.lzu.edu.cn](https://mirror.lzu.edu.cn "https://mirror.lzu.edu.cn") |
| Nanjing University | [mirrors.nju.edu.cn](https://mirrors.nju.edu.cn "https://mirrors.nju.edu.cn") |
| Nanjing Tech University | [mirrors.njtech.edu.cn](https://mirrors.njtech.edu.cn "https://mirrors.njtech.edu.cn") |
| Nanjing University of Posts and Telecommunications | [mirrors.njupt.edu.cn](https://mirrors.njupt.edu.cn "https://mirrors.njupt.edu.cn") |
| Southern University of Science and Technology | [mirrors.sustech.edu.cn](https://mirrors.sustech.edu.cn "https://mirrors.sustech.edu.cn") |
| Nanyang Institute of Technology | [mirror.nyist.edu.cn](https://mirror.nyist.edu.cn "https://mirror.nyist.edu.cn") |
| Qilu University of Technology | [mirrors.qlu.edu.cn](https://mirrors.qlu.edu.cn "https://mirrors.qlu.edu.cn") |
| Tsinghua University | [mirrors.tuna.tsinghua.edu.cn](https://mirrors.tuna.tsinghua.edu.cn "https://mirrors.tuna.tsinghua.edu.cn") |
| Shandong University | [mirrors.sdu.edu.cn](https://mirrors.sdu.edu.cn "https://mirrors.sdu.edu.cn") |
| ShanghaiTech University | [mirrors.shanghaitech.edu.cn](https://mirrors.shanghaitech.edu.cn "https://mirrors.shanghaitech.edu.cn") |
| Shanghai Jiao Tong University (Siyuan) | [mirror.sjtu.edu.cn](https://mirror.sjtu.edu.cn "https://mirror.sjtu.edu.cn") |
| Shanghai Jiao Tong University (Zhiyuan) | [mirrors.sjtug.sjtu.edu.cn](https://mirrors.sjtug.sjtu.edu.cn "https://mirrors.sjtug.sjtu.edu.cn") |
| Wuchang Shouyi University | [mirrors.wsyu.edu.cn](https://mirrors.wsyu.edu.cn "https://mirrors.wsyu.edu.cn") |
| Xi'an Jiaotong University | [mirrors.xjtu.edu.cn](https://mirrors.xjtu.edu.cn "https://mirrors.xjtu.edu.cn") |
| Northwest A&F University | [mirrors.nwafu.edu.cn](https://mirrors.nwafu.edu.cn "https://mirrors.nwafu.edu.cn") |
| Zhejiang University | [mirrors.zju.edu.cn](https://mirrors.zju.edu.cn "https://mirrors.zju.edu.cn") |
| University of Science and Technology of China | [mirrors.ustc.edu.cn](https://mirrors.ustc.edu.cn "https://mirrors.ustc.edu.cn") |
## Overseas and International Regions :flag-world-map:
=== ":fontawesome-solid-earth-asia: Asia"
| 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") |
=== ":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") |
=== ":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") |
=== ":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") |
=== ":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") |
=== ":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") |
=== ":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") |
## Tool Websites
<button class="md-button" title="https://tool.chinaz.com" onclick="window.open('https://tool.chinaz.com')">Domain Lookup</button>
<button class="md-button" title="https://tools.ipip.net/newping.php" onclick="window.open('https://tools.ipip.net/newping.php')">Ping Latency Test</button>
<button class="md-button" title="https://tools.ipip.net/traceroute.php" onclick="window.open('https://tools.ipip.net/traceroute.php')">Tracert Route Trace Test</button>
<button class="md-button" title="https://ipw.cn/ipv6webcheck" onclick="window.open('https://ipw.cn/ipv6webcheck')">IPv6 Access Test</button>
!!! 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.

View File

@@ -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#L60 "https://github.com/SuperManito/LinuxMirrors/blame/main/ChangeMirrors.sh#L66") 并按照下面的编辑规范进行修改
作者没有精力持续维护列表中的这些境外、海外镜像站,如果你想补充更多软件源或更正当前已有,请修改脚本内的 [`mirror_list_abroad 数组变量`](https://github.com/SuperManito/LinuxMirrors/blame/main/ChangeMirrors.sh#L66 "https://github.com/SuperManito/LinuxMirrors/blame/main/ChangeMirrors.sh#L66") 并按照下面的编辑规范进行修改
你可以在确认软件源地址无误后前往 GitHub 仓库提交 [Pull Requests](https://github.com/SuperManito/LinuxMirrors/pulls "https://github.com/SuperManito/LinuxMirrors/pulls"),也可以 :material-source-fork: Fork 仓库后自行定制使用

383
docs/other/index.en.md Normal file
View File

@@ -0,0 +1,383 @@
---
hide:
- navigation
- footer
---
!!! tip inline end "Widely used by many popular projects and highly praised by the community"
## :simple-docker:{style="color: #1d63ed"} Docker Installation & Mirror Switching Script
<table>
<tr>
<td><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</td>
<td><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</td>
</tr>
<tr>
<td><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</td>
<td><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</td>
</tr>
<tr>
<td><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</td>
<td><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.1em"></a> CentOS</td>
</tr>
<tr>
<td><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.15em"></a> Linux Mint</td>
<td><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</td>
</tr>
<tr>
<td><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</td>
<td><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</td>
</tr>
<tr>
<td><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.1em"></a> Zorin OS</td>
<td><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</td>
</tr>
<tr>
<td><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</td>
<td><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</td>
</tr>
<tr>
<td><a href="https://www.proxmox.com" title="https://www.proxmox.com" target="_blank"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> Proxmox VE</td>
<td><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</td>
</tr>
<tr>
<td><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</td>
<td></td>
</tr>
</table>
### One-Click Execution Command
=== "Install"
!!! quote ""
=== ":linuxmirrors: Official Site (Recommended)"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh)
```
=== ":simple-github: GitHub"
``` bash
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/DockerInstallation.sh)
```
=== ":simple-gitee: Gitee (Mirror Repository)"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh)
```
> Real-time sync, no delay. Recommended for use in mainland China network environments.
=== ":gitcode: GitCode (Mirror Repository)"
``` bash
bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/DockerInstallation.sh)
```
> This project has joined the GitHub acceleration plan, with a 1-hour sync delay.
=== ":simple-jsdelivr: jsDelivr (CDN)"
``` bash
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/DockerInstallation.sh)
```
=== ":tencent-cloud: Tencent Cloud EO (CDN)"
``` bash
bash <(curl -sSL https://edgeone.linuxmirrors.cn/docker.sh)
```
> Not supported in mainland China network environments.
Integrates installation of [`Docker Engine`](https://docs.docker.com/engine) and [`Docker Compose`](https://docs.docker.com/compose), supports selecting or switching software sources and registry mirrors, installing specific versions, reinstalling, and supports ARM architecture.
The script refers to the [official documentation](https://docs.docker.com/engine/install) and uses the system package manager for installation. There are no compatibility or security issues. The available versions are determined by the Docker CE repository.
=== "Only Switch Registry Mirror"
!!! quote ""
=== ":linuxmirrors: Official Site (Recommended)"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --only-registry
```
=== ":simple-github: GitHub"
``` bash
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/DockerInstallation.sh) --only-registry
```
=== ":simple-gitee: Gitee (Mirror Repository)"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh) --only-registry
```
> Real-time sync, no delay. Recommended for use in mainland China network environments.
=== ":gitcode: GitCode (Mirror Repository)"
``` bash
bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/DockerInstallation.sh) --only-registry
```
> This project has joined the GitHub acceleration plan, with a 1-hour sync delay.
=== ":simple-jsdelivr: jsDelivr (CDN)"
``` bash
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/DockerInstallation.sh) --only-registry
```
=== ":tencent-cloud: Tencent Cloud EO (CDN)"
``` bash
bash <(curl -sSL https://edgeone.linuxmirrors.cn/docker.sh) --only-registry
```
> Not supported in mainland China network environments.
!!! node "About Software Sources"
<div class="grid cards" markdown>
- __Docker CE Software Repository__
---
Docker CE stands for Docker Community Edition, which is another name for Docker Engine. This repository is used to download and install Docker-related packages.
- __Docker Registry Mirror__
---
Used to control the default source repository for pulling images, also known as a registry accelerator. The default is the official container registry [Docker Hub](https://hub.docker.com).
</div>
Due to certain uncontrollable factors, Docker Hub is generally inaccessible in mainland China, making it impossible to pull images. It is recommended to use the domestic registry mirrors listed below.
Note: The specified WEB protocol in the script is only for controlling the `Docker CE` software source. `Docker Registry` always uses the `HTTPS` protocol.
!!! tip "Docker Compose no longer needs to be installed separately"
Starting from V2, Docker Compose is part of the Docker CLI. The script integrates the installation of this [plugin](https://docs.docker.com/compose/install/linux) by default. Please use the `docker compose` command instead of `docker-compose`.
!!! quote "Built-in Registry Mirrors"
<div style="text-align: center" markdown>
<div style="font-size: 0.8rem"><strong>Available in Mainland China</strong></div>
| Site Name | Address | Description |
| :--: | :--: | :-- |
| 1ms Mirror | [docker.1ms.run](https://1ms.run "docker.1ms.run") | Enterprise mirror, CDN smart distribution, extremely fast, supports paid customization, recommended |
| Docker Proxy | [dockerproxy.net](https://dockerproxy.net "dockerproxy.net") | Created by ghproxy, highly available but slow, supports paid enterprise acceleration |
| DaoCloud | [docker.m.daocloud.io](https://docker.m.daocloud.io "docker.m.daocloud.io") | Well-known enterprise mirror, highly available and fast, now whitelist only |
| 1Panel Mirror | [docker.1panel.live](https://1panel.cn "docker.1panel.live") | Enterprise product self-use mirror |
<blockquote style="border-left: none !important">This open source project is not suitable for collecting personal self-built registry accelerators. If needed, you can use command options to specify your own.</blockquote>
<div style="font-size: 0.8rem; margin-top: 1rem"><strong>Others</strong></div>
| Site Name | Address | Site Name | Address |
| :- | :-: | :- | :-: |
| Alibaba Cloud (Hangzhou) | [registry.cn-hangzhou.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-hangzhou.aliyuncs.com") | Alibaba Cloud (Japan - Tokyo) | [registry.ap-northeast-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.ap-northeast-1.aliyuncs.com") |
| Alibaba Cloud (Shanghai) | [registry.cn-shanghai.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-shanghai.aliyuncs.com") | Alibaba Cloud (Singapore) | [registry.ap-southeast-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.ap-southeast-1.aliyuncs.com") |
| Alibaba Cloud (Qingdao) | [registry.cn-qingdao.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-qingdao.aliyuncs.com") | Alibaba Cloud (Malaysia - Kuala Lumpur) | [registry.ap-southeast-3.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.ap-southeast-3.aliyuncs.com") |
| Alibaba Cloud (Beijing) | [registry.cn-beijing.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-beijing.aliyuncs.com") | Alibaba Cloud (Indonesia - Jakarta) | [registry.ap-southeast-5.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.ap-southeast-5.aliyuncs.com") |
| Alibaba Cloud (Zhangjiakou) | [registry.cn-zhangjiakou.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-zhangjiakou.aliyuncs.com") | Alibaba Cloud (Germany - Frankfurt) | [registry.eu-central-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.eu-central-1.aliyuncs.com") |
| Alibaba Cloud (Hohhot) | [registry.cn-huhehaote.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-huhehaote.aliyuncs.com") | Alibaba Cloud (UK - London) | [registry.eu-west-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.eu-west-1.aliyuncs.com") |
| Alibaba Cloud (Ulanqab) | [registry.cn-wulanchabu.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-wulanchabu.aliyuncs.com") | Alibaba Cloud (US West - Silicon Valley) | [registry.us-west-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.us-west-1.aliyuncs.com") |
| Alibaba Cloud (Shenzhen) | [registry.cn-shenzhen.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-shenzhen.aliyuncs.com") | Alibaba Cloud (US East - Virginia) | [registry.us-east-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.us-east-1.aliyuncs.com") |
| Alibaba Cloud (Heyuan) | [registry.cn-heyuan.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-heyuan.aliyuncs.com") | Alibaba Cloud (UAE - Dubai) | [registry.me-east-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.me-east-1.aliyuncs.com") |
| Alibaba Cloud (Guangzhou) | [registry.cn-guangzhou.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-guangzhou.aliyuncs.com") | Google Cloud (North America) | [gcr.io](https://cloud.google.com/artifact-registry/docs/transition/gcr-repositories?hl=zh-cn "https://gcr.io") |
| Alibaba Cloud (Chengdu) | [registry.cn-chengdu.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-chengdu.aliyuncs.com") | Google Cloud (Asia) | [asia.gcr.io](https://cloud.google.com/artifact-registry/docs/transition/gcr-repositories?hl=zh-cn "https://asia.gcr.io") |
| Alibaba Cloud (Hong Kong) | [registry.cn-hongkong.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-hongkong.aliyuncs.com") | Google Cloud (Europe) | [eu.gcr.io](https://cloud.google.com/artifact-registry/docs/transition/gcr-repositories?hl=zh-cn "https://eu.gcr.io") |
| Tencent Cloud | [mirror.ccs.tencentyun.com](https://cloud.tencent.com/document/product/1207/45596 "https://mirror.ccs.tencentyun.com") | Docker Hub | [registry.hub.docker.com](https://hub.docker.com/ "registry.hub.docker.com") |
<blockquote style="border-left: none !important">Note: Registry mirrors from domestic cloud computing companies are only for their own business. Instances in mainland China may still not be able to access Docker Hub.</blockquote>
</div>
- ### Command Options (Advanced Usage)
| Name | Meaning | Value |
| :-: | :-: | :-: |
| `--source` | Specify `Docker CE` source address (domain or IP) | `address` |
| `--source-registry` | Specify registry mirror address (domain or IP) | `address` |
| `--branch` | Specify Docker CE repository | `repo name (see docs below)` |
| `--codename` | Specify Debian-based OS codename | `codename` |
| `--designated-version` | Specify `Docker CE` installation version | `version (see docs below)` |
| `--protocol` | Specify WEB protocol for `Docker CE` source | `http` or `https` |
| `--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` |
| `--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 |
> Full source format: `<WEB protocol>://<source address (domain or IP)>/<repository path>`
- #### Specify Docker CE Source Address
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --source mirror.example.com/docker-ce
```
> Note: The address path must include the Docker CE repository path, i.e., `docker-ce`.
- #### Specify Registry Mirror Address
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --source-registry registry.example.com
```
- #### Only Switch Registry Mirror
=== "Use Script for One-Click Replacement"
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
```
=== "Manual Replacement"
- Install the `jq` package
=== "Debian-based / openKylin"
``` bash
apt-get install -y jq
```
> `Debian` &nbsp; `Ubuntu` &nbsp; `Kali` &nbsp; `Linux Mint` &nbsp; `Deepin` &nbsp; `Zorin OS` &nbsp; `Armbian` &nbsp; `Proxmox VE` &nbsp; `Raspberry Pi OS` &nbsp; `openKylin`
For new systems, run `apt-get update` first.
=== "RedHat-based / openEuler / OpenCloudOS / Anolis OS"
``` bash
dnf install -y jq || yum install -y jq
```
> `Red Hat Enterprise Linux` &nbsp; `CentOS` &nbsp; `Rocky Linux` &nbsp; `AlmaLinux` &nbsp; `Fedora` &nbsp; `openEuler` &nbsp; `OpenCloudOS` &nbsp; `Anolis OS`
- Specify registry mirror address
> Manually replace `<example.registry.com>` with the registry address. See the address column in the "Built-in Registry Mirrors" table above.
``` bash
SOURCE_REGISTRY='"https://<example.registry.com>"'
```
You can also specify multiple registry mirrors, e.g., `SOURCE_REGISTRY='"https://example.registry.com","https://test.registry.com"'`, separated by commas.
- Replace registry mirror address
``` bash
[ -s "/etc/docker/daemon.json" ] || echo "{}" >/etc/docker/daemon.json
jq '.["registry-mirrors"] = ['"${SOURCE_REGISTRY}"']' /etc/docker/daemon.json >/etc/docker/daemon.json.tmp && mv /etc/docker/daemon.json.tmp
```
- Restart Docker service
``` bash
systemctl daemon-reload
[[ $(systemctl is-active docker) == "active" ]] && systemctl restart docker || systemctl enable --now docker
```
- #### Specify Docker CE 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
```
> Repository names are fixed: `centos`, `debian`, `fedora`, `raspbian`, `rhel`, `sles`, `static`, `ubuntu`
> See [official installation docs](https://docs.docker.com/engine/install) and [Docker CE official repo](https://download.docker.com/linux) for details.
- #### Specify Docker CE Installation Version
When specifying a version, the "install latest" option is ignored. Format: `major.minor.patch`, e.g., `27.4.1`.
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --designated-version 27.0.0
```
> If the specified version does not exist or is not supported on your system, the script will report an error and exit.
??? quote "How to view available versions"
=== "Debian-based"
``` bash
apt-cache madison docker-ce | awk '{print $3}' | grep -Eo "[0-9][0-9].[0-9]{1,2}.[0-9]{1,2}" | sort -t '.' -k1,1nr -k2,2nr -k3,3nr
```
> `Debian` &nbsp; `Ubuntu` &nbsp; `Kali` &nbsp; `Linux Mint` &nbsp; `Deepin` &nbsp; `Zorin OS` &nbsp; `Armbian` &nbsp; `Proxmox VE` &nbsp; `Raspberry Pi OS`
=== "RedHat-based / openEuler / OpenCloudOS / Anolis OS"
``` bash
dnf list docker-ce --showduplicates | sort -r | awk '{print $2}' | grep -Eo "[0-9][0-9].[0-9]{1,2}.[0-9]{1,2}" | sort -t '.' -k1,1nr -k2,2nr -k3,3nr
```
> `Red Hat Enterprise Linux` &nbsp; `CentOS` &nbsp; `Rocky Linux` &nbsp; `AlmaLinux` &nbsp; `Fedora` &nbsp; `openEuler` &nbsp; `OpenCloudOS` &nbsp; `Anolis OS`
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).
- #### 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) \
--source mirror.example.com/docker-ce \
--source-registry registry.hub.docker.com \
--protocol http \
--use-intranet-source false \
--install-latest true \
--close-firewall true \
--ignore-backup-tips
```
> If you get an "invalid option" error, check the option validity and whitespace encoding. Each option is written on a separate line for readability.
- #### Pure Mode
This feature is for developers. When enabled, script output is minimized. Recommended for use with other options in non-interactive mode.
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --pure-mode
```
!!! tip "Scrolling command logs may have unpredictable display issues, but no problems have been found so far."
- ### About Service Startup Errors
!!! quote ""
In non-fresh environments, you may encounter `Docker` service startup failures after running the script. It is recommended to reinstall to resolve this. Uninstalling will not delete local images or container data.
Uninstall commands:
=== "Debian-based"
``` bash
apt-get remove -y docker* containerd.io runc && apt-get autoremove
```
> `Debian` &nbsp; `Ubuntu` &nbsp; `Kali` &nbsp; `Linux Mint` &nbsp; `Deepin` &nbsp; `Zorin OS` &nbsp; `Armbian` &nbsp; `Proxmox VE` &nbsp; `Raspberry Pi OS`
=== "RedHat-based / openEuler / OpenCloudOS / Anolis OS"
``` bash
yum remove -y docker* containerd.io podman* runc
```
> `Red Hat Enterprise Linux` &nbsp; `CentOS` &nbsp; `Rocky Linux` &nbsp; `AlmaLinux` &nbsp; `Fedora` &nbsp; `openEuler` &nbsp; `OpenCloudOS` &nbsp; `Anolis OS`
After uninstalling, simply rerun the script to install.

20
docs/sponsor/index.en.md Normal file
View File

@@ -0,0 +1,20 @@
---
hide:
- navigation
- toc
- footer
---
--8<-- "docs/sponsor/main.html"
#
<figure style="margin: 0 auto" markdown>
<figcaption><span style="font-size: 0.8rem; font-style: normal !important"><strong>Become a Sponsor</strong></span></figcaption>
<figcaption class="no-select">
<button class="md-button md-button--primary" style="padding: 4px 8px 0 8px; border-radius: 5px" title="https://afdian.com/a/SuperManito" onclick="window.open('https://afdian.com/a/SuperManito')">
<img src="/assets/images/sponsor/ifdian.png" alt="ifdian" style="width: 120px" />
</button>
</figcaption>
<figcaption><p style="color: var(--md-default-fg-color--light)">Please go to the author's afdian homepage to view instructions and contact the author</p></figcaption>
</figure>

View File

@@ -69,12 +69,14 @@
</div>
<style>
/* 默认中文 */
.sponsor-text-1::after { content: "赞助商"; }
.sponsor-text-2::after { content: "特别感谢"; }
.sponsor-text-3::after { content: "本项目已加入 JetBrains & Netlify 开源项目计划"; }
/* 繁体中文 */
[lang="en"] .sponsor-text-1::after { content: "Sponsors"; }
[lang="en"] .sponsor-text-2::after { content: "Special Thanks"; }
[lang="en"] .sponsor-text-3::after { content: "This project has joined the JetBrains & Netlify open source program"; }
[lang="zh-Hant"] .sponsor-text-1::after { content: "贊助商"; }
[lang="zh-Hant"] .sponsor-text-2::after { content: "特別感謝"; }
[lang="zh-Hant"] .sponsor-text-3::after { content: "本項目已加入 JetBrains & Netlify 開源項目計劃"; }

View File

@@ -3,14 +3,19 @@
--md-code-font: 'SF Mono';
--md-primary-fg-color--light: hsl(0, 0%, 100%, 0.33);
--md-default-bg-color--light: #fff;
--md-default-bg-color--dark: hsla(var(--md-hue), 15%, 14%, 1);
--view-transition-z-index-foreground: 999;
--view-transition-z-index-background: 1;
--hero-background-image: linear-gradient(90deg, rgb(104 104 104) 50%, rgb(104 104 104) 50%);
--navbar-background: hsla(240, 9%, 75%, 0.33);
--compoent-border-radius: 8px;
}
[data-md-color-scheme='slate'] {
--hero-background-image: linear-gradient(90deg, rgb(114 114 114) 50%, rgb(114 114 114) 50%);
--md-default-bg-color: rgb(18, 18, 18);
--md-code-bg-color: hsla(var(--md-hue), 5%, 12%, 1);
--md-footer-bg-color--dark: hsla(var(--md-hue), 5%, 12%, 1);
--navbar-background: hsla(var(--md-hue), 5%, 19%, 0.33);
--hero-background-image: linear-gradient(90deg, rgb(88 88 88) 50%, rgb(88 88 88) 50%);
}
[data-md-color-primary=white] {
@@ -37,9 +42,9 @@
}
/* 告诫 */
.md-typeset .admonition,
.md-typeset details {
border-radius: var(--compoent-border-radius) !important;
border-width: 0;
border-left-width: 4px;
}
@@ -50,6 +55,11 @@
border-color: var(--md-default-fg-color--lightest) !important;
}
[data-md-color-scheme='slate'] .md-typeset .quote>.admonition-title,
.md-typeset .quote>summary {
background-color: #6f6f6f1a !important;
}
[data-md-color-scheme='slate'] .md-typeset .admonition,
[data-md-color-scheme='slate'] .md-typeset details {
box-shadow: var(--md-shadow-z2) !important;
@@ -108,21 +118,17 @@
}
.md-header {
background-color: hsla(240, 9%, 75%, 0.33);
background-color: var(--navbar-background) !important;
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
}
[data-md-color-scheme='slate'] .md-header {
background-color: hsla(var(--md-hue), 15%, 9%, 0.33);
}
.md-tabs {
background-color: hsla(240, 9%, 75%, 0.33);
background-color: var(--navbar-background) !important;
}
[data-md-color-scheme='slate'] .md-tabs {
background-color: hsla(var(--md-hue), 15%, 9%, 0.33);
.tabbed-content .highlight {
padding-top: .4rem;
}
.md-banner {
@@ -134,20 +140,30 @@
background-color: hsla(var(--md-hue), 15%, 9%, 0.83);
}
@media screen and (max-width: 768px) {
.md-typeset .admonition .tabbed-set {
width: calc(100vw - 3rem - 2px);
}
.tabbed-set {
overflow: hidden !important;
}
.md-typeset .admonition .tabbed-labels {
width: calc(100vw - 3rem - 1.2rem);
padding-left: .6rem;
}
.highlight code {
border-radius: var(--compoent-border-radius) !important;
}
[dir=ltr] .md-header__title {
margin-left: 6px;
margin-right: .4rem;
}
.highlight span.filename+pre>code {
border-top-left-radius: 0 !important;
border-top-right-radius: 0 !important;
}
.highlight span.filename {
border-radius: var(--compoent-border-radius) var(--compoent-border-radius) 0 0 !important;
background-color: var(--md-default-bg-color) !important;
border-top: var(--md-default-fg-color--lightest) 1px solid !important;
border-left: var(--md-default-fg-color--lightest) 1px solid !important;
border-right: var(--md-default-fg-color--lightest) 1px solid !important;
border-bottom: none !important;
}
.md-typeset .md-button {
border-radius: 6px !important;
}
.md-tabs__link {
@@ -171,22 +187,22 @@
}
.md-select__inner {
border-radius: 8px;
border-radius: var(--compoent-border-radius);
}
.md-select__inner .md-select__list {
padding: 8px !important;
padding: var(--compoent-border-radius) !important;
font-size: .75rem !important;
}
.md-select__inner .md-select__list .md-select__item {
margin: 1px;
border-radius: 8px;
border-radius: var(--compoent-border-radius);
transition: background-color 0.2s;
}
[dir=ltr] .md-select__inner .md-select__list .md-select__item .md-select__link {
border-radius: 8px;
border-radius: var(--compoent-border-radius);
padding-left: 12px !important;
padding-right: 12px !important;
}
@@ -297,11 +313,11 @@
}
.sponsor .sponsor-item:hover {
background-color: rgba(0, 0, 0, 0.03);
background-color: rgba(0, 0, 0, 0.05);
}
[data-md-color-scheme="slate"] .sponsor .sponsor-item:hover {
background-color: rgba(240, 241, 244, 0.024);
background-color: rgba(240, 241, 244, 0.034);
}
.sponsor .sponsor-item img {
@@ -313,11 +329,16 @@
.sponsor-item-toc {
margin: 0;
padding: 14px !important;
height: 62px !important;
border-radius: 4px !important;
height: 56px !important;
max-height: 56px !important;
border-radius: 6px !important;
box-sizing: border-box;
flex: 0 0 calc(50% - 2px) !important;
background-color: var(--md-code-bg-color);
background-color: #f5f5f5;
}
[data-md-color-scheme="slate"] .sponsor-item-toc {
background-color: rgb(22, 22, 22);
}
.sponsor-item-toc:hover {
@@ -341,11 +362,13 @@
object-fit: contain;
filter: grayscale(1) invert(0.6);
opacity: 0.7;
vertical-align: middle;
}
[data-md-color-scheme="slate"] .sponsor-item-toc img {
filter: brightness(1.3) grayscale(1);
opacity: 0.75;
vertical-align: middle;
}
.sponsor-item-toc:hover img {
@@ -432,8 +455,16 @@
margin-right: 0 !important;
}
.t-table {
--td-bg-color-container: var(--md-default-bg-color) !important;
}
.t-table th,
.t-table thead td {
color: var(--md-default-fg-color);
}
[theme-mode="dark"] .t-table {
--td-bg-color-container: hsla(var(--md-hue), 15%, 14%, 1) !important;
--td-component-border: hsla(225deg, 15%, 95%, 0.12) !important;
}
@@ -460,15 +491,13 @@
[data-termynal] {
color: #000 !important;
background: #f7f7f7 !important;
background: var(--md-code-bg-color) !important;
box-shadow: var(--md-shadow-z2);
font-size: 14px !important;
}
[data-md-color-scheme="slate"] [data-termynal] {
color: #eeeeee !important;
background: #21252c !important;
box-shadow: var(--md-shadow-z2);
}
button[data-terminal-control] {

View File

@@ -8,7 +8,7 @@
{% block announce %}
<span style="font-size: .6rem !important;">{{
'如果您覺得這個項目不錯對您有幫助的話,請點擊倉庫右上角的 Star 並分享給更多的朋友' if i18n_page_locale == 'zh-Hant' else '如果觉得这个项目不错对您有所帮助的话,请点击仓库右上角的 Star 并分享给更多的朋友'
'If you think this project is good and helpful to you, please click the Star in the upper right corner of the warehouse and share it with more friends.' if i18n_page_locale == 'en' else '如果您覺得這個項目不錯對您有幫助的話,請點擊倉庫右上角的 Star 並分享給更多的朋友' if i18n_page_locale == 'zh-Hant' else '如果觉得这个项目不错对您有所帮助的话,请点击仓库右上角的 Star 并分享给更多的朋友'
}}</span>
&nbsp;&nbsp;<span class="twemoji heart" style="font-size: .6rem;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 20.408c-.492.308-.903.546-1.192.709q-.23.129-.463.252h-.002a.75.75 0 0 1-.686 0 17 17 0 0 1-.465-.252 31 31 0 0 1-4.803-3.34C3.8 15.572 1 12.331 1 8.513 1 5.052 3.829 2.5 6.736 2.5 9.03 2.5 10.881 3.726 12 5.605 13.12 3.726 14.97 2.5 17.264 2.5 20.17 2.5 23 5.052 23 8.514c0 3.818-2.801 7.06-5.389 9.262A31 31 0 0 1 14 20.408"></path></svg></span>
{% endblock %}

View File

@@ -14,7 +14,7 @@
data-emit-metadata="0"
data-input-position="top"
data-theme="preferred_color_scheme"
data-lang="{{'zh-Hant' if i18n_page_locale == 'zh-Hant' else 'zh-CN'}}"
data-lang="{{'en' if i18n_page_locale == 'en' else 'zh-Hant' if i18n_page_locale == 'zh-Hant' else 'zh-CN'}}"
data-loading="lazy"
crossorigin="anonymous"
async

View File

@@ -4,7 +4,9 @@
{{ config.copyright }}
{% endif %}
</br>
{% if i18n_page_locale == 'zh-Hant' %}
{% if i18n_page_locale == 'en' %}
This website is deployed by Netlify and provides global CDN edge network acceleration.
{% elif i18n_page_locale == 'zh-Hant' %}
本網站由 Netlify 部署並提供全球 CDN 邊緣網路加速
{% else %}
本网站由 Netlify 部署并提供全球 CDN 边缘网络加速

View File

@@ -1,4 +1,4 @@
<a class="md-header__button md-icon" href="https://www.coze.cn/store/agent/7503197985959428108?bot_id=true" target="_blank" title="{{'Coze AI 助手' if i18n_page_locale == 'zh-Hant' else '扣子 AI 助手'}}">
<a class="md-header__button md-icon" 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 助手'}}">
<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>
@@ -8,7 +8,7 @@
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search" onsubmit="return false;">
<input type="text" class="md-search__input" style="cursor: pointer !important;" name="query" aria-label="AI 搜索" placeholder="AI 搜索" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" readonly required onclick="window.openOramaSearch()" />
<input type="text" class="md-search__input" style="cursor: pointer !important;" name="query" aria-label="{{'AI Search' if i18n_page_locale == 'en' else 'AI 搜尋' if i18n_page_locale == 'zh-Hant' else 'AI 搜索'}}" placeholder="{{'AI Search' if i18n_page_locale == 'en' else 'AI 搜尋' if i18n_page_locale == 'zh-Hant' else 'AI 搜索'}}" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" readonly required onclick="window.openOramaSearch()" />
<label class="md-search__icon md-icon" for="__search" onclick="window.openOramaSearch()"> {% set icon = config.theme.icon.search or "material/magnify" %} {% include ".icons/" ~ icon ~ ".svg" %} {% set icon = config.theme.icon.previous or "material/arrow-left" %} {% include ".icons/" ~ icon ~ ".svg" %} </label>
</form>
<div class="md-search__output">

View File

@@ -11,7 +11,7 @@
<div class="md-content" data-md-component="content">
<div class="sponsor sponsor-toc">
<div class="sponsor-label">
<strong>{{'贊助商' if i18n_page_locale == 'zh-Hant' else '赞助商'}}</strong>
<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 服务器运维管理面板">
@@ -60,9 +60,9 @@
<img src="/assets/images/sponsor/runxinyun-light.png#only-light" alt="润信云" style="filter: grayscale(1) invert(0.5)" />
<img src="/assets/images/sponsor/runxinyun-dark.png#only-dark" alt="润信云" style="filter: grayscale(1) invert(0.4)" />
</a>
<!-- <a class="sponsor-item sponsor-item-toc" target="_blank" title="{{'成為贊助商' if i18n_page_locale == 'zh-Hant' else '成为赞助商'}}" href="/sponsor/">
<!-- <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/">
<span style="font-size: 0.6rem; opacity: 0.5">
<strong>{{'成為贊助商' if i18n_page_locale == 'zh-Hant' else '成为赞助商'}}</strong>
<strong>{{'Become a Sponsor' if i18n_page_locale == 'en' else '成為贊助商' if i18n_page_locale == 'zh-Hant' else '成为赞助商'}}</strong>
</span>
</a> -->
</div>

734
docs/use/index.en.md Normal file
View File

@@ -0,0 +1,734 @@
---
hide:
- navigation
- footer
---
???+ question "Why do you see this notice?"
The script of this project currently mainly serves Simplified Chinese users, but from the very beginning it was defined as a universal mirror switching script, providing many command options for customization, which is also one of the reasons why this project is now available to users of other languages. The script output is currently fixed in Simplified Chinese. With feedback and usage from users of other languages, the script may support Traditional Chinese and English in the future.
The documentation is translated with tools, and some professional terms below may be inaccurate. Corrections are welcome.
## One-Click Execution Command
=== ":material-home-city: Mainland China"
!!! quote ""
=== ":linuxmirrors: Official Site (Recommended)"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh)
```
=== ":simple-github: GitHub"
``` bash
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh)
```
=== ":simple-gitee: Gitee (Mirror Repository)"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)
```
> Real-time sync, no delay. Recommended for use in mainland China network environments.
=== ":gitcode: GitCode (Mirror Repository)"
``` bash
bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/ChangeMirrors.sh)
```
> This project has joined the GitHub acceleration plan, with a 1-hour sync delay.
=== ":simple-jsdelivr: jsDelivr (CDN)"
``` bash
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh)
```
=== ":tencent-cloud: Tencent Cloud EO (CDN)"
``` bash
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh)
```
> Not supported in mainland China network environments.
=== ":material-earth: International Regions"
!!! quote ""
=== ":linuxmirrors: Official Site (Recommended)"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --abroad # (1)!
```
1. Use the `--abroad` command option to use overseas mirrors
=== ":simple-github: GitHub"
``` bash
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --abroad # (1)!
```
1. Use the `--abroad` command option to use overseas mirrors
=== ":simple-gitee: Gitee (Mirror Repository)"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad # (1)!
```
1. Use the `--abroad` command option to use overseas mirrors
> Real-time sync, no delay. Recommended for use in mainland China network environments.
=== ":gitcode: GitCode (Mirror Repository)"
``` bash
bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad # (1)!
```
1. Use the `--abroad` command option to use overseas mirrors
> This project has joined the GitHub acceleration plan, with a 1-hour sync delay.
=== ":simple-jsdelivr: jsDelivr (CDN)"
``` bash
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --abroad # (1)!
```
1. Use the `--abroad` command option to use overseas mirrors
=== ":tencent-cloud: Tencent Cloud EO (CDN)"
``` bash
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --abroad # (1)!
```
1. Use the `--abroad` command option to use overseas mirrors
> Not supported in mainland China network environments.
=== ":material-library: China Education Network"
!!! quote ""
=== ":linuxmirrors: Official Site (Recommended)"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --edu # (1)!
```
1. Use the `--edu` command option to use China education network mirrors
=== ":simple-github: GitHub"
``` bash
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --edu # (1)!
```
1. Use the `--edu` command option to use China education network mirrors
=== ":simple-gitee: Gitee (Mirror Repository)"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --edu # (1)!
```
1. Use the `--edu` command option to use China education network mirrors
> Real-time sync, no delay. Recommended for use in mainland China network environments.
=== ":gitcode: GitCode (Mirror Repository)"
``` bash
bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/ChangeMirrors.sh) --edu # (1)!
```
1. Use the `--edu` command option to use China education network mirrors
> This project has joined the GitHub acceleration plan, with a 1-hour sync delay.
=== ":simple-jsdelivr: jsDelivr (CDN)"
``` bash
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --edu # (1)!
```
1. Use the `--edu` command option to use China education network mirrors
=== ":tencent-cloud: Tencent Cloud EO (CDN)"
``` bash
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --edu # (1)!
```
1. Use the `--edu` command option to use China education network mirrors
> Not supported in mainland China network environments.
!!! tip "Usage Help"
The tabs represent the built-in mirror types and script sources. Please check whether your target mirror supports your operating system before use. You can check in the [Mirror List](../mirrors/index.md).
By default, the original mirror configuration will be automatically backed up. For more details, see the documentation below. If you are confused by some options during use, just press Enter all the way after selecting the mirror, which is the best practice.
!!! quote "About Mirror Selection (Must Read for New Users)"
If you are not familiar with these mirrors, it is recommended to use `Aliyun (high compatibility, strong availability)` or `USTC (fast speed)`. Don't worry about speed tests, the built-in mirrors generally do not differ much.
This project script is an automated operation and maintenance tool. It does not subjectively rank or customize mirrors. User choice should be free, which is also to better continue the spirit of open source software.
<div class="grid cards" markdown>
- :material-numeric-1:{style="color: #3CA7E5" .lg} __Run the script as `ROOT` user__
---
Switch command: `sudo -i` or `su root`. Different systems use different commands because some systems do not set a password for the ROOT account during initial installation (such as Ubuntu) or the system disables ROOT login by default.
- :material-numeric-2:{style="color: #3CA7E5" .lg} __It is recommended to use a modern `SSH` client__
---
If your terminal displays garbled Chinese, you will not be able to see the interactive content. Some GUI terminal apps may have unpredictable display issues. Some systems automatically enable SSH service; otherwise, see [how to enable SSH](#how-to-enable-ssh-remote-login).
- :material-numeric-3:{style="color: #3CA7E5" .lg} __If running the script for the first time on a new system__
---
The script relies on `curl` to fetch content, but some systems do not preinstall this package, resulting in `Command not found` errors. See [_About Command not found_](#about-command-not-found-error) below for installation. The script itself is unrelated to `curl` or `wget` and does not download any content.
- :material-numeric-4:{style="color: #3CA7E5" .lg} __Interactive configuration is required during script execution__
---
Use arrow keys ++arrow-up++++arrow-down++++arrow-left++++arrow-right++ or ++w++++a++++s++++d++ to control options and press ++enter++ to confirm. If interaction is abnormal, try resizing the terminal window and avoid full screen.
</div>
### FAQ
- #### About Command not found error
!!! quote ""
This error is caused by the system not having the `curl` package installed. Install it as follows:
=== "Debian-based / openKylin"
``` bash
apt-get install -y curl
```
> `Debian` &nbsp; `Ubuntu` &nbsp; `Kali` &nbsp; `Linux Mint` &nbsp; `Deepin` &nbsp; `Zorin OS` &nbsp; `Armbian` &nbsp; `Proxmox VE` &nbsp; `Raspberry Pi OS` &nbsp; `openKylin`
For new systems, run `apt-get update` first.
=== "RedHat-based / openEuler / OpenCloudOS / Anolis OS"
``` bash
dnf install -y curl || yum install -y curl
```
> `Red Hat Enterprise Linux` &nbsp; `CentOS` &nbsp; `Rocky Linux` &nbsp; `AlmaLinux` &nbsp; `Fedora` &nbsp; `openEuler` &nbsp; `OpenCloudOS` &nbsp; `Anolis OS`
=== "openSUSE"
``` bash
zypper install curl
```
=== "Arch Linux / Manjaro"
``` bash
pacman -S curl
```
=== "Alpine Linux"
``` bash
apk --no-cache add -f curl bash ncurses
```
=== "Gentoo"
``` bash
emerge --ask curl
```
=== "NixOS"
``` bash
nix-env -iA nixos.curl
```
??? question "Can't install? (Click to see more solutions)"
If your system's original mirror is invalid and you can't install `curl`, here are some emergency ways to fetch the script online:
=== "Download with Python"
Works for most systems (except `Alpine Linux`). If `python3` is missing, try `python`.
``` bash
python3 -c "import urllib.request; urllib.request.urlretrieve('https://linuxmirrors.cn/main.sh', 'main.sh')"
```
=== "Download with wget"
Usually, systems without `curl` also lack `wget`, so this may not work.
``` bash
wget https://linuxmirrors.cn/main.sh
```
=== "Download with browser"
If you have GUI access, open the link in a browser to download the script. Many systems preinstall Firefox.
Then run the script:
=== ":material-home-city: Mainland China"
``` bash
bash main.sh
```
=== ":material-earth: International Regions"
``` bash
bash main.sh --abroad
```
=== ":material-library: China Education Network"
``` bash
bash main.sh --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`.
- #### Backup of original mirrors
!!! quote ""
The script automatically backs up the original mirror configuration. The backup path is the original file or directory with `.bak` appended, e.g., `/etc/apt/sources.list => /etc/apt/sources.list.bak`. If a backup exists, you will be prompted whether to overwrite it.
- #### Restore backed up mirrors
!!! quote ""
=== "Debian-based / openKylin"
=== "Traditional format"
``` bash
cp -rf /etc/apt/sources.list.bak /etc/apt/sources.list
apt-get update
```
=== "DEB822 format"
``` bash
system_name="$(lsb_release -is | tr '[:upper:]' '[:lower:]')"
cp -rf "/etc/apt/sources.list.d/${system_name}.sources.bak" "/etc/apt/sources.list.d/${system_name}.sources"
apt-get update
```
> `Debian` &nbsp; `Ubuntu` &nbsp; `Kali` &nbsp; `Linux Mint` &nbsp; `Deepin` &nbsp; `Zorin OS` &nbsp; `Armbian` &nbsp; `Proxmox VE` &nbsp; `Raspberry Pi OS` &nbsp; `openKylin`
=== "RedHat-based / openEuler / OpenCloudOS / Anolis OS"
``` bash
cp -rf /etc/yum.repos.d.bak /etc/yum.repos.d
yum makecache
```
> `Red Hat Enterprise Linux` &nbsp; `CentOS` &nbsp; `Rocky Linux` &nbsp; `AlmaLinux` &nbsp; `Fedora` &nbsp; `openEuler` &nbsp; `OpenCloudOS` &nbsp; `Anolis OS`
=== "openSUSE"
``` bash
cp -rf /etc/zypp/repos.d.bak /etc/zypp/repos.d
zypper ref
```
=== "Arch Linux / Manjaro"
``` bash
cp -rf /etc/pacman.d/mirrorlist.bak /etc/pacman.d/mirrorlist
pacman -Sy
```
=== "Alpine Linux"
``` bash
cp -rf /etc/apk/repositories.bak /etc/apk/repositories
apk update -f
```
=== "Gentoo"
``` bash
cp -rf /etc/portage/make.conf.bak /etc/portage/make.conf
[ -d /etc/portage/repos.conf ] && cp -rf /etc/portage/repos.conf/gentoo.conf.bak /etc/portage/repos.conf/gentoo.conf
emerge --sync --quiet
```
=== "NixOS"
``` bash
cp -rf /etc/nix/nix.conf.bak /etc/nix/nix.conf
```
- #### How to enable SSH remote login
!!! quote ""
The commands and steps are for reference only and only cover some common distributions.
- Check if `SSH` service is installed
``` bash
ls /etc | grep ssh
```
> If this folder does not exist, SSH is not installed. Install the `openssh` package with your package manager.
> Note that package names may differ; you can use `openssh*` as a wildcard.
- Allow Root login
``` bash
cat /etc/ssh/sshd_config | grep -Eq "^[# ]?PermitRootLogin " ; [ $? -eq 0 ] && sed -i 's/^[# ]\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config || echo -e "\nPermitRootLogin yes" >> /etc/ssh/sshd_config
```
- Enable password authentication
``` bash
cat /etc/ssh/sshd_config | grep -Eq "^[# ]?PasswordAuthentication " ; [ $? -eq 0 ] && sed -i 's/^[# ]\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config || echo -e "\nPasswordAuthentication yes" >> /etc/ssh/sshd_config
```
- Start/restart `SSH` service
``` bash
ps -ef | grep -q ssh ; [ $? -eq 0 ] && systemctl restart sshd || systemctl enable --now sshd
```
> Service names may differ; if not `sshd`, try `ssh`.
- #### No arrow key interactive UI
!!! quote ""
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 ""
Many systems have multiple repositories. The script follows the system default. Disabled repositories will not be enabled after running the script, but their URLs will be updated. To enable them:
=== "Debian-based / openKylin"
By default, `deb-src` and `proposed` are disabled. Uncomment the relevant lines in `/etc/apt/sources.list` to enable.
> `Debian` &nbsp; `Ubuntu` &nbsp; `Kali` &nbsp; `Linux Mint` &nbsp; `Deepin` &nbsp; `Zorin OS` &nbsp; `Armbian` &nbsp; `Proxmox VE` &nbsp; `Raspberry Pi OS` &nbsp; `openKylin`
=== "RedHat-based / openEuler / OpenCloudOS / Anolis OS"
Some repos are disabled by default. Set `enabled=1` in the relevant repo files under `/etc/yum.repos.d`.
> `Red Hat Enterprise Linux` &nbsp; `CentOS` &nbsp; `Rocky Linux` &nbsp; `AlmaLinux` &nbsp; `Fedora` &nbsp; `openEuler` &nbsp; `OpenCloudOS` &nbsp; `Anolis OS`
=== "openSUSE"
Some repos are disabled by default. Set `enabled=1` in the relevant repo files under `/etc/zypp/repos.d`.
---
## Command Options (Advanced Usage)
| 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 (path) | `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` |
| `--print-diff` | Print diff before and after modification | `true` or `false` |
| `--only-epel` | Only switch EPEL repo | none |
| `--ignore-backup-tips` | Ignore backup overwrite prompt | none |
| `--pure-mode` | Pure mode, minimal output | none |
| `--help` | Show help menu | none |
> Full mirror format: `<WEB protocol>://<mirror address (domain or IP)>/<repo path>`
Below are some advanced usage examples
- ### Specify mirror address
``` { .bash .no-copy }
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --source mirror.example.com
```
- ### Specify mirror repository
The repository here refers to the path after the mirror address, i.e., the branch on the mirror site. Although all are called repositories, it is easy to confuse.
Main scenario: The target mirror site has a corresponding system repo but does not match the default rule in this script.
??? note "Default repo names for each OS (click to expand)"
The script does not adapt to unique repo names of a single mirror site for compatibility.
| 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" title="https://www.proxmox.com" 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.1em"></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.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` |
Example:
``` { .bash title="Use Aliyun mirror for Rocky Linux" }
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
--source mirrors.aliyun.com \
--branch rockylinux
```
The repo name for Rocky Linux on Aliyun is [`rockylinux`](https://mirrors.aliyun.com/rockylinux), not the default `rocky`, but you can override the default rule with the command option.
> Some systems configure multiple repos at once. See command options for details.
> Since the repo path is appended to the mirror address, you can use multi-level paths, e.g., `--branch "linux/debian"` -> `https://mirrors.example.com/linux/debian`
- ### Switch EPEL repo only
!!! info "EPEL (Extra Packages for Enterprise Linux) is an additional repo maintained by Fedora, mainly for Red Hat-based distributions except Fedora itself. Configuring EPEL is a common need and is recommended by default."
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
```
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.
- ### Restore official mirrors
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
```
> Some systems (e.g., `Arch Linux`) have no official mirror, so Aliyun will be used as a fallback.
- ### Usage examples for specific systems
- #### About CentOS EOL
The script adapts to EOL CentOS 7/8 and CentOS Stream 8.
<div class="grid cards" markdown>
- __Mainland China__
---
Use as normal; most Chinese mirrors sync [`CentOS Vault`](https://vault.centos.org).
- __International__
---
Use `Tencent Cloud` or `Aliyun` mirrors, or use `--use-official-source true` for the official repo.
</div>
EPEL 7 is also EOL and is supported by the script.
- #### Specify GNU/Linux Debian Security repo
For maximum security, use the official repo due to mirror sync delays.
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
--source-security security.debian.org \
--branch-security debian-security
```
- #### Specify Debian-based codename
Usually for switching system versions. Example:
=== "Upgrade GNU/Linux Debian to 12 Bookworm"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --codename bookworm
```
=== "Switch GNU/Linux Debian to testing branch"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --codename testing
```
After switching, run `apt-get dist-upgrade` and reboot, then rerun the script. Only changing the codename may cause compatibility issues later.
``` { .bash title="If the script can't set the codename, you can manually replace it after running" }
sed -i "s/$(lsb_release -cs)/your-codename/g" /etc/apt/sources.list
```
- #### Switch Ubuntu EOL version mirrors
!!! info "EOL means End Of Life. Non-LTS Ubuntu versions are supported for only 9 months. Old versions are removed from the main repo and may require using the `Ubuntu Old Releases` repo."
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) \
--source mirrors.ustc.edu.cn \
--branch ubuntu-old-releases
```
- #### Arch Linux use Chinese community repo
This script does not support this extra repo. For reference, use:
``` bash
SOURCE="https://mirrors.aliyun.com/archlinuxcn"
grep -q "\[archlinuxcn\]" /etc/pacman.conf || echo -e "[archlinuxcn]\nServer = ${SOURCE}/\$arch" >>/etc/pacman.conf
```
- ### 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) \
--source mirror.example.com \
--protocol http \
--use-intranet-source false \
--install-epel true \
--backup true \
--upgrade-software false \
--clean-cache false \
--ignore-backup-tips
```
> If you get an "invalid option" error, check the option validity and whitespace encoding. Each option is written on a separate line for readability.
- ### Pure mode
For developers: when enabled, script output is minimized. Recommended for use with other options in non-interactive mode.
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --pure-mode
```
!!! tip "Scrolling command logs may have unpredictable display issues, but no problems have been found so far."
---
## Customizing the Script
If you are a developer of another project and want to create a custom script based on this project, refer to the following. Some maintainers of China education network mirrors have already done so.
1. It is not recommended to modify the core logic. Keep in sync with the upstream source code. The script execution order is controlled by the `main` function and is clear.
2. You can simply remove irrelevant content, e.g., clear the mirror list arrays `mirror_list_(default|edu|abroad|extranet|intranet)`, e.g., `mirror_list_default=()`
3. To customize script output, modify the `run_start`, `run_end`, and `print_title` functions.
4. To add custom shell content, see the execution order in `main`. Insert content directly or encapsulate in a function.
5. To reduce script size, delete unnecessary content. Besides the mirror lists, you can remove some modules:
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`.
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` |
> 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

@@ -28,7 +28,7 @@ hide:
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh)
```
=== ":simple-gitee: Gitee 码云 (鏡像倉庫)"
=== ":simple-gitee: Gitee 碼雲 (鏡像倉庫)"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)

View File

@@ -167,8 +167,6 @@ plugins:
"社区": 社群
"赞助": 贊助
build: true
extra:
homepage: https://linuxmirrors.cn/zh-Hant
theme:
palette:
- media: "(prefers-color-scheme)"
@@ -180,6 +178,28 @@ plugins:
- media: "(prefers-color-scheme: dark)"
toggle:
name: 暗黑模式
- locale: en
name: English
nav_translations:
"介绍": Introduction
"使用方法": Use
"软件源列表": Mirrors List
"其它工具": Other Tools
"更新日志": Changelog
"社区": Community
"赞助": Sponsor
build: true
theme:
palette:
- media: "(prefers-color-scheme)"
toggle:
name: Follow System
- media: "(prefers-color-scheme: light)"
toggle:
name: Light Mode
- media: "(prefers-color-scheme: dark)"
toggle:
name: Dark Mode
- search:
# lang: en
separator: '[\s\-,:!=\[\]()"/]+|(?!\b)(?=[A-Z][a-z])|\.(?!\d)|&[lg]t;'