rockylinux換源 安裝xfce

wolbo發表於2024-10-15

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

相關文章