Skip to content

Commit a7ca9a8

Browse files
committed
bug fix #128
1 parent fc11fd4 commit a7ca9a8

2 files changed

Lines changed: 28 additions & 4 deletions

File tree

ChangeMirrors.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
## Author: SuperManito
3-
## Modified: 2026-03-04
3+
## Modified: 2026-04-08
44
## License: MIT
55
## GitHub: https://github.com/SuperManito/LinuxMirrors
66
## Website: https://linuxmirrors.cn
@@ -3295,7 +3295,19 @@ function change_mirrors_or_install_EPEL() {
32953295
local package_path="epel/epel-release-latest-${epel_version}"
32963296
case "${epel_version}" in
32973297
7)
3298-
package_path="epel-archive/7/${DEVICE_ARCH_RAW}/Packages/e/epel-release-7-14"
3298+
local epel_package_sub_version
3299+
case "${DEVICE_ARCH_RAW}" in
3300+
aarch64)
3301+
epel_package_sub_version="12"
3302+
;;
3303+
ppc64)
3304+
epel_package_sub_version="11"
3305+
;;
3306+
*)
3307+
epel_package_sub_version="14"
3308+
;;
3309+
esac
3310+
package_path="epel-archive/7/${DEVICE_ARCH_RAW}/Packages/e/epel-release-7-${epel_package_sub_version}"
32993311
;;
33003312
9)
33013313
## CentOS Stream 9 特殊,有两个不同的发行包 epel-release epel-next-release

ChangeMirrorsLite.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
## Author: SuperManito
3-
## Modified: 2026-03-04
3+
## Modified: 2026-04-08
44
## License: MIT
55
## GitHub: https://github.com/SuperManito/LinuxMirrors
66
## Website: https://linuxmirrors.cn
@@ -2678,7 +2678,19 @@ function change_mirrors_or_install_EPEL() {
26782678
local package_path="epel/epel-release-latest-${epel_version}"
26792679
case "${epel_version}" in
26802680
7)
2681-
package_path="epel-archive/7/${DEVICE_ARCH_RAW}/Packages/e/epel-release-7-14"
2681+
local epel_package_sub_version
2682+
case "${DEVICE_ARCH_RAW}" in
2683+
aarch64)
2684+
epel_package_sub_version="12"
2685+
;;
2686+
ppc64)
2687+
epel_package_sub_version="11"
2688+
;;
2689+
*)
2690+
epel_package_sub_version="14"
2691+
;;
2692+
esac
2693+
package_path="epel-archive/7/${DEVICE_ARCH_RAW}/Packages/e/epel-release-7-${epel_package_sub_version}"
26822694
;;
26832695
9)
26842696
## CentOS Stream 9 特殊,有两个不同的发行包 epel-release epel-next-release

0 commit comments

Comments
 (0)