sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.aliyun.com/rockylinux|g' \
-i.bak \
/etc/yum.repos.d/rocky-*.repo
dnf makecache
sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=http://192.168.2.40:8081/repository/rocky-proxy/rockylinux|g' \
-i.bak \
/etc/yum.repos.d/rocky.repo
rocky linux 安裝xfce
sudo dnf --enablerepo=epel group -y install "Xfce" "base-x" && sudo systemctl restart gdm