mirror of
				https://gitee.com/SuperManito/LinuxMirrors
				synced 2025-11-04 08:20:28 +08:00 
			
		
		
		
	新增适配 AlmaLinux
This commit is contained in:
		
							
								
								
									
										16
									
								
								docs/assets/images/icon/almalinux.svg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								docs/assets/images/icon/almalinux.svg
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
<svg xmlns="http://www.w3.org/2000/svg" id="Layer_1" x="0" y="0" version="1.1" xml:space="preserve" viewBox="0 0 61.028259 59.731277">
 | 
			
		||||
  <defs/>
 | 
			
		||||
  <style id="style2" type="text/css">
 | 
			
		||||
    .st1{fill:#86da2f}.st2{fill:#24c2ff}.st3{fill:#ffcb12}.st4{fill:#0069da}.st5{fill:#ff4649}
 | 
			
		||||
  </style>
 | 
			
		||||
  <path id="path22" d="M56.11382 33.731278c2.6-.2 4.7 1.5 4.9 4.1.2 2.7-1.7 4.9-4.3 5.1-2.5.2-4.7-1.7-4.9-4.2-.2-2.7 1.6-4.7 4.3-5z" class="st1"/>
 | 
			
		||||
  <path id="path24" d="M24.51382 55.031278c0-2.6 2-4.6 4.4-4.6 2.4 0 4.7 2.2 4.7 4.7 0 2.4-2 4.5-4.3 4.6-2.9 0-4.8-1.8-4.8-4.7z" class="st2"/>
 | 
			
		||||
  <path id="path26" d="M31.61382 25.831278c-.4.2-.6-.1-.7-.4-3.7-6.9-2.6-15.6000004 3.9-20.8000004 1.7-1.4 4.9-1.7 6.3-.3.6.5.7 1.1.8 1.8.2 1.5.5 3 1.5 4.2000004 1.1 1.3 2.5 1.8 4.1 1.7 1.4 0 2.8-.2 3.7 1.4.5.9.3 4.4-.5 5.1-.4.3-.7.1-1 0-2.3-.9-4.7-.9-7.1-.5-.8.1-1.2-.1-1.2-1-.1-1.5-.4-2.9-1.2-4.2-1.5-2.7-4.3-2.8-6.1-.3-1.5 2-1.9 4.4-2.3 6.8-.4 2.1-.3 4.3-.2 6.5 0 0-.1 0 0 0z" class="st3"/>
 | 
			
		||||
  <path id="path28" d="M34.11382 27.331278c-.2-.3-.1-.6.2-.8 5.7-5.2 14.2-6.2 20.8-1.1 1.7 1.4 2.8 4.3 1.9 6-.4.7-.9 1-1.5 1.2-1.4.6-2.7 1.2-3.6 2.5-.9 1.3-1.1 2.8-.7 4.4.3 1.3.8 2.7-.5 3.9-.7.7-4.1 1.3-5 .7-.4-.3-.3-.6-.2-1 .3-2.5-.3-4.8-1.2-7-.3-.8-.2-1.2.6-1.4 1.4-.4 2.7-1.1 3.7-2.1 2.2-2.1 1.7-4.8-1.2-6-2.3-1-4.7-.8-7-.6-2.2.1-4.3.7-6.3 1.3z" class="st1"/>
 | 
			
		||||
  <path id="path30" d="M32.81382 29.931278c.3-.3.5-.2.8 0 6.6 4 10 11.9 7 19.6-.8 2-3.4 4-5.3 3.5-.8-.2-1.2-.6-1.6-1.1-.9-1.2-1.9-2.3-3.4-2.8-1.6-.5-3-.2-4.4.6-1.2.7-2.4 1.6-3.9.7-.9-.5-2.4-3.6-2.1-4.6.2-.4.6-.4 1-.4 2.5-.4 4.5-1.6 6.4-3.2.6-.5 1.1-.5 1.6.2.8 1.2 1.8 2.2 3.1 2.9 2.6 1.5 5.1.2 5.4-2.8.3-2.5-.6-4.7-1.4-6.9-.9-2-2-3.9-3.2-5.7z" class="st2"/>
 | 
			
		||||
  <path id="path32" d="M29.61382 30.531278c-.4 2-1.3 3.9-2.5 5.6-3.6 5.4-8.8 7.6-15.2 7-2.2999997-.2-4.1999997-2.1-4.3999997-4-.1-.8.1-1.4.6-2 .7-.9 1.3-1.7 1.6-2.8.5999997-2.2-.2-4-1.8-5.6-2.2-2.2-1.9-4.2.7-5.8.3-.2.7-.4 1.1-.6.5999997-.3 1.0999997-.3 1.2999997.4.9 2.3 2.7 4 4.7 5.4.7.6.7 1 .1 1.7-1.2 1.3-1.9 2.9-2 4.7-.2 2.2 1.1 3.6 3.3 3.6 1.4 0 2.7-.5 3.9-1.1 3.1-1.6 5.5-3.9 7.8-6.3.3-.1.4-.3.8-.2z" class="st4"/>
 | 
			
		||||
  <path id="path34" d="M13.21382 9.5312776c.2 0 .7.1 1.2.2 3.7.7000004 6-.6 7.2-4.1.8-2.3 2.5-3 4.7-1.8.1 0 .1.1.2.1 2.3 1.3 2.3 1.5.9 3.5-1.2 1.6-1.8 3.4000004-2.1 5.3000004-.2 1.1-.6 1.3-1.6.9-1.6-.6-3.3-.6-5 0-1.9.6-2.7 2.3-2.1 4.2.8 2.5 3 3.6 4.9 4.9 1.9 1.3 4.1 2 6.2 2.9.3.1.8.1.7.6-.1.3-.5.3-.9.3-4.5.2-8.8-.5-12.3-3.5-3.3-2.7-5.6999997-6-5.2999997-10.6.2999997-1.5 1.3999997-2.6000004 3.2999997-2.9000004z" class="st5"/>
 | 
			
		||||
  <path id="path36" d="M5.0138203 37.631278c-2.4.3-4.80000003-1.7-5.00000003-4.2-.2-2.4 1.80000003-4.8 4.10000003-5 2.6-.3 5 1.5 5.2 3.9.1 2.3-1.4 5.1-4.3 5.3z" class="st4"/>
 | 
			
		||||
  <path id="path38" d="M47.01382 2.0312776c2.5-.2 4.9 1.8 5.1 4.3.2 2.4-1.8 4.7000004-4.2 4.9000004-2.6.2-4.9-1.7000004-5.1-4.2000004-.2-2.5 1.6-4.8 4.2-5z" class="st3"/>
 | 
			
		||||
  <path id="path40" d="M20.91382 3.9312776c.3 2.6-1.5 4.8-4.2 5.2-2.3.3-4.7-1.6-5-3.8-.3-2.9 1.3-4.99999996 4-5.29999996 2.5-.3 4.9 1.59999996 5.2 3.89999996z" class="st5"/>
 | 
			
		||||
</svg>
 | 
			
		||||
| 
		 After Width: | Height: | Size: 3.0 KiB  | 
| 
		 Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB  | 
| 
		 Before Width: | Height: | Size: 411 B After Width: | Height: | Size: 411 B  | 
@@ -12,7 +12,6 @@ GNU/Linux 一键更换系统软件源脚本 · 让换源更简单
 | 
			
		||||
 | 
			
		||||
!!! example inline end "适配计划"
 | 
			
		||||
 | 
			
		||||
    - [ ] AlmaLinux
 | 
			
		||||
    - [ ] OpenCloudOS
 | 
			
		||||
    - [ ] AnolisOS
 | 
			
		||||
 | 
			
		||||
@@ -26,7 +25,7 @@ GNU/Linux 一键更换系统软件源脚本 · 让换源更简单
 | 
			
		||||
    <td align="center">14.04 ~ 23</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://www.kali.org" target="_blank"><img src="/assets/images/icon/kali.svg" width="16" height="16"/></a> Kali Linux</td>
 | 
			
		||||
    <td><a href="https://www.kali.org" target="_blank"><img src="/assets/images/icon/kali-linux.svg" width="16" height="16"/></a> Kali Linux</td>
 | 
			
		||||
    <td align="center">2.0 ~ 2023</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
@@ -42,7 +41,11 @@ GNU/Linux 一键更换系统软件源脚本 · 让换源更简单
 | 
			
		||||
    <td align="center">8 ~ 9</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://rockylinux.org" target="_blank"><img src="/assets/images/icon/rocky.svg" width="16" height="16" style="vertical-align: -0.15em"/></a> Rocky Linux</td>
 | 
			
		||||
    <td><a href="https://rockylinux.org/zh_CN" target="_blank"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.25em"/></a> Rocky Linux</td>
 | 
			
		||||
    <td align="center">8.0 ~ 9</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://almalinux.org/zh-hans" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.25em"/></a> AlmaLinux</td>
 | 
			
		||||
    <td align="center">8.0 ~ 9</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										823
									
								
								docs/main.sh
									
									
									
									
									
								
							
							
						
						
									
										823
									
								
								docs/main.sh
									
									
									
									
									
								
							@@ -125,6 +125,7 @@ SYSTEM_RHEL="Red Hat Enterprise Linux"
 | 
			
		||||
SYSTEM_CENTOS="CentOS"
 | 
			
		||||
SYSTEM_CENTOS_STREAM="CentOS Stream"
 | 
			
		||||
SYSTEM_ROCKY="Rocky"
 | 
			
		||||
SYSTEM_ALMA="AlmaLinux"
 | 
			
		||||
SYSTEM_FEDORA="Fedora"
 | 
			
		||||
SYSTEM_OPENEULER="openEuler"
 | 
			
		||||
SYSTEM_OPENSUSE="openSUSE"
 | 
			
		||||
@@ -298,7 +299,6 @@ function EnvJudgment() {
 | 
			
		||||
            fi
 | 
			
		||||
            ;;
 | 
			
		||||
        esac
 | 
			
		||||
 | 
			
		||||
    fi
 | 
			
		||||
    ## 定义软件源同步/更新文字
 | 
			
		||||
    case "${SYSTEM_FACTIONS}" in
 | 
			
		||||
@@ -475,7 +475,7 @@ function ChooseWebProtocol() {
 | 
			
		||||
function ChooseInstallEPEL() {
 | 
			
		||||
    if [[ -z "${INSTALL_EPEL}" ]]; then
 | 
			
		||||
        case "${SYSTEM_JUDGMENT}" in
 | 
			
		||||
        "${SYSTEM_RHEL}" | "${SYSTEM_CENTOS}" | "${SYSTEM_CENTOS_STREAM}" | "${SYSTEM_ROCKY}")
 | 
			
		||||
        "${SYSTEM_RHEL}" | "${SYSTEM_CENTOS}" | "${SYSTEM_CENTOS_STREAM}" | "${SYSTEM_ROCKY}" | "${SYSTEM_ALMA}")
 | 
			
		||||
            ## 判断是否已安装 EPEL 软件包
 | 
			
		||||
            rpm -qa | grep epel-release -q
 | 
			
		||||
            VERIFICATION_EPEL=$?
 | 
			
		||||
@@ -513,9 +513,9 @@ function ChooseInstallEPEL() {
 | 
			
		||||
## 关闭防火墙和SELinux
 | 
			
		||||
function CloseFirewall() {
 | 
			
		||||
    function Main() {
 | 
			
		||||
        local SelinuxConf=/etc/selinux/config
 | 
			
		||||
        local SelinuxConfig=/etc/selinux/config
 | 
			
		||||
        systemctl disable --now firewalld >/dev/null 2>&1
 | 
			
		||||
        [ -s $SelinuxConf ] && sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" $SelinuxConfig && setenforce 0 >/dev/null 2>&1
 | 
			
		||||
        [ -s $SelinuxConfig ] && sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" $SelinuxConfig && setenforce 0 >/dev/null 2>&1
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if [ -x /usr/bin/systemctl ]; then
 | 
			
		||||
@@ -1057,6 +1057,9 @@ function RedHatMirrors() {
 | 
			
		||||
    "${SYSTEM_ROCKY}")
 | 
			
		||||
        GenRepoFiles_RockyLinux ${SYSTEM_VERSION_NUMBER:0:1}
 | 
			
		||||
        ;;
 | 
			
		||||
    "${SYSTEM_ALMA}")
 | 
			
		||||
        GenRepoFiles_AlmaLinux ${SYSTEM_VERSION_NUMBER:0:1}
 | 
			
		||||
        ;;
 | 
			
		||||
    "${SYSTEM_FEDORA}")
 | 
			
		||||
        GenRepoFiles_Fedora
 | 
			
		||||
        ;;
 | 
			
		||||
@@ -1124,9 +1127,6 @@ function RedHatMirrors() {
 | 
			
		||||
            sed -i "s|mirror.centos.org|${SOURCE}|g" CentOS-*
 | 
			
		||||
            ;;
 | 
			
		||||
        esac
 | 
			
		||||
 | 
			
		||||
        # EPEL 附加软件包(安装/换源)
 | 
			
		||||
        [ ${INSTALL_EPEL} = "True" ] && EPELMirrors
 | 
			
		||||
        ;;
 | 
			
		||||
    "${SYSTEM_CENTOS}")
 | 
			
		||||
        sed -i 's|^mirrorlist=|#mirrorlist=|g' CentOS-*
 | 
			
		||||
@@ -1143,9 +1143,6 @@ function RedHatMirrors() {
 | 
			
		||||
        sed -i "s|^#baseurl=http|baseurl=${WEB_PROTOCOL}|g" CentOS-*
 | 
			
		||||
        # 更换软件源
 | 
			
		||||
        sed -i "s|mirror.centos.org|${SOURCE}|g" CentOS-*
 | 
			
		||||
 | 
			
		||||
        # EPEL 附加软件包(安装/换源)
 | 
			
		||||
        [ ${INSTALL_EPEL} = "True" ] && EPELMirrors
 | 
			
		||||
        ;;
 | 
			
		||||
    "${SYSTEM_CENTOS_STREAM}")
 | 
			
		||||
        # CentOS Stream 9 使用的是 centos-stream 镜像,而 CentOS Stream 8 使用的是 centos 镜像
 | 
			
		||||
@@ -1174,9 +1171,6 @@ function RedHatMirrors() {
 | 
			
		||||
            sed -i "s|mirror.centos.org|${SOURCE}|g" CentOS-Stream-*
 | 
			
		||||
            ;;
 | 
			
		||||
        esac
 | 
			
		||||
 | 
			
		||||
        # EPEL 附加软件包(安装/换源)
 | 
			
		||||
        [ ${INSTALL_EPEL} = "True" ] && EPELMirrors
 | 
			
		||||
        ;;
 | 
			
		||||
    "${SYSTEM_ROCKY}")
 | 
			
		||||
        case ${SYSTEM_VERSION_NUMBER:0:1} in
 | 
			
		||||
@@ -1209,9 +1203,57 @@ function RedHatMirrors() {
 | 
			
		||||
            sed -i "s|dl.rockylinux.org/\$contentdir|${SOURCE}/${SOURCE_BRANCH}|g" Rocky-*
 | 
			
		||||
            ;;
 | 
			
		||||
        esac
 | 
			
		||||
        ;;
 | 
			
		||||
    "${SYSTEM_ALMA}")
 | 
			
		||||
        case ${SYSTEM_VERSION_NUMBER:0:1} in
 | 
			
		||||
        9)
 | 
			
		||||
            sed -i 's|^mirrorlist=|#mirrorlist=|g' almalinux-*
 | 
			
		||||
 | 
			
		||||
        # EPEL 附加软件包(安装/换源)
 | 
			
		||||
        [ ${INSTALL_EPEL} = "True" ] && EPELMirrors
 | 
			
		||||
            # 更换 WEB 协议(HTTP/HTTPS)
 | 
			
		||||
            sed -i "s|^# baseurl=http|baseurl=${WEB_PROTOCOL}|g" almalinux-*
 | 
			
		||||
            # 更换软件源
 | 
			
		||||
            sed -e "s|repo.almalinux.org/almalinux|${SOURCE}/${SOURCE_BRANCH}|g" \
 | 
			
		||||
                -e "s|repo.almalinux.org/vault|${SOURCE}/${SOURCE_BRANCH}-vault|g" \
 | 
			
		||||
                -i almalinux-*
 | 
			
		||||
            ;;
 | 
			
		||||
        8)
 | 
			
		||||
            sed -i 's|^mirrorlist=|#mirrorlist=|g' \
 | 
			
		||||
                almalinux-ha.repo \
 | 
			
		||||
                almalinux-nfv.repo \
 | 
			
		||||
                almalinux-plus.repo \
 | 
			
		||||
                almalinux-powertools.repo \
 | 
			
		||||
                almalinux-resilientstorage.repo \
 | 
			
		||||
                almalinux-rt.repo \
 | 
			
		||||
                almalinux-sap.repo \
 | 
			
		||||
                almalinux-saphana.repo \
 | 
			
		||||
                almalinux.repo
 | 
			
		||||
 | 
			
		||||
            # 更换 WEB 协议(HTTP/HTTPS)
 | 
			
		||||
            sed -i "s|^# baseurl=http|baseurl=${WEB_PROTOCOL}|g" \
 | 
			
		||||
                almalinux-ha.repo \
 | 
			
		||||
                almalinux-nfv.repo \
 | 
			
		||||
                almalinux-plus.repo \
 | 
			
		||||
                almalinux-powertools.repo \
 | 
			
		||||
                almalinux-resilientstorage.repo \
 | 
			
		||||
                almalinux-rt.repo \
 | 
			
		||||
                almalinux-sap.repo \
 | 
			
		||||
                almalinux-saphana.repo \
 | 
			
		||||
                almalinux.repo
 | 
			
		||||
            # 更换软件源
 | 
			
		||||
            sed -e "s|repo.almalinux.org/almalinux|${SOURCE}/${SOURCE_BRANCH}|g" \
 | 
			
		||||
                -e "s|repo.almalinux.org/vault|${SOURCE}/${SOURCE_BRANCH}-vault|g" \
 | 
			
		||||
                -i \
 | 
			
		||||
                almalinux-ha.repo \
 | 
			
		||||
                almalinux-nfv.repo \
 | 
			
		||||
                almalinux-plus.repo \
 | 
			
		||||
                almalinux-powertools.repo \
 | 
			
		||||
                almalinux-resilientstorage.repo \
 | 
			
		||||
                almalinux-rt.repo \
 | 
			
		||||
                almalinux-sap.repo \
 | 
			
		||||
                almalinux-saphana.repo \
 | 
			
		||||
                almalinux.repo
 | 
			
		||||
            ;;
 | 
			
		||||
        esac
 | 
			
		||||
        ;;
 | 
			
		||||
    "${SYSTEM_FEDORA}")
 | 
			
		||||
        sed -i 's|^metalink=|#metalink=|g' \
 | 
			
		||||
@@ -1240,6 +1282,13 @@ function RedHatMirrors() {
 | 
			
		||||
            fedora-updates-testing-modular.repo
 | 
			
		||||
        ;;
 | 
			
		||||
    esac
 | 
			
		||||
 | 
			
		||||
    ## EPEL 附加软件包(安装/换源)
 | 
			
		||||
    case "${SYSTEM_JUDGMENT}" in
 | 
			
		||||
    "${SYSTEM_RHEL}" | "${SYSTEM_CENTOS}" | "${SYSTEM_CENTOS_STREAM}" | "${SYSTEM_ROCKY}" | "${SYSTEM_ALMA}")
 | 
			
		||||
        [[ ${INSTALL_EPEL} == "True" ]] && EPELMirrors
 | 
			
		||||
        ;;
 | 
			
		||||
    esac
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
## 更换基于 openEuler 发行版的软件源
 | 
			
		||||
@@ -2620,7 +2669,6 @@ gpgcheck=1
 | 
			
		||||
enabled=0
 | 
			
		||||
metadata_expire=6h
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9
 | 
			
		||||
 | 
			
		||||
EOF
 | 
			
		||||
        ;;
 | 
			
		||||
    8)
 | 
			
		||||
@@ -2948,6 +2996,686 @@ EOF
 | 
			
		||||
    esac
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
## 生成 AlmaLinux 官方 repo 源文件
 | 
			
		||||
function GenRepoFiles_AlmaLinux() {
 | 
			
		||||
    case $1 in
 | 
			
		||||
    9)
 | 
			
		||||
        cat >$Dir_RedHatRepos/almalinux-appstream.repo <<\EOF
 | 
			
		||||
[appstream]
 | 
			
		||||
name=AlmaLinux $releasever - AppStream
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/appstream
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/AppStream/$basearch/os/
 | 
			
		||||
enabled=1
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
countme=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=1
 | 
			
		||||
 | 
			
		||||
[appstream-debug]
 | 
			
		||||
name=AlmaLinux $releasever - AppStream - Debug
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/appstream-debug
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/AppStream/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
 | 
			
		||||
[appstream-source]
 | 
			
		||||
name=AlmaLinux $releasever - AppStream - Source
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/appstream-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/AppStream/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
EOF
 | 
			
		||||
        cat >$Dir_RedHatRepos/almalinux-baseos.repo <<\EOF
 | 
			
		||||
[baseos]
 | 
			
		||||
name=AlmaLinux $releasever - BaseOS
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/BaseOS/$basearch/os/
 | 
			
		||||
enabled=1
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
countme=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=1
 | 
			
		||||
 | 
			
		||||
[baseos-debug]
 | 
			
		||||
name=AlmaLinux $releasever - BaseOS - Debug
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos-debug
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/BaseOS/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
 | 
			
		||||
[baseos-source]
 | 
			
		||||
name=AlmaLinux $releasever - BaseOS - Source
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/BaseOS/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
EOF
 | 
			
		||||
        cat >$Dir_RedHatRepos/almalinux-crb.repo <<\EOF
 | 
			
		||||
[crb]
 | 
			
		||||
name=AlmaLinux $releasever - CRB
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/crb
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/CRB/$basearch/os/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
countme=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
 | 
			
		||||
[crb-debug]
 | 
			
		||||
name=AlmaLinux $releasever - CRB - Debug
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/crb-debug
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/CRB/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
 | 
			
		||||
[crb-source]
 | 
			
		||||
name=AlmaLinux $releasever - CRB - Source
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/crb-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/CRB/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
EOF
 | 
			
		||||
        cat >$Dir_RedHatRepos/almalinux-extras.repo <<\EOF
 | 
			
		||||
[extras]
 | 
			
		||||
name=AlmaLinux $releasever - Extras
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/extras
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/extras/$basearch/os/
 | 
			
		||||
enabled=1
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
countme=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
 | 
			
		||||
[extras-debug]
 | 
			
		||||
name=AlmaLinux $releasever - Extras - Debug
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/extras-debug
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/extras/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
 | 
			
		||||
[extras-source]
 | 
			
		||||
name=AlmaLinux $releasever - Extras - Source
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/extras-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/extras/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
EOF
 | 
			
		||||
        cat >$Dir_RedHatRepos/almalinux-highavailability.repo <<\EOF
 | 
			
		||||
[highavailability]
 | 
			
		||||
name=AlmaLinux $releasever - HighAvailability
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/highavailability
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/HighAvailability/$basearch/os/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
countme=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
 | 
			
		||||
[highavailability-debug]
 | 
			
		||||
name=AlmaLinux $releasever - HighAvailability - Debug
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/highavailability-debug
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/HighAvailability/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
 | 
			
		||||
[highavailability-source]
 | 
			
		||||
name=AlmaLinux $releasever - HighAvailability - Source
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/highavailability-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/HighAvailability/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
EOF
 | 
			
		||||
        cat >$Dir_RedHatRepos/almalinux-nfv.repo <<\EOF
 | 
			
		||||
[nfv]
 | 
			
		||||
name=AlmaLinux $releasever - NFV
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/nfv
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/NFV/$basearch/os/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
countme=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
 | 
			
		||||
[nfv-debug]
 | 
			
		||||
name=AlmaLinux $releasever - NFV - Debug
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/nfv-debug
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/NFV/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
 | 
			
		||||
[nfv-source]
 | 
			
		||||
name=AlmaLinux $releasever - NFV - Source
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/nfv-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/NFV/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
EOF
 | 
			
		||||
        cat >$Dir_RedHatRepos/almalinux-plus.repo <<\EOF
 | 
			
		||||
[plus]
 | 
			
		||||
name=AlmaLinux $releasever - Plus
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/plus
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/plus/$basearch/os/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
countme=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
 | 
			
		||||
[plus-debug]
 | 
			
		||||
name=AlmaLinux $releasever - Plus - Debug
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/plus-debug
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/plus/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
 | 
			
		||||
[plus-source]
 | 
			
		||||
name=AlmaLinux $releasever - Plus - Source
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/plus-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/plus/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
EOF
 | 
			
		||||
        cat >$Dir_RedHatRepos/almalinux-resilientstorage.repo <<\EOF
 | 
			
		||||
[resilientstorage]
 | 
			
		||||
name=AlmaLinux $releasever - ResilientStorage
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/resilientstorage
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/ResilientStorage/$basearch/os/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
countme=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
 | 
			
		||||
[resilientstorage-debug]
 | 
			
		||||
name=AlmaLinux $releasever - ResilientStorage - Debug
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/resilientstorage-debug
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/ResilientStorage/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
 | 
			
		||||
[resilientstorage-source]
 | 
			
		||||
name=AlmaLinux $releasever - ResilientStorage - Source
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/resilientstorage-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/ResilientStorage/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
EOF
 | 
			
		||||
        cat >$Dir_RedHatRepos/almalinux-rt.repo <<\EOF
 | 
			
		||||
[rt]
 | 
			
		||||
name=AlmaLinux $releasever - RT
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/rt
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/RT/$basearch/os/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
countme=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
 | 
			
		||||
[rt-debug]
 | 
			
		||||
name=AlmaLinux $releasever - RT - Debug
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/rt-debug
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/RT/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
 | 
			
		||||
[rt-source]
 | 
			
		||||
name=AlmaLinux $releasever - RT - Source
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/rt-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/RT/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
EOF
 | 
			
		||||
        cat >$Dir_RedHatRepos/almalinux-sap.repo <<\EOF
 | 
			
		||||
[sap]
 | 
			
		||||
name=AlmaLinux $releasever - SAP
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/sap
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/SAP/$basearch/os/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
countme=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
 | 
			
		||||
[sap-debug]
 | 
			
		||||
name=AlmaLinux $releasever - SAP - Debug
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/sap-debug
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/SAP/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
 | 
			
		||||
[sap-source]
 | 
			
		||||
name=AlmaLinux $releasever - SAP - Source
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/sap-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/SAP/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
EOF
 | 
			
		||||
        cat >$Dir_RedHatRepos/almalinux-saphana.repo <<\EOF
 | 
			
		||||
[saphana]
 | 
			
		||||
name=AlmaLinux $releasever - SAPHANA
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/saphana
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/SAPHANA/$basearch/os/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
countme=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
 | 
			
		||||
[saphana-debug]
 | 
			
		||||
name=AlmaLinux $releasever - SAPHANA - Debug
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/saphana-debug
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/SAPHANA/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
 | 
			
		||||
[saphana-source]
 | 
			
		||||
name=AlmaLinux $releasever - SAPHANA - Source
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/saphana-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/SAPHANA/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
 | 
			
		||||
metadata_expire=86400
 | 
			
		||||
enabled_metadata=0
 | 
			
		||||
EOF
 | 
			
		||||
        ;;
 | 
			
		||||
    8)
 | 
			
		||||
        cat >$Dir_RedHatRepos/almalinux-ha.repo <<\EOF
 | 
			
		||||
# almalinux-ha.repo
 | 
			
		||||
 | 
			
		||||
[ha]
 | 
			
		||||
name=AlmaLinux $releasever - HighAvailability
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/ha
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/HighAvailability/$basearch/os/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
countme=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
## Sources
 | 
			
		||||
[ha-source]
 | 
			
		||||
name=AlmaLinux $releasever - HighAvailability Source
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/ha-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/HighAvailability/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
## Debuginfo
 | 
			
		||||
[ha-debuginfo]
 | 
			
		||||
name=AlmaLinux $releasever - HighAvailability debuginfo
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/ha-debuginfo
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/HighAvailability/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
EOF
 | 
			
		||||
        cat >$Dir_RedHatRepos/almalinux-nfv.repo <<\EOF
 | 
			
		||||
# almalinux-nfv.repo
 | 
			
		||||
 | 
			
		||||
[nfv]
 | 
			
		||||
name=AlmaLinux $releasever - Real Time for NFV
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/nfv
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/NFV/$basearch/os/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
## Sources
 | 
			
		||||
[nfv-source]
 | 
			
		||||
name=AlmaLinux $releasever - Real Time for NFV Sources
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/nfv-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/NFV/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
## Debuginfo
 | 
			
		||||
[nfv-debuginfo]
 | 
			
		||||
name=AlmaLinux $releasever - Real Time for NFV Debuginfo
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/nfv-debuginfo
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/NFV/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
EOF
 | 
			
		||||
        cat >$Dir_RedHatRepos/almalinux-plus.repo <<\EOF
 | 
			
		||||
# almalinux-plus.repo
 | 
			
		||||
 | 
			
		||||
[plus]
 | 
			
		||||
name=AlmaLinux $releasever - Plus
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/plus
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/plus/$basearch/os/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
countme=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
## Sources
 | 
			
		||||
[plus-source]
 | 
			
		||||
name=AlmaLinux $releasever - Plus Source
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/plus-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/plus/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
## Debuginfo
 | 
			
		||||
[plus-debuginfo]
 | 
			
		||||
name=AlmaLinux $releasever - Plus debuginfo
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/plus-debuginfo
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/plus/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
EOF
 | 
			
		||||
        cat >$Dir_RedHatRepos/almalinux-powertools.repo <<\EOF
 | 
			
		||||
# almalinux-powertools.repo
 | 
			
		||||
 | 
			
		||||
[powertools]
 | 
			
		||||
name=AlmaLinux $releasever - PowerTools
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/powertools
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/PowerTools/$basearch/os/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
countme=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
## Sources
 | 
			
		||||
[powertools-source]
 | 
			
		||||
name=AlmaLinux $releasever - PowerTools Source
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/powertools-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/PowerTools/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
## Debuginfo
 | 
			
		||||
[powertools-debuginfo]
 | 
			
		||||
name=AlmaLinux $releasever - PowerTools debuginfo
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/powertools-debuginfo
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/PowerTools/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
EOF
 | 
			
		||||
        cat >$Dir_RedHatRepos/almalinux-resilientstorage.repo <<\EOF
 | 
			
		||||
# almalinux-resilientstorage.repo
 | 
			
		||||
 | 
			
		||||
[resilientstorage]
 | 
			
		||||
name=AlmaLinux $releasever - ResilientStorage
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/resilientstorage
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/ResilientStorage/$basearch/os/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
countme=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
## Sources
 | 
			
		||||
[resilientstorage-source]
 | 
			
		||||
name=AlmaLinux $releasever - ResilientStorage Source
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/resilientstorage-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/ResilientStorage/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
## Debuginfo
 | 
			
		||||
[resilientstorage-debuginfo]
 | 
			
		||||
name=AlmaLinux $releasever - ResilientStorage debuginfo
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/resilientstorage-debuginfo
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/ResilientStorage/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
EOF
 | 
			
		||||
        cat >$Dir_RedHatRepos/almalinux-rt.repo <<\EOF
 | 
			
		||||
# almalinux-rt.repo
 | 
			
		||||
 | 
			
		||||
[rt]
 | 
			
		||||
name=AlmaLinux $releasever - Real Time
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/rt
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/RT/$basearch/os/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
## Sources
 | 
			
		||||
[rt-source]
 | 
			
		||||
name=AlmaLinux $releasever - Real Time Sources
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/rt-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/RT/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
## Debuginfo
 | 
			
		||||
[rt-debuginfo]
 | 
			
		||||
name=AlmaLinux $releasever - Real Time Debuginfo
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/rt-debuginfo
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/RT/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
EOF
 | 
			
		||||
        cat >$Dir_RedHatRepos/almalinux-sap.repo <<\EOF
 | 
			
		||||
# almalinux-sap.repo
 | 
			
		||||
 | 
			
		||||
[sap]
 | 
			
		||||
name=AlmaLinux $releasever - SAP
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/sap
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/SAP/$basearch/os/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
countme=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
## Sources
 | 
			
		||||
[sap-source]
 | 
			
		||||
name=AlmaLinux $releasever - SAP Sources
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/sap-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/SAP/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
## Debuginfo
 | 
			
		||||
[sap-debuginfo]
 | 
			
		||||
name=AlmaLinux $releasever - SAP Debuginfo
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/sap-debuginfo
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/SAP/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
EOF
 | 
			
		||||
        cat >$Dir_RedHatRepos/almalinux-saphana.repo <<\EOF
 | 
			
		||||
# almalinux-saphana.repo
 | 
			
		||||
 | 
			
		||||
[saphana]
 | 
			
		||||
name=AlmaLinux $releasever - SAP HANA
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/saphana
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/SAPHANA/$basearch/os/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
countme=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
## Sources
 | 
			
		||||
[saphana-source]
 | 
			
		||||
name=AlmaLinux $releasever - SAP HANA Sources
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/saphana-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/SAPHANA/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
## Debuginfo
 | 
			
		||||
[saphana-debuginfo]
 | 
			
		||||
name=AlmaLinux $releasever - SAP HANA Debuginfo
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/saphana-debuginfo
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/SAPHANA/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
EOF
 | 
			
		||||
        cat >$Dir_RedHatRepos/almalinux.repo <<\EOF
 | 
			
		||||
# almalinux.repo
 | 
			
		||||
 | 
			
		||||
[baseos]
 | 
			
		||||
name=AlmaLinux $releasever - BaseOS
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/BaseOS/$basearch/os/
 | 
			
		||||
enabled=1
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
countme=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
[appstream]
 | 
			
		||||
name=AlmaLinux $releasever - AppStream
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/appstream
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/AppStream/$basearch/os/
 | 
			
		||||
enabled=1
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
countme=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
[extras]
 | 
			
		||||
name=AlmaLinux $releasever - Extras
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/extras
 | 
			
		||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/extras/$basearch/os/
 | 
			
		||||
enabled=1
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
countme=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
## Sources
 | 
			
		||||
[baseos-source]
 | 
			
		||||
name=AlmaLinux $releasever - BaseOS Source
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/BaseOS/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
[appstream-source]
 | 
			
		||||
name=AlmaLinux $releasever - AppStream Source
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/appstream-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/AppStream/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
[extras-source]
 | 
			
		||||
name=AlmaLinux $releasever - Extras Source
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/extras-source
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/extras/Source/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
## Debuginfo
 | 
			
		||||
[baseos-debuginfo]
 | 
			
		||||
name=AlmaLinux $releasever - BaseOS debuginfo
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos-debuginfo
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/BaseOS/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
[appstream-debuginfo]
 | 
			
		||||
name=AlmaLinux $releasever - AppStream debuginfo
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/appstream-debuginfo
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/AppStream/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
 | 
			
		||||
[extras-debuginfo]
 | 
			
		||||
name=AlmaLinux $releasever - Extras debuginfo
 | 
			
		||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/extras-debuginfo
 | 
			
		||||
# baseurl=https://repo.almalinux.org/vault/$releasever/extras/debug/$basearch/
 | 
			
		||||
enabled=0
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
 | 
			
		||||
EOF
 | 
			
		||||
        ;;
 | 
			
		||||
    esac
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
## 生成 Fedora 官方 repo 源文件
 | 
			
		||||
function GenRepoFiles_Fedora() {
 | 
			
		||||
    cat >$Dir_RedHatRepos/fedora-cisco-openh264.repo <<\EOF
 | 
			
		||||
@@ -3203,69 +3931,6 @@ skip_if_unavailable=False
 | 
			
		||||
EOF
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
## 生成 openEuler 官方 repo 源文件
 | 
			
		||||
function GenRepoFiles_openEuler() {
 | 
			
		||||
    cat >$Dir_openEulerRepos/openEuler.repo <<\EOF
 | 
			
		||||
#generic-repos is licensed under the Mulan PSL v2.
 | 
			
		||||
#You can use this software according to the terms and conditions of the Mulan PSL v2.
 | 
			
		||||
#You may obtain a copy of Mulan PSL v2 at:
 | 
			
		||||
#    http://license.coscl.org.cn/MulanPSL2
 | 
			
		||||
#THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
 | 
			
		||||
#IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
 | 
			
		||||
#PURPOSE.
 | 
			
		||||
#See the Mulan PSL v2 for more details.
 | 
			
		||||
 | 
			
		||||
[OS]
 | 
			
		||||
name=OS
 | 
			
		||||
baseurl=http://repo.openeuler.org/openEuler-$releasever/OS/$basearch/
 | 
			
		||||
enabled=1
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=http://repo.openeuler.org/openEuler-$releasever/OS/$basearch/RPM-GPG-KEY-openEuler
 | 
			
		||||
 | 
			
		||||
[everything]
 | 
			
		||||
name=everything
 | 
			
		||||
baseurl=http://repo.openeuler.org/openEuler-$releasever/everything/$basearch/
 | 
			
		||||
enabled=1
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=http://repo.openeuler.org/openEuler-$releasever/everything/$basearch/RPM-GPG-KEY-openEuler
 | 
			
		||||
 | 
			
		||||
[EPOL]
 | 
			
		||||
name=EPOL
 | 
			
		||||
baseurl=http://repo.openeuler.org/openEuler-$releasever/EPOL/main/$basearch/
 | 
			
		||||
enabled=1
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=http://repo.openeuler.org/openEuler-$releasever/OS/$basearch/RPM-GPG-KEY-openEuler
 | 
			
		||||
 | 
			
		||||
[debuginfo]
 | 
			
		||||
name=debuginfo
 | 
			
		||||
baseurl=http://repo.openeuler.org/openEuler-$releasever/debuginfo/$basearch/
 | 
			
		||||
enabled=1
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=http://repo.openeuler.org/openEuler-$releasever/debuginfo/$basearch/RPM-GPG-KEY-openEuler
 | 
			
		||||
 | 
			
		||||
[source]
 | 
			
		||||
name=source
 | 
			
		||||
baseurl=http://repo.openeuler.org/openEuler-$releasever/source/
 | 
			
		||||
enabled=1
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=http://repo.openeuler.org/openEuler-$releasever/source/RPM-GPG-KEY-openEuler
 | 
			
		||||
 | 
			
		||||
[update]
 | 
			
		||||
name=update
 | 
			
		||||
baseurl=http://repo.openeuler.org/openEuler-$releasever/update/$basearch/
 | 
			
		||||
enabled=1
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=http://repo.openeuler.org/openEuler-$releasever/OS/$basearch/RPM-GPG-KEY-openEuler
 | 
			
		||||
 | 
			
		||||
[update-source]
 | 
			
		||||
name=update-source
 | 
			
		||||
baseurl=http://repo.openeuler.org/openEuler-$releasever/update/source/
 | 
			
		||||
enabled=1
 | 
			
		||||
gpgcheck=1
 | 
			
		||||
gpgkey=http://repo.openeuler.org/openEuler-$releasever/source/RPM-GPG-KEY-openEuler
 | 
			
		||||
EOF
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
## 生成 openSUSE 官方 repo 源文件
 | 
			
		||||
function GenRepoFiles_openSUSE() {
 | 
			
		||||
    case $1 in
 | 
			
		||||
 
 | 
			
		||||
@@ -6,23 +6,23 @@ hide:
 | 
			
		||||
 | 
			
		||||
## 中国大陆 :flag-CN:
 | 
			
		||||
 | 
			
		||||
| | 镜像站名称 | 镜像站地址 | IPv6 | Kali | Rocky | Fedora | openEuler | openSUSE | EPEL |
 | 
			
		||||
| :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: |
 | 
			
		||||
| 1 | 阿里云 | [mirrors.aliyun.com](https://developer.aliyun.com/mirror) | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-circle-off-outline:{ style="color: #F6B604" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 2 | 腾讯云 | [mirrors.tencent.com](https://mirrors.tencent.com) | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 3 | 华为云 | [mirrors.huaweicloud.com](https://mirrors.huaweicloud.com) | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } | :material-circle-off-outline:{ style="color: #F6B604" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 4 | 网易 | [mirrors.163.com](https://mirrors.163.com) | :material-close:{ style="color: #EF5350" } | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-circle-off-outline:{ style="color: #F6B604" } | :material-close:{ style="color: #EF5350" } |
 | 
			
		||||
| 5 | 搜狐 | [mirrors.sohu.com](https://mirrors.sohu.com) | :material-close:{ style="color: #EF5350" } | :material-close:{ style="color: #EF5350" } | :material-circle-off-outline:{ style="color: #F6B604" } | :material-check:{ style="color: #4DB6AC" } | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } | :material-close:{ style="color: #EF5350" } |
 | 
			
		||||
| 6 | 清华大学 | [mirrors.tuna.tsinghua.edu.cn](https://mirrors.tuna.tsinghua.edu.cn) | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 7 | 北京大学 | [mirrors.pku.edu.cn](https://mirrors.pku.edu.cn/Mirrors) | :material-check:{ style="color: #4DB6AC" } | :material-close:{ style="color: #EF5350" } | :material-close:{ style="color: #EF5350" } | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 8 | 浙江大学 | [mirrors.zju.edu.cn](https://mirrors.zju.edu.cn) | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 9 | 南京大学 | [mirrors.nju.edu.cn](https://mirrors.nju.edu.cn) | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 10 | 重庆大学 | [mirrors.cqu.edu.cn](https://mirrors.cqu.edu.cn) | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-circle-off-outline:{ style="color: #F6B604" } | :material-check:{ style="color: #4DB6AC" } | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 11 | 兰州大学 | [mirror.lzu.edu.cn](https://mirror.lzu.edu.cn) | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 12 | 上海交通大学 | [mirror.sjtu.edu.cn](https://mirror.sjtu.edu.cn) | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 13 | 哈尔滨工业大学 | [mirrors.hit.edu.cn](https://mirrors.hit.edu.cn) | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 14 | 中国科学技术大学 | [mirrors.ustc.edu.cn](https://mirrors.ustc.edu.cn) | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 15 | 中国科学院软件研究所 | [mirror.iscas.ac.cn](https://mirror.iscas.ac.cn) | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| | 镜像站名称 | 镜像站地址 | IPv6 | Kali | Rocky | AlmaLinux | EPEL | Fedora | openEuler | openSUSE |
 | 
			
		||||
| :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: |
 | 
			
		||||
| 1 | 阿里云 | [mirrors.aliyun.com](https://developer.aliyun.com/mirror) | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-circle-off-outline:{ style="color: #F6B604" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 2 | 腾讯云 | [mirrors.tencent.com](https://mirrors.tencent.com) | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 3 | 华为云 | [mirrors.huaweicloud.com](https://mirrors.huaweicloud.com) | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } | :material-circle-off-outline:{ style="color: #F6B604" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 4 | 网易 | [mirrors.163.com](https://mirrors.163.com) | :material-close:{ style="color: #EF5350" } | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } | :material-close:{ style="color: #EF5350" } | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-circle-off-outline:{ style="color: #F6B604" } |
 | 
			
		||||
| 5 | 搜狐 | [mirrors.sohu.com](https://mirrors.sohu.com) | :material-close:{ style="color: #EF5350" } | :material-close:{ style="color: #EF5350" } | :material-circle-off-outline:{ style="color: #F6B604" } | :material-close:{ style="color: #EF5350" } | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 6 | 清华大学 | [mirrors.tuna.tsinghua.edu.cn](https://mirrors.tuna.tsinghua.edu.cn) | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-close:{ style="color: #EF5350" } | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 7 | 北京大学 | [mirrors.pku.edu.cn](https://mirrors.pku.edu.cn/Mirrors) | :material-check:{ style="color: #4DB6AC" } | :material-close:{ style="color: #EF5350" } | :material-close:{ style="color: #EF5350" } | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 8 | 浙江大学 | [mirrors.zju.edu.cn](https://mirrors.zju.edu.cn) | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 9 | 南京大学 | [mirrors.nju.edu.cn](https://mirrors.nju.edu.cn) | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 10 | 重庆大学 | [mirrors.cqu.edu.cn](https://mirrors.cqu.edu.cn) | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-circle-off-outline:{ style="color: #F6B604" } | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 11 | 兰州大学 | [mirror.lzu.edu.cn](https://mirror.lzu.edu.cn) | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 12 | 上海交通大学 | [mirror.sjtu.edu.cn](https://mirror.sjtu.edu.cn) | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 13 | 哈尔滨工业大学 | [mirrors.hit.edu.cn](https://mirrors.hit.edu.cn) | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 14 | 中国科学技术大学 | [mirrors.ustc.edu.cn](https://mirrors.ustc.edu.cn) | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
| 15 | 中国科学院软件研究所 | [mirror.iscas.ac.cn](https://mirror.iscas.ac.cn) | :material-close:{ style="color: #EF5350" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } | :material-check:{ style="color: #4DB6AC" } |
 | 
			
		||||
 | 
			
		||||
上述列表中的镜像站均支持 `Debian` `Ubuntu` `CentOS` `Arch Linux` 软件源,列表根据单位性质、地理位置、名称长度进行排序与实际速度无关,目前没有扩充计划
 | 
			
		||||
 | 
			
		||||
@@ -218,7 +218,7 @@ hide:
 | 
			
		||||
 | 
			
		||||
该列表中的软件源参考自 [`Ubuntu 镜像列表`](https://launchpad.net/ubuntu/+cdmirrors)、[`Debian 镜像列表`](https://www.debian.org/CD/http-ftp/#mirrors)、[`Fedora Mirror Manager`](https://admin.fedoraproject.org/mirrormanager/mirrors) 并且全部经过了有效性验证,但未作实际测试
 | 
			
		||||
 | 
			
		||||
!!! note "帮助本项目完善更多海外软件源"
 | 
			
		||||
???+ note "帮助本项目完善更多海外软件源"
 | 
			
		||||
 | 
			
		||||
    如果你想补充更多海外软件源或更正当前已有,请修改脚本内的 [`mirror_list_abroad 数组变量`](https://github.com/SuperManito/LinuxMirrors/blame/main/ChangeMirrors.sh#L28) 并按照下面的编辑规范进行修改  
 | 
			
		||||
    你可以在确认软件源地址无误后前往 GitHub 仓库提交 [Pull Requests](https://github.com/SuperManito/LinuxMirrors/pulls),也可以 Fork 仓库后自行定制使用
 | 
			
		||||
 
 | 
			
		||||
@@ -39,7 +39,7 @@ bash ChangeMirrors.sh --source mirrors.ustc.edu.cn
 | 
			
		||||
    <td align="center">ubuntu/ubuntu-ports</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://www.kali.org" target="_blank"><img src="/../assets/images/icon/kali.svg" width="16" height="16"/></a> Kali Linux</td>
 | 
			
		||||
    <td><a href="https://www.kali.org" target="_blank"><img src="/../assets/images/icon/kali-linux.svg" width="16" height="16"/></a> Kali Linux</td>
 | 
			
		||||
    <td align="center">kali</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
@@ -55,7 +55,7 @@ bash ChangeMirrors.sh --source mirrors.ustc.edu.cn
 | 
			
		||||
    <td align="center">centos-stream</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://rockylinux.org" target="_blank"><img src="/../assets/images/icon/rocky.svg" width="16" height="16" style="vertical-align: -0.25em"/></a> Rocky Linux</td>
 | 
			
		||||
    <td><a href="https://rockylinux.org" target="_blank"><img src="/../assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.25em"/></a> Rocky Linux</td>
 | 
			
		||||
    <td align="center">rocky</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user