centos10 更新配置
mkdir /etc/yum.repos.d/bak && mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/bak
cat > /etc/yum.repos.d/CentOS-Base.repo <<EOF
[baseos]
name=CentOS Stream 10 - BaseOS
baseurl=https://mirrors.aliyun.com/centos-stream/10-stream/BaseOS/$basearch/os/
enabled=1
gpgcheck=0
[appstream]
name=CentOS Stream 10 - AppStream
baseurl=https://mirrors.aliyun.com/centos-stream/10-stream/AppStream/$basearch/os/
enabled=1
gpgcheck=0
EOF
sudo dnf clean all
sudo dnf makecache
sudo dnf update -y