mirror of
https://github.com/SuperManito/LinuxMirrors.git
synced 2026-06-22 21:19:23 +08:00
新增适配 Void Linux 操作系统
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2026-06-16
|
||||
|
||||
* Added support for Void Linux
|
||||
|
||||
2026-01-04
|
||||
|
||||
* Added support for EndeavourOS [#30310f5](https://github.com/SuperManito/LinuxMirrors/commit/30310f5508b1943b647b54834dd60c206d9fb366)
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2026-06-16
|
||||
|
||||
* 新增适配 Void Linux 操作系统
|
||||
|
||||
2026-01-04
|
||||
|
||||
* 新增适配 EndeavourOS 操作系统 [#30310f5](https://github.com/SuperManito/LinuxMirrors/commit/30310f5508b1943b647b54834dd60c206d9fb366)
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2026-06-16
|
||||
|
||||
* 新增適配 Void Linux 作業系統
|
||||
|
||||
2026-01-04
|
||||
|
||||
* 新增適配 EndeavourOS 作業系統 [#30310f5](https://github.com/SuperManito/LinuxMirrors/commit/30310f5508b1943b647b54834dd60c206d9fb366)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
## Author: SuperManito
|
||||
## Modified: 2026-06-08
|
||||
## Modified: 2026-06-16
|
||||
## License: MIT
|
||||
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
||||
## Website: https://linuxmirrors.cn
|
||||
@@ -214,6 +214,7 @@ SYSTEM_MANJARO="Manjaro"
|
||||
SYSTEM_ALPINE="Alpine"
|
||||
SYSTEM_GENTOO="Gentoo"
|
||||
SYSTEM_NIXOS="NixOS"
|
||||
SYSTEM_VOID="Void"
|
||||
|
||||
## 定义系统版本文件
|
||||
File_LinuxRelease=/etc/os-release
|
||||
@@ -245,6 +246,8 @@ Dir_ZYppRepos=/etc/zypp/repos.d
|
||||
Dir_ZYppReposBackup=$Dir_ZYppRepos.bak
|
||||
Dir_GentooReposConf=/etc/portage/repos.conf
|
||||
Dir_NixConfig=/etc/nix
|
||||
Dir_XbpsRepos=/etc/xbps.d
|
||||
Dir_XbpsReposBackup=$Dir_XbpsRepos.bak
|
||||
File_AptSourceList=/etc/apt/sources.list
|
||||
File_AptSourceListBackup=$File_AptSourceList.bak
|
||||
File_DebianSources=$Dir_AptAdditionalSources/debian.sources
|
||||
@@ -834,6 +837,8 @@ function collect_system_info() {
|
||||
SYSTEM_FACTIONS="${SYSTEM_OPENSUSE}"
|
||||
elif [[ "${SYSTEM_NAME}" == *"NixOS"* ]]; then
|
||||
SYSTEM_FACTIONS="${SYSTEM_NIXOS}"
|
||||
elif [[ "${SYSTEM_ID}" == "void" ]]; then
|
||||
SYSTEM_FACTIONS="${SYSTEM_VOID}"
|
||||
else
|
||||
unsupport_system_error "$(msg "error.unknownSystem")"
|
||||
fi
|
||||
@@ -978,7 +983,7 @@ function collect_system_info() {
|
||||
;;
|
||||
# 理论全部支持或不作判断
|
||||
"${SYSTEM_KALI}" | "${SYSTEM_DEEPIN}" | "${SYSTEM_ZORIN}" | "${SYSTEM_RASPBERRY_PI_OS}" | "${SYSTEM_OPENKYLIN}") ;;
|
||||
"${SYSTEM_ARCH}" | "${SYSTEM_MANJARO}" | "${SYSTEM_ALPINE}" | "${SYSTEM_GENTOO}" | "${SYSTEM_NIXOS}") ;;
|
||||
"${SYSTEM_ARCH}" | "${SYSTEM_MANJARO}" | "${SYSTEM_ALPINE}" | "${SYSTEM_GENTOO}" | "${SYSTEM_NIXOS}" | "${SYSTEM_VOID}") ;;
|
||||
*)
|
||||
unsupport_system_error "$(msg "error.unknownVersion")"
|
||||
;;
|
||||
@@ -1104,6 +1109,9 @@ function collect_system_info() {
|
||||
"${SYSTEM_NIXOS}")
|
||||
SOURCE_BRANCH="nix-channels"
|
||||
;;
|
||||
"${SYSTEM_VOID}")
|
||||
SOURCE_BRANCH="voidlinux"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
## 定义软件源更新文字
|
||||
@@ -1117,7 +1125,7 @@ function collect_system_info() {
|
||||
"${SYSTEM_OPENSUSE}")
|
||||
SYNC_MIRROR_TEXT="$(msg "source.sync.text3")"
|
||||
;;
|
||||
"${SYSTEM_ARCH}" | "${SYSTEM_GENTOO}")
|
||||
"${SYSTEM_ARCH}" | "${SYSTEM_GENTOO}" | "${SYSTEM_VOID}")
|
||||
SYNC_MIRROR_TEXT="$(msg "source.sync.text4")"
|
||||
;;
|
||||
"${SYSTEM_NIXOS}")
|
||||
@@ -1519,20 +1527,21 @@ function backup_original_mirrors() {
|
||||
function backup_dir() {
|
||||
local target_dir=$1
|
||||
local backup_dir=$2
|
||||
local file_type="${3:-repo}"
|
||||
[ -d "${target_dir}" ] || mkdir -p "${target_dir}"
|
||||
[ -d "${backup_dir}" ] || mkdir -p "${backup_dir}"
|
||||
## 判断是否存在 repo 源文件
|
||||
ls "${target_dir}" | grep '\.repo$' -q
|
||||
## 判断是否存在软件源文件
|
||||
ls "${target_dir}" | grep "\.${file_type}$" -q
|
||||
if [ $? -ne 0 ]; then
|
||||
return
|
||||
fi
|
||||
## 判断是否存在已备份的 repo 源文件
|
||||
ls "${backup_dir}" | grep '\.repo$' -q
|
||||
## 判断是否存在已备份的软件源文件
|
||||
ls "${backup_dir}" | grep "\.${file_type}$" -q
|
||||
if [ $? -eq 0 ]; then
|
||||
if [[ "${IGNORE_BACKUP_TIPS}" != "false" ]]; then
|
||||
return
|
||||
fi
|
||||
local ask_text="$(msg "interaction.backup.skipOverwrite.sourceFile" "repo")?"
|
||||
local ask_text="$(msg "interaction.backup.skipOverwrite.sourceFile" "${file_type}")?"
|
||||
if [[ "${CAN_USE_ADVANCED_INTERACTIVE_SELECTION}" == "true" ]]; then
|
||||
echo ''
|
||||
interactive_select_boolean "${BOLD}${ask_text}${PLAIN}"
|
||||
@@ -1561,7 +1570,7 @@ function backup_original_mirrors() {
|
||||
echo ''
|
||||
cp -rvf $target_dir/* "${backup_dir}" 2>&1
|
||||
BACKED_UP="true"
|
||||
echo -e "\n$COMPLETE $(msg "info.backuped.sourceFile" "repo")"
|
||||
echo -e "\n$COMPLETE $(msg "info.backuped.sourceFile" "${file_type}")"
|
||||
sleep 1s
|
||||
fi
|
||||
}
|
||||
@@ -1647,6 +1656,10 @@ function backup_original_mirrors() {
|
||||
# /etc/nix/nix.conf
|
||||
backup_file $File_NixConf $File_NixConfBackup "nix.conf"
|
||||
;;
|
||||
"${SYSTEM_VOID}")
|
||||
# /etc/xbps.d
|
||||
backup_dir $Dir_XbpsRepos $Dir_XbpsReposBackup "conf"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
@@ -1825,6 +1838,13 @@ function remove_original_mirrors() {
|
||||
"${SYSTEM_GENTOO}")
|
||||
clear_file $File_GentooReposConf
|
||||
;;
|
||||
"${SYSTEM_VOID}")
|
||||
if [ ! -d "${Dir_XbpsRepos}" ]; then
|
||||
mkdir -p "${Dir_XbpsRepos}"
|
||||
return
|
||||
fi
|
||||
rm -rf $Dir_XbpsRepos/*-repository-*.conf
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
@@ -1914,6 +1934,9 @@ function change_mirrors_main() {
|
||||
"${SYSTEM_NIXOS}")
|
||||
diff_file $File_NixConfBackup $File_NixConf
|
||||
;;
|
||||
"${SYSTEM_VOID}")
|
||||
diff_dir $Dir_XbpsReposBackup $Dir_XbpsRepos
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
@@ -1955,6 +1978,9 @@ function change_mirrors_main() {
|
||||
"${SYSTEM_NIXOS}")
|
||||
change_mirrors_NixOS
|
||||
;;
|
||||
"${SYSTEM_VOID}")
|
||||
change_mirrors_Void
|
||||
;;
|
||||
esac
|
||||
## 比较差异
|
||||
if [[ "${PRINT_DIFF}" == "true" ]]; then
|
||||
@@ -1986,6 +2012,9 @@ function change_mirrors_main() {
|
||||
commands+=("nix-store --verify")
|
||||
commands+=("nix-channel --update")
|
||||
;;
|
||||
"${SYSTEM_VOID}")
|
||||
commands+=("xbps-install -S")
|
||||
;;
|
||||
esac
|
||||
if [[ "${PURE_MODE}" == "true" ]]; then
|
||||
local exec_cmd=""
|
||||
@@ -2108,6 +2137,9 @@ function upgrade_software() {
|
||||
"${SYSTEM_NIXOS}")
|
||||
commands+=("nixos-rebuild switch")
|
||||
;;
|
||||
"${SYSTEM_VOID}")
|
||||
commands+=("xbps-install -yu")
|
||||
;;
|
||||
esac
|
||||
if [[ "${PURE_MODE}" == "true" ]]; then
|
||||
local exec_cmd=""
|
||||
@@ -2155,6 +2187,9 @@ function upgrade_software() {
|
||||
"${SYSTEM_NIXOS}")
|
||||
nix-collect-garbage -d >/dev/null 2>&1
|
||||
;;
|
||||
"${SYSTEM_VOID}")
|
||||
xbps-remove -O >/dev/null 2>&1
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
@@ -3261,6 +3296,20 @@ function change_mirrors_NixOS() {
|
||||
nix-channel --update >/dev/null 2>&1
|
||||
}
|
||||
|
||||
## 更换 Void Linux 软件源
|
||||
function change_mirrors_Void() {
|
||||
[ -d "${Dir_XbpsRepos}" ] || mkdir -p $Dir_XbpsRepos
|
||||
cp -rvf /usr/share/xbps.d/*-repository-*.conf $Dir_XbpsRepos
|
||||
## 使用官方源
|
||||
[[ "${USE_OFFICIAL_SOURCE}" == "true" ]] && return
|
||||
|
||||
## 修改源
|
||||
cd $Dir_XbpsRepos
|
||||
sed -e "s|https://repo-default.voidlinux.org|${WEB_PROTOCOL}://${SOURCE}/${SOURCE_BRANCH}|g" \
|
||||
-i \
|
||||
*-repository-*.conf
|
||||
}
|
||||
|
||||
## EPEL (Extra Packages for Enterprise Linux) 附加软件包 - 安装或更换软件源
|
||||
function change_mirrors_or_install_EPEL() {
|
||||
if [[ "${INSTALL_EPEL}" != "true" ]]; then
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
## Author: SuperManito
|
||||
## Modified: 2026-06-08
|
||||
## Modified: 2026-06-16
|
||||
## License: MIT
|
||||
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
||||
## Website: https://linuxmirrors.cn
|
||||
@@ -42,6 +42,7 @@ SYSTEM_MANJARO="Manjaro"
|
||||
SYSTEM_ALPINE="Alpine"
|
||||
SYSTEM_GENTOO="Gentoo"
|
||||
SYSTEM_NIXOS="NixOS"
|
||||
SYSTEM_VOID="Void"
|
||||
|
||||
## 定义系统版本文件
|
||||
File_LinuxRelease=/etc/os-release
|
||||
@@ -73,6 +74,8 @@ Dir_ZYppRepos=/etc/zypp/repos.d
|
||||
Dir_ZYppReposBackup=$Dir_ZYppRepos.bak
|
||||
Dir_GentooReposConf=/etc/portage/repos.conf
|
||||
Dir_NixConfig=/etc/nix
|
||||
Dir_XbpsRepos=/etc/xbps.d
|
||||
Dir_XbpsReposBackup=$Dir_XbpsRepos.bak
|
||||
File_AptSourceList=/etc/apt/sources.list
|
||||
File_AptSourceListBackup=$File_AptSourceList.bak
|
||||
File_DebianSources=$Dir_AptAdditionalSources/debian.sources
|
||||
@@ -523,6 +526,8 @@ function collect_system_info() {
|
||||
SYSTEM_FACTIONS="${SYSTEM_OPENSUSE}"
|
||||
elif [[ "${SYSTEM_NAME}" == *"NixOS"* ]]; then
|
||||
SYSTEM_FACTIONS="${SYSTEM_NIXOS}"
|
||||
elif [[ "${SYSTEM_ID}" == "void" ]]; then
|
||||
SYSTEM_FACTIONS="${SYSTEM_VOID}"
|
||||
else
|
||||
unsupport_system_error "$(msg "error.unknownSystem")"
|
||||
fi
|
||||
@@ -667,7 +672,7 @@ function collect_system_info() {
|
||||
;;
|
||||
# 理论全部支持或不作判断
|
||||
"${SYSTEM_KALI}" | "${SYSTEM_DEEPIN}" | "${SYSTEM_ZORIN}" | "${SYSTEM_RASPBERRY_PI_OS}" | "${SYSTEM_OPENKYLIN}") ;;
|
||||
"${SYSTEM_ARCH}" | "${SYSTEM_MANJARO}" | "${SYSTEM_ALPINE}" | "${SYSTEM_GENTOO}" | "${SYSTEM_NIXOS}") ;;
|
||||
"${SYSTEM_ARCH}" | "${SYSTEM_MANJARO}" | "${SYSTEM_ALPINE}" | "${SYSTEM_GENTOO}" | "${SYSTEM_NIXOS}" | "${SYSTEM_VOID}") ;;
|
||||
*)
|
||||
unsupport_system_error "$(msg "error.unknownVersion")"
|
||||
;;
|
||||
@@ -793,6 +798,9 @@ function collect_system_info() {
|
||||
"${SYSTEM_NIXOS}")
|
||||
SOURCE_BRANCH="nix-channels"
|
||||
;;
|
||||
"${SYSTEM_VOID}")
|
||||
SOURCE_BRANCH="voidlinux"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
## 定义软件源更新文字
|
||||
@@ -806,7 +814,7 @@ function collect_system_info() {
|
||||
"${SYSTEM_OPENSUSE}")
|
||||
SYNC_MIRROR_TEXT="$(msg "source.sync.text3")"
|
||||
;;
|
||||
"${SYSTEM_ARCH}" | "${SYSTEM_GENTOO}")
|
||||
"${SYSTEM_ARCH}" | "${SYSTEM_GENTOO}" | "${SYSTEM_VOID}")
|
||||
SYNC_MIRROR_TEXT="$(msg "source.sync.text4")"
|
||||
;;
|
||||
"${SYSTEM_NIXOS}")
|
||||
@@ -901,20 +909,21 @@ function backup_original_mirrors() {
|
||||
function backup_dir() {
|
||||
local target_dir=$1
|
||||
local backup_dir=$2
|
||||
local file_type="${3:-repo}"
|
||||
[ -d "${target_dir}" ] || mkdir -p "${target_dir}"
|
||||
[ -d "${backup_dir}" ] || mkdir -p "${backup_dir}"
|
||||
## 判断是否存在 repo 源文件
|
||||
ls "${target_dir}" | grep '\.repo$' -q
|
||||
## 判断是否存在软件源文件
|
||||
ls "${target_dir}" | grep "\.${file_type}$" -q
|
||||
if [ $? -ne 0 ]; then
|
||||
return
|
||||
fi
|
||||
## 判断是否存在已备份的 repo 源文件
|
||||
ls "${backup_dir}" | grep '\.repo$' -q
|
||||
## 判断是否存在已备份的软件源文件
|
||||
ls "${backup_dir}" | grep "\.${file_type}$" -q
|
||||
if [ $? -eq 0 ]; then
|
||||
if [[ "${IGNORE_BACKUP_TIPS}" != "false" ]]; then
|
||||
return
|
||||
fi
|
||||
local ask_text="$(msg "interaction.backup.skipOverwrite.sourceFile" "repo")?"
|
||||
local ask_text="$(msg "interaction.backup.skipOverwrite.sourceFile" "${file_type}")?"
|
||||
if [[ "${CAN_USE_ADVANCED_INTERACTIVE_SELECTION}" == "true" ]]; then
|
||||
echo ''
|
||||
interactive_select_boolean "${BOLD}${ask_text}${PLAIN}"
|
||||
@@ -943,7 +952,7 @@ function backup_original_mirrors() {
|
||||
echo ''
|
||||
cp -rvf $target_dir/* "${backup_dir}" 2>&1
|
||||
BACKED_UP="true"
|
||||
echo -e "\n$COMPLETE $(msg "info.backuped.sourceFile" "repo")"
|
||||
echo -e "\n$COMPLETE $(msg "info.backuped.sourceFile" "${file_type}")"
|
||||
sleep 1s
|
||||
fi
|
||||
}
|
||||
@@ -1029,6 +1038,10 @@ function backup_original_mirrors() {
|
||||
# /etc/nix/nix.conf
|
||||
backup_file $File_NixConf $File_NixConfBackup "nix.conf"
|
||||
;;
|
||||
"${SYSTEM_VOID}")
|
||||
# /etc/xbps.d
|
||||
backup_dir $Dir_XbpsRepos $Dir_XbpsReposBackup "conf"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
@@ -1207,6 +1220,13 @@ function remove_original_mirrors() {
|
||||
"${SYSTEM_GENTOO}")
|
||||
clear_file $File_GentooReposConf
|
||||
;;
|
||||
"${SYSTEM_VOID}")
|
||||
if [ ! -d "${Dir_XbpsRepos}" ]; then
|
||||
mkdir -p "${Dir_XbpsRepos}"
|
||||
return
|
||||
fi
|
||||
rm -rf $Dir_XbpsRepos/*-repository-*.conf
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
@@ -1296,6 +1316,9 @@ function change_mirrors_main() {
|
||||
"${SYSTEM_NIXOS}")
|
||||
diff_file $File_NixConfBackup $File_NixConf
|
||||
;;
|
||||
"${SYSTEM_VOID}")
|
||||
diff_dir $Dir_XbpsReposBackup $Dir_XbpsRepos
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
@@ -1337,6 +1360,9 @@ function change_mirrors_main() {
|
||||
"${SYSTEM_NIXOS}")
|
||||
change_mirrors_NixOS
|
||||
;;
|
||||
"${SYSTEM_VOID}")
|
||||
change_mirrors_Void
|
||||
;;
|
||||
esac
|
||||
## 比较差异
|
||||
if [[ "${PRINT_DIFF}" == "true" ]]; then
|
||||
@@ -1368,6 +1394,9 @@ function change_mirrors_main() {
|
||||
commands+=("nix-store --verify")
|
||||
commands+=("nix-channel --update")
|
||||
;;
|
||||
"${SYSTEM_VOID}")
|
||||
commands+=("xbps-install -S")
|
||||
;;
|
||||
esac
|
||||
if [[ "${PURE_MODE}" == "true" ]]; then
|
||||
local exec_cmd=""
|
||||
@@ -1490,6 +1519,9 @@ function upgrade_software() {
|
||||
"${SYSTEM_NIXOS}")
|
||||
commands+=("nixos-rebuild switch")
|
||||
;;
|
||||
"${SYSTEM_VOID}")
|
||||
commands+=("xbps-install -yu")
|
||||
;;
|
||||
esac
|
||||
if [[ "${PURE_MODE}" == "true" ]]; then
|
||||
local exec_cmd=""
|
||||
@@ -1537,6 +1569,9 @@ function upgrade_software() {
|
||||
"${SYSTEM_NIXOS}")
|
||||
nix-collect-garbage -d >/dev/null 2>&1
|
||||
;;
|
||||
"${SYSTEM_VOID}")
|
||||
xbps-remove -O >/dev/null 2>&1
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
@@ -2643,6 +2678,20 @@ function change_mirrors_NixOS() {
|
||||
nix-channel --update >/dev/null 2>&1
|
||||
}
|
||||
|
||||
## 更换 Void Linux 软件源
|
||||
function change_mirrors_Void() {
|
||||
[ -d "${Dir_XbpsRepos}" ] || mkdir -p $Dir_XbpsRepos
|
||||
cp -rvf /usr/share/xbps.d/*-repository-*.conf $Dir_XbpsRepos
|
||||
## 使用官方源
|
||||
[[ "${USE_OFFICIAL_SOURCE}" == "true" ]] && return
|
||||
|
||||
## 修改源
|
||||
cd $Dir_XbpsRepos
|
||||
sed -e "s|https://repo-default.voidlinux.org|${WEB_PROTOCOL}://${SOURCE}/${SOURCE_BRANCH}|g" \
|
||||
-i \
|
||||
*-repository-*.conf
|
||||
}
|
||||
|
||||
## EPEL (Extra Packages for Enterprise Linux) 附加软件包 - 安装或更换软件源
|
||||
function change_mirrors_or_install_EPEL() {
|
||||
if [[ "${INSTALL_EPEL}" != "true" ]]; then
|
||||
|
||||
@@ -129,6 +129,10 @@
|
||||
<td><a href="https://nixos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/nixos.svg" alt="NixOS" width="16" height="16"></sub></a> NixOS</td>
|
||||
<td align="center">19 ~ 25</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://voidlinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/void-linux.png" alt="Void Linux" width="16" height="16"></sub></a> Void Linux</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>
|
||||
|
||||
@@ -129,6 +129,10 @@
|
||||
<td><a href="https://nixos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/nixos.svg" alt="NixOS" width="16" height="16"></sub></a> NixOS</td>
|
||||
<td align="center">19 ~ 25</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://voidlinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/void-linux.png" alt="Void Linux" width="16" height="16"></sub></a> Void Linux</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>
|
||||
|
||||
@@ -129,6 +129,10 @@
|
||||
<td><a href="https://nixos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/nixos.svg" alt="NixOS" width="16" height="16"></sub></a> NixOS</td>
|
||||
<td align="center">19 ~ 25</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://voidlinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/void-linux.png" alt="Void Linux" width="16" height="16"></sub></a> Void Linux</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>
|
||||
|
||||
BIN
docs/assets/images/icon/void-linux.png
Normal file
BIN
docs/assets/images/icon/void-linux.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.7 KiB |
@@ -33,6 +33,7 @@ const mirrorsTableData = [
|
||||
raspberrypi: true,
|
||||
manjaro: true,
|
||||
endeavouros: false,
|
||||
voidlinux: false,
|
||||
},
|
||||
{
|
||||
name: __isZhHant ? '騰訊雲' : __isEn ? 'Tencent Cloud' : '腾讯云',
|
||||
@@ -67,6 +68,7 @@ const mirrorsTableData = [
|
||||
raspberrypi: false,
|
||||
manjaro: false,
|
||||
endeavouros: false,
|
||||
voidlinux: false,
|
||||
},
|
||||
{
|
||||
name: __isZhHant ? '華為雲' : __isEn ? 'Huawei Cloud' : '华为云',
|
||||
@@ -101,6 +103,7 @@ const mirrorsTableData = [
|
||||
raspberrypi: false,
|
||||
manjaro: true,
|
||||
endeavouros: false,
|
||||
voidlinux: false,
|
||||
},
|
||||
{
|
||||
name: __isZhHant ? '移動雲' : __isEn ? 'China Mobile Cloud' : '移动云 ',
|
||||
@@ -135,6 +138,7 @@ const mirrorsTableData = [
|
||||
raspberrypi: false,
|
||||
manjaro: false,
|
||||
endeavouros: false,
|
||||
voidlinux: false,
|
||||
},
|
||||
{
|
||||
name: __isZhHant ? '天翼雲' : __isEn ? 'China Telecom Cloud' : '天翼云',
|
||||
@@ -169,6 +173,7 @@ const mirrorsTableData = [
|
||||
raspberrypi: false,
|
||||
manjaro: false,
|
||||
endeavouros: false,
|
||||
voidlinux: false,
|
||||
},
|
||||
{
|
||||
name: __isZhHant ? '網易' : __isEn ? 'NetEase' : '网易',
|
||||
@@ -203,6 +208,7 @@ const mirrorsTableData = [
|
||||
raspberrypi: false,
|
||||
manjaro: false,
|
||||
endeavouros: false,
|
||||
voidlinux: false,
|
||||
},
|
||||
{
|
||||
name: __isZhHant ? '火山引擎' : __isEn ? 'Volcengine' : '火山引擎',
|
||||
@@ -237,6 +243,7 @@ const mirrorsTableData = [
|
||||
raspberrypi: false,
|
||||
manjaro: false,
|
||||
endeavouros: false,
|
||||
voidlinux: false,
|
||||
},
|
||||
{
|
||||
name: __isZhHant ? '清華大學' : __isEn ? 'Tsinghua University' : '清华大学',
|
||||
@@ -271,6 +278,7 @@ const mirrorsTableData = [
|
||||
raspberrypi: true,
|
||||
manjaro: true,
|
||||
endeavouros: true,
|
||||
voidlinux: true,
|
||||
},
|
||||
{
|
||||
name: __isZhHant ? '北京大學' : __isEn ? 'Peking University' : '北京大学',
|
||||
@@ -305,6 +313,7 @@ const mirrorsTableData = [
|
||||
raspberrypi: false,
|
||||
manjaro: true,
|
||||
endeavouros: false,
|
||||
voidlinux: false,
|
||||
},
|
||||
{
|
||||
name: __isZhHant ? '浙江大學' : __isEn ? 'Zhejiang University' : '浙江大学',
|
||||
@@ -339,6 +348,7 @@ const mirrorsTableData = [
|
||||
raspberrypi: false,
|
||||
manjaro: true,
|
||||
endeavouros: false,
|
||||
voidlinux: false,
|
||||
},
|
||||
{
|
||||
name: __isZhHant ? '南京大學' : __isEn ? 'Nanjing University' : '南京大学',
|
||||
@@ -373,6 +383,7 @@ const mirrorsTableData = [
|
||||
raspberrypi: true,
|
||||
manjaro: true,
|
||||
endeavouros: true,
|
||||
voidlinux: true,
|
||||
},
|
||||
{
|
||||
name: __isZhHant ? '蘭州大學' : __isEn ? 'Lanzhou University' : '兰州大学',
|
||||
@@ -407,6 +418,7 @@ const mirrorsTableData = [
|
||||
raspberrypi: false,
|
||||
manjaro: true,
|
||||
endeavouros: false,
|
||||
voidlinux: false,
|
||||
},
|
||||
{
|
||||
name: __isZhHant ? '上海交通大學' : __isEn ? 'Shanghai Jiao Tong University' : '上海交通大学',
|
||||
@@ -441,6 +453,7 @@ const mirrorsTableData = [
|
||||
raspberrypi: true,
|
||||
manjaro: true,
|
||||
endeavouros: true,
|
||||
voidlinux: true,
|
||||
},
|
||||
{
|
||||
name: __isZhHant ? '華中科技大學' : __isEn ? 'Huazhong University of Science and Technology' : '华中科技大学',
|
||||
@@ -475,6 +488,7 @@ const mirrorsTableData = [
|
||||
raspberrypi: false,
|
||||
manjaro: true,
|
||||
endeavouros: false,
|
||||
voidlinux: false,
|
||||
},
|
||||
{
|
||||
name: __isZhHant ? '中國科學技術大學' : __isEn ? 'University of Science and Technology of China' : '中国科学技术大学',
|
||||
@@ -509,6 +523,7 @@ const mirrorsTableData = [
|
||||
raspberrypi: true,
|
||||
manjaro: true,
|
||||
endeavouros: false,
|
||||
voidlinux: false,
|
||||
},
|
||||
{
|
||||
name: __isZhHant ? '中國科學院軟體研究所' : __isEn ? 'Institute of Software, Chinese Academy of Sciences (ISCAS)' : '中国科学院软件研究所',
|
||||
@@ -542,7 +557,8 @@ const mirrorsTableData = [
|
||||
nix_channels: true,
|
||||
raspberrypi: true,
|
||||
manjaro: false,
|
||||
endeavouros: true,
|
||||
endeavouros: false,
|
||||
voidlinux: false,
|
||||
},
|
||||
{
|
||||
name: __isZhHant ? '中國科技雲' : __isEn ? 'China Science & Technology Cloud' : '中国科技云',
|
||||
@@ -577,6 +593,7 @@ const mirrorsTableData = [
|
||||
raspberrypi: false,
|
||||
manjaro: false,
|
||||
endeavouros: false,
|
||||
voidlinux: false,
|
||||
},
|
||||
]
|
||||
|
||||
@@ -745,7 +762,13 @@ const mirrorsTableColumns = [
|
||||
colKey: 'endeavouros',
|
||||
title: 'EndeavourOS',
|
||||
align: 'center',
|
||||
width: '140',
|
||||
width: '130',
|
||||
},
|
||||
{
|
||||
colKey: 'voidlinux',
|
||||
title: 'Void Linux',
|
||||
align: 'center',
|
||||
width: '110',
|
||||
},
|
||||
].map((item) => {
|
||||
if (item.colKey !== 'name') {
|
||||
@@ -938,6 +961,11 @@ const mirrorsTableFilterSelectOptions = [
|
||||
label: 'NixOS',
|
||||
iconName: 'nixos.svg',
|
||||
},
|
||||
{
|
||||
value: 'voidlinux',
|
||||
label: 'Void Linux',
|
||||
iconName: 'void-linux.png',
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
|
||||
@@ -54,7 +54,7 @@ ComponentSystem.register('mirrors-table', {
|
||||
clearable
|
||||
size="large"
|
||||
:placeholder="rowSelectPlaceholder"
|
||||
style="min-width: 160px; width: 250px"
|
||||
style="min-width: 160px; width: 250px; user-select: none"
|
||||
@change="onRowFilterChange"
|
||||
/>
|
||||
<t-select
|
||||
@@ -65,7 +65,7 @@ ComponentSystem.register('mirrors-table', {
|
||||
clearable
|
||||
size="large"
|
||||
:placeholder="selectPlaceholder"
|
||||
style="min-width: 160px; width: 230px"
|
||||
style="min-width: 160px; width: 230px; user-select: none"
|
||||
@change="onFilterChange"
|
||||
/>
|
||||
</t-space>
|
||||
|
||||
@@ -6,6 +6,10 @@ search:
|
||||
exclude: true
|
||||
---
|
||||
|
||||
### `2026-06-16`
|
||||
|
||||
* Added support for Void Linux
|
||||
|
||||
### `2026-01-04`
|
||||
|
||||
* Added support for EndeavourOS [#30310f5](https://github.com/SuperManito/LinuxMirrors/commit/30310f5508b1943b647b54834dd60c206d9fb366)
|
||||
|
||||
@@ -6,6 +6,10 @@ search:
|
||||
exclude: true
|
||||
---
|
||||
|
||||
### `2026-06-16`
|
||||
|
||||
* 新增适配 Void Linux 操作系统
|
||||
|
||||
### `2026-01-04`
|
||||
|
||||
* 新增适配 EndeavourOS 操作系统 [#30310f5](https://github.com/SuperManito/LinuxMirrors/commit/30310f5508b1943b647b54834dd60c206d9fb366)
|
||||
|
||||
@@ -6,6 +6,10 @@ search:
|
||||
exclude: true
|
||||
---
|
||||
|
||||
### `2026-06-16`
|
||||
|
||||
* 新增適配 Void Linux 作業系統
|
||||
|
||||
### `2026-01-04`
|
||||
|
||||
* 新增適配 EndeavourOS 作業系統 [#30310f5](https://github.com/SuperManito/LinuxMirrors/commit/30310f5508b1943b647b54834dd60c206d9fb366)
|
||||
|
||||
@@ -54,7 +54,7 @@ hide:
|
||||
|
||||
---
|
||||
|
||||
Supports up to `26+` operating systems, covering various versions, accurately identifying system types
|
||||
Supports up to `27+` 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__
|
||||
@@ -131,6 +131,7 @@ hide:
|
||||
| <a href="https://www.alpinelinux.org" title="https://www.alpinelinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/alpine.png" alt="Alpine Linux" width="16" height="16" style="vertical-align: -0.15em"></a> **Alpine Linux** | _v3 / edge_ |
|
||||
| <a href="https://www.gentoo.org" title="https://www.gentoo.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/gentoo.svg" alt="Gentoo" width="16" height="16" style="vertical-align: -0.2em"></a> **Gentoo** | _all_ |
|
||||
| <a href="https://nixos.org" title="https://nixos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" alt="NixOS" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | _19~25_ |
|
||||
| <a href="https://voidlinux.org" title="https://voidlinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/void-linux.png" alt="Void Linux" width="16" height="16" style="vertical-align: -0.15em"></a> **Void Linux** | _all_ |
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -54,7 +54,7 @@ hide:
|
||||
|
||||
---
|
||||
|
||||
已适配 `26+` 操作系统,涵盖各类版本,精准识别系统类型
|
||||
已适配 `27+` 操作系统,涵盖各类版本,精准识别系统类型
|
||||
脚本兼容性高,不支持的系统会有相应提示并无操作跳出
|
||||
|
||||
- :material-vector-triangle:{ .lg .middle } __多元软件源适配__
|
||||
@@ -131,6 +131,7 @@ hide:
|
||||
| <a href="https://www.alpinelinux.org" title="https://www.alpinelinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/alpine.png" alt="Alpine Linux" width="16" height="16" style="vertical-align: -0.15em"></a> **Alpine Linux** | _v3 / edge_ |
|
||||
| <a href="https://www.gentoo.org" title="https://www.gentoo.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/gentoo.svg" alt="Gentoo" width="16" height="16" style="vertical-align: -0.2em"></a> **Gentoo** | _all_ |
|
||||
| <a href="https://nixos.org" title="https://nixos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" alt="NixOS" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | _19~25_ |
|
||||
| <a href="https://voidlinux.org" title="https://voidlinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/void-linux.png" alt="Void Linux" width="16" height="16" style="vertical-align: -0.15em"></a> **Void Linux** | _all_ |
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -54,7 +54,7 @@ hide:
|
||||
|
||||
---
|
||||
|
||||
已適配 `26+` 作業系統,涵蓋各類版本,精準辨識系統類型
|
||||
已適配 `27+` 作業系統,涵蓋各類版本,精準辨識系統類型
|
||||
腳本相容性高,不支援的系統會有對應提示並無操作跳出
|
||||
|
||||
- :material-vector-triangle:{ .lg .middle } __多元軟體源適配__
|
||||
@@ -131,6 +131,7 @@ hide:
|
||||
| <a href="https://www.alpinelinux.org" title="https://www.alpinelinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/alpine.png" alt="Alpine Linux" width="16" height="16" style="vertical-align: -0.15em"></a> **Alpine Linux** | _v3 / edge_ |
|
||||
| <a href="https://www.gentoo.org" title="https://www.gentoo.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/gentoo.svg" alt="Gentoo" width="16" height="16" style="vertical-align: -0.2em"></a> **Gentoo** | _all_ |
|
||||
| <a href="https://nixos.org" title="https://nixos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" alt="NixOS" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | _19~25_ |
|
||||
| <a href="https://voidlinux.org" title="https://voidlinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/void-linux.png" alt="Void Linux" width="16" height="16" style="vertical-align: -0.15em"></a> **Void Linux** | _all_ |
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -25,4 +25,5 @@
|
||||
| <a href="https://endeavouros.com" title="https://endeavouros.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/endeavouros.png" alt="EndeavourOS" width="16" height="16" style="vertical-align: -0.1em"></a> **EndeavourOS** | `endeavouros` |
|
||||
| <a href="https://www.alpinelinux.org" title="https://www.alpinelinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/alpine.png" alt="Alpine Linux" width="16" height="16" style="vertical-align: -0.15em"></a> **Alpine Linux** | `alpine` |
|
||||
| <a href="https://www.gentoo.org" title="https://www.gentoo.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/gentoo.svg" alt="Gentoo" width="16" height="16" style="vertical-align: -0.2em"></a> **Gentoo** | `gentoo` `gentoo-portage` |
|
||||
| <a href="https://nixos.org" title="https://nixos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" alt="NixOS" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | `nix-channels` |
|
||||
| <a href="https://nixos.org" title="https://nixos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" alt="NixOS" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | `nix-channels` |
|
||||
| <a href="https://voidlinux.org" title="https://voidlinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/void-linux.png" alt="Void Linux" width="16" height="16" style="vertical-align: -0.15em"></a> **Void Linux** | `voidlinux` |
|
||||
Reference in New Issue
Block a user