mirror of
https://gitee.com/SuperManito/LinuxMirrors
synced 2025-12-05 07:40:25 +08:00
新增适配 openSUSE & 一些优化
This commit is contained in:
@@ -2,54 +2,58 @@
|
||||
|
||||
- #### __GNU/Linux 一键更换国内软件源脚本__ <!-- {docsify-ignore} -->
|
||||
- #### __本项目旨在为从事计算机相关行业的朋友们提供便利__ <!-- {docsify-ignore} -->
|
||||
- #### __理论支持所有架构的环境,ARM 环境已经过测试__ <!-- {docsify-ignore} -->
|
||||
- #### __理论支持所有架构的环境,ARM64 环境已经过测试__ <!-- {docsify-ignore} -->
|
||||
|
||||
## :fa-brands fa-linux: 适配系统
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td rowspan="10"> 支持<br/>版本<br/>
|
||||
<td rowspan="11"> 支持<br/>版本<br/>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.debian.org"><img src="./img/icon/debian.svg" width="16" height="16"/></a> Debian</td>
|
||||
<td><a href="https://www.debian.org" target="_blank"><img src="./img/icon/debian.svg" width="16" height="16" style="vertical-align: -0.15em"/></a> Debian</td>
|
||||
<td align="center">8.0 ~ 11</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://cn.ubuntu.com"><img src="./img/icon/ubuntu.svg" width="16" height="16"/></a> Ubuntu</td>
|
||||
<td><a href="https://cn.ubuntu.com" target="_blank"><img src="./img/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"/></a> Ubuntu</td>
|
||||
<td align="center">16.04 ~ 23</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.kali.org"><img src="./img/icon/kali.svg" width="16" height="16"/></a> Kali Linux</td>
|
||||
<td><a href="https://www.kali.org" target="_blank"><img src="./img/icon/kali.svg" width="16" height="16" style="vertical-align: -0.15em"/></a> Kali Linux</td>
|
||||
<td align="center">2.0 ~ 2023</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://access.redhat.com/products/red-hat-enterprise-linux"><img src="./img/icon/redhat.svg" width="16" height="16"/></a> Red Hat Enterprise Linux</td>
|
||||
<td><a href="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="./img/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.15em"/></a> Red Hat Enterprise Linux</td>
|
||||
<td align="center">7.0 ~ 8.5</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.centos.org/centos-linux"><img src="./img/icon/centos.svg" width="16" height="16"/></a> CentOS</td>
|
||||
<td><a href="https://www.centos.org/centos-linux" target="_blank"><img src="./img/icon/centos.svg" width="16" height="16" style="vertical-align: -0.15em"/></a> CentOS</td>
|
||||
<td align="center">7.0 ~ 8.5</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.centos.org/centos-stream"><img src="./img/icon/centos.svg" width="16" height="16"/></a> CentOS Stream</td>
|
||||
<td><a href="https://www.centos.org/centos-stream" target="_blank"><img src="./img/icon/centos.svg" width="16" height="16" style="vertical-align: -0.15em"/></a> CentOS Stream</td>
|
||||
<td align="center">8 ~ 9</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://rockylinux.org"><img src="./img/icon/rocky.svg" width="16" height="16"/></a> Rocky Linux</td>
|
||||
<td><a href="https://rockylinux.org" target="_blank"><img src="./img/icon/rocky.svg" width="16" height="16" style="vertical-align: -0.15em"/></a> Rocky Linux</td>
|
||||
<td align="center">8.0 ~ 9</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://fedoraproject.org/zh-Hans"><img src="./img/icon/fedora.ico" width="16" height="16"/></a> Fedora</td>
|
||||
<td><a href="https://fedoraproject.org/zh-Hans" target="_blank"><img src="./img/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"/></a> Fedora</td>
|
||||
<td align="center">28 ~ 37</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.openeuler.org/zh"><img src="./img/icon/openEuler.ico" width="16" height="16"/></a> openEuler</td>
|
||||
<td><a href="https://www.openeuler.org/zh" target="_blank"><img src="./img/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.15em"/></a> openEuler</td>
|
||||
<td align="center">21.03 ~ 23</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.opensuse.org" target="_blank"><img src="./img/icon/opensuse.svg" width="16" height="16" style="vertical-align: -0.25em"/></a> openSUSE</td>
|
||||
<td align="center">Leep 15 / Tumbleweed</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
> [!NOTE|label:说明]
|
||||
> 目前仅支持上述基于 Debian、RedHat、openEuler 的发行版和及其部分衍生版本
|
||||
> 当前支持上述基于 Debian、RedHat、openEuler、openSUSE 的发行版和及其部分衍生版本,不再此支持范围内的操作系统请勿运行本脚本
|
||||
|
||||
## <i class="fa-solid fa-wheelchair-move fa-bounce" style=" --fa-bounce-start-scale-x: 1; --fa-bounce-start-scale-y: 1; --fa-bounce-jump-scale-x: 1; --fa-bounce-jump-scale-y: 1; --fa-bounce-land-scale-x: 1; --fa-bounce-land-scale-y: 1; " ></i> 使用方法
|
||||
|
||||
@@ -57,39 +61,42 @@
|
||||
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)
|
||||
```
|
||||
|
||||
- ### 注意事项
|
||||
- ### 注意事项
|
||||
|
||||
1. 完整复制上面的命令到终端按回车键即可执行,若无法安装 `curl` 软件包可复制源码到本地后通过 `bash` 手动执行
|
||||
2. 为了适配所有环境,建议使用 `Root` 用户执行脚本,切换命令为 `sudo -i` ,如遇报错请查看常见问题与帮助
|
||||
2. 为了适配所有环境,需要使用 `Root` 用户执行脚本,切换命令为 `su root` ,如遇报错请查看常见问题与帮助
|
||||
3. 如果您使用的环境没有安装或不支持简体中文环境,请通过 `SSH客户端工具` 使用,否则将无法正确选择交互内容
|
||||
4. 执行脚本过程中会自动备份原有源无需手动备份,期间会在终端输出多个主观选择交互内容,可按回车键快速确定
|
||||
5. 脚本支持在原有源配置错误或者不存在的情况下使用,并且可以重复使用;脚本变更的软件源默认使用 `HTTP` 协议
|
||||
|
||||
> [!WARNING|label:未启用的源]
|
||||
> **Debian** 系 Linux 默认禁用了**源码仓库**和**预发布软件源**,若需启用请将 `/etc/apt/sources.list` 文件中相关内容的所在行**取消注释**
|
||||
> **RedHat** 系 Linux 部分仓库**默认没有启用**,若需启用请将 `/etc/yum.repos.d` 目录下相关 **repo** 文件中的 `enabled` 值修改为 `1`
|
||||
> **RedHat** 系 Linux 部分仓库**默认没有启用**,若需启用请将 `/etc/yum.repos.d` 目录下相关 **repo** 文件中的 `enabled` 值修改为 `1`
|
||||
> **openEuler** 系 Linux 部分仓库**默认没有启用**,若需启用请将 `/etc/yum.repos.d` 目录下相关 **repo** 文件中的 `enabled` 值修改为 `1`
|
||||
> **openSUSE** 系 Linux 部分仓库**默认没有启用**,若需启用请将 `/etc/zypp/repos.d` 目录下相关 **repo** 文件中的 `enabled` 值修改为 `1`
|
||||
|
||||
- ### <i class="fa-solid fa-list-ol fa-fade" style="--fa-animation-duration: 2s; --fa-fade-opacity: 0.6;" ></i> 软件源
|
||||
|
||||
| | 镜像站名称 | 镜像站地址 | IPv6 | Kali Linux | Rocky Linux | Fedora | openEuler | EPEL |
|
||||
| :---: | :---------------: | :-----------------------------------------------------------------------: | :---: | :--------: | :---------: | :----: | :-------: | :---: |
|
||||
| 1 | 阿里云 | [mirrors.aliyun.com](https://mirrors.aliyun.com) | ✓ | ✓ | | ✓ | ✓ | ✓ |
|
||||
| 2 | 腾讯云 | [mirrors.tencent.com](https://mirrors.tencent.com) | ✓ | ✓ | ✓ | ✓ | | ✓ |
|
||||
| 3 | 华为云 | [mirrors.huaweicloud.com](https://mirrors.huaweicloud.com) | ✓ | ✓ | | ✓ | ✓ | ✓ |
|
||||
| 4 | 网易 | [mirrors.163.com](https://mirrors.163.com) | | | ✓ | ✓ | ✓ | |
|
||||
| 5 | 搜狐 | [mirrors.sohu.com](https://mirrors.sohu.com) | | | | ✓ | | |
|
||||
| 6 | 清华大学 | [mirrors.tuna.tsinghua.edu.cn](https://mirrors.tuna.tsinghua.edu.cn) | ✓ | ✓ | | ✓ | ✓ | ✓ |
|
||||
| 7 | 北京大学 | [mirrors.pku.edu.cn](https://mirrors.pku.edu.cn/Mirrors) | ✓ | | | | ✓ | ✓ |
|
||||
| 8 | 浙江大学 | [mirrors.zju.edu.cn](https://mirrors.zju.edu.cn) | | ✓ | ✓ | ✓ | ✓ | ✓ |
|
||||
| 9 | 南京大学 | [mirrors.nju.edu.cn](https://mirrors.nju.edu.cn) | | ✓ | ✓ | ✓ | ✓ | ✓ |
|
||||
| 10 | 重庆大学 | [mirrors.cqu.edu.cn](https://mirrors.cqu.edu.cn) | | ✓ | | ✓ | | ✓ |
|
||||
| 11 | 兰州大学 | [mirror.lzu.edu.cn](https://mirror.lzu.edu.cn) | ✓ | | ✓ | ✓ | ✓ | ✓ |
|
||||
| 12 | 上海交通大学 | [mirror.sjtu.edu.cn](https://mirror.sjtu.edu.cn) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
||||
| 13 | 哈尔滨工业大学 | [mirrors.hit.edu.cn](https://mirrors.hit.edu.cn) | ✓ | ✓ | | | ✓ | ✓ |
|
||||
| 14 | 中国科学技术大学 | [mirrors.ustc.edu.cn](https://mirrors.ustc.edu.cn) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
||||
| 15 | 中国科学院软件研究所 | [mirror.iscas.ac.cn](https://mirror.iscas.ac.cn) | | ✓ | ✓ | ✓ | ✓ | ✓ |
|
||||
| | 镜像站名称 | 镜像站地址 | IPv6 | Kali Linux | Rocky Linux | Fedora | openEuler | openSUSE | EPEL |
|
||||
| :---: | :---------------: | :------------------------------------------------------------------: | :---: | :--------: | :---------: | :----: | :-------: | :------: | :---: |
|
||||
| 1 | 阿里云 | [mirrors.aliyun.com](https://mirrors.aliyun.com) | ✓ | ✓ | | ✓ | ✓ | | ✓ |
|
||||
| 2 | 腾讯云 | [mirrors.tencent.com](https://mirrors.tencent.com) | ✓ | ✓ | ✓ | ✓ | | | ✓ |
|
||||
| 3 | 华为云 | [mirrors.huaweicloud.com](https://mirrors.huaweicloud.com) | ✓ | ✓ | | ✓ | ✓ | | ✓ |
|
||||
| 4 | 网易 | [mirrors.163.com](https://mirrors.163.com) | | | ✓ | ✓ | ✓ | | |
|
||||
| 5 | 搜狐 | [mirrors.sohu.com](https://mirrors.sohu.com) | | | | ✓ | | | |
|
||||
| 6 | 清华大学 | [mirrors.tuna.tsinghua.edu.cn](https://mirrors.tuna.tsinghua.edu.cn) | ✓ | ✓ | | ✓ | ✓ | | ✓ |
|
||||
| 7 | 北京大学 | [mirrors.pku.edu.cn](https://mirrors.pku.edu.cn/Mirrors) | ✓ | | | | ✓ | | ✓ |
|
||||
| 8 | 浙江大学 | [mirrors.zju.edu.cn](https://mirrors.zju.edu.cn) | | ✓ | ✓ | ✓ | ✓ | | ✓ |
|
||||
| 9 | 南京大学 | [mirrors.nju.edu.cn](https://mirrors.nju.edu.cn) | | ✓ | ✓ | ✓ | ✓ | | ✓ |
|
||||
| 10 | 重庆大学 | [mirrors.cqu.edu.cn](https://mirrors.cqu.edu.cn) | | ✓ | | ✓ | | | ✓ |
|
||||
| 11 | 兰州大学 | [mirror.lzu.edu.cn](https://mirror.lzu.edu.cn) | ✓ | | ✓ | ✓ | ✓ | | ✓ |
|
||||
| 12 | 上海交通大学 | [mirror.sjtu.edu.cn](https://mirror.sjtu.edu.cn) | ✓ | ✓ | ✓ | ✓ | ✓ | | ✓ |
|
||||
| 13 | 哈尔滨工业大学 | [mirrors.hit.edu.cn](https://mirrors.hit.edu.cn) | ✓ | ✓ | | | ✓ | | ✓ |
|
||||
| 14 | 中国科学技术大学 | [mirrors.ustc.edu.cn](https://mirrors.ustc.edu.cn) | ✓ | ✓ | ✓ | ✓ | ✓ | | ✓ |
|
||||
| 15 | 中国科学院软件研究所 | [mirror.iscas.ac.cn](https://mirror.iscas.ac.cn) | | ✓ | ✓ | ✓ | ✓ | | ✓ |
|
||||
|
||||
以上为脚本当前使用的开源镜像站,所有镜像站均支持 `Debian` `Ubuntu` `CentOS` 软件源
|
||||
以上为脚本当前使用的开源镜像站,所有镜像站均支持 `Debian` `Ubuntu` `CentOS` 软件源
|
||||
华北地区建议优先使用 `中科大`、`腾讯云`、`清华大学`,软件源的速度区分刷新速度和下载速度,具体请结合实际地理位置进行选择尝试
|
||||
|
||||
> [!TIP]
|
||||
> 如果使用过程中脚本不能正常输出中文内容则可对照此列表使用,顺序与脚本一致,之后一路回车即可
|
||||
@@ -118,12 +125,18 @@ bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirro
|
||||
cp -rvf /etc/apt/sources.list.bak /etc/apt/sources.list
|
||||
```
|
||||
|
||||
- RedHat 系
|
||||
- RedHat 系 / openEuler
|
||||
|
||||
```
|
||||
cp -rvf /etc/yum.repos.d.bak /etc/yum.repos.d
|
||||
```
|
||||
|
||||
- openSUSE
|
||||
|
||||
```
|
||||
cp -rvf /etc/zypp/repos.d.bak /etc/zypp/repos.d
|
||||
```
|
||||
|
||||
- ### <i class="fa-regular fa-list-tree fa-fade" style="--fa-animation-duration: 2s; --fa-fade-opacity: 0.6;" ></i> 脚本执行流程
|
||||
|
||||
- └ 选择国内源 `交互`
|
||||
|
||||
1
docs/img/icon/opensuse.svg
Normal file
1
docs/img/icon/opensuse.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 6.7 KiB |
Reference in New Issue
Block a user