Installing the Xfce desktop environment on RHEL 9

Latest response

Hello everyone. I would like to install the lightweight desktop environment Xfce on one of my older laptops running RHEL 9. Is the following procedure correct?

subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms

dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm

sudo rpm -qi epel-release

sudo dnf --enablerepo=epel group

sudo dnf group list | grep -i xfce

sudo dnf groupinstall "Xfce" "base-x"

sudo echo "exec /usr/bin/xfce4-session" >> ~/.xinitrc

sudo systemctl set-default graphical

sudo reboot

Thanks in advance.

Responses