How to Install XFCE Desktop in RHEL, Rocky Linux & AlmaLinux

The XFCE desktop environment is one among the several desktop environments that you can install on our Linux system to enhance user experience. It’s one of the earliest desktop environments that was first released in 1996 as a replacement for CDE (Common Desktop Environment).

[ You might also like: 13 Open Source Linux Desktop Environments ]

XFCE is a lightweight desktop environment with a small memory footprint and is easy on your computing resources. It takes up only a tiny fraction of the CPU and memory usage compared to its counterparts such as GNOME and KDE.

This is ideal when it comes to system performance as this avails the available resources to other processes. In addition, XFCE is highly configurable, stable and provides a myriad of built-in plugins to extend functionality.

In this article, we will walk you through the installation of XFCE Desktop on RHEL-based Linux distributions such as Rocky Linux and AlmaLinux.

Step 1: Install EPEL Repository and Group

The installation of the XFCE desktop environment requires us to, first, install the EPEL repository which is a repository that provides high-quality software packages for RHEL-distributions.

To install EPEL on your system, run the following command:

$ sudo dnf install epel-release
Install EPEL Repository
Install EPEL Repository

In our case, EPEL is already installed, hence, no further action is required.

Once you have installed EPEL, you can confirm its presence by executing the rpm command:

$ rpm -qi epel-release

The output yields detailed information such as the version installed, release, installation date, and size just to mention a few properties.

Confirm EPEL Repository
Confirm EPEL Repository

Next, enable the EPEL group as follows.

$ sudo dnf --enablerepo=epel group

Step 2: Install XFCE on Rocky and AlmaLinux

With EPEL installed, the next course of action is to install the XFCE package. You can confirm that the XFCE package is a package group that is provided by the EPEL repository as shown.

$ sudo dnf group list | grep -i xfce

Xfce

From the output, we can deduce that the XFCE package is available. Therefore, to install the XFCE package, run the following command:

$ sudo dnf groupinstall "Xfce" "base-x"

The command installs all the XFCE group and module packages and other dependencies on your system.

Install XFCE in Rocky Linux
Install XFCE in Rocky Linux

Step 3: Set XFCE to Start Automatically

If you are running a minimal installation, configure the XFCE desktop environment to start automatically on boot time.

$ sudo echo "exec /usr/bin/xfce4-session" >>  ~/.xinitrc
$ sudo systemctl set-default graphical

Then finally, reboot the system.

$ sudo reboot

If you already have GNOME installed, you need to click on the small gear wheel icon next to the ‘Sign In‘ button and select the ‘Xfce session’ option.

Thereafter, provide your password and hit ENTER or click ‘Sign In’ to login in.

Choose XFCE Session
Choose XFCE Session

This ushers you to the Xfce desktop environment.

Running XFCE in Rocky Linux
Running XFCE in Rocky Linux

As mentioned in the introduction, the XFCE desktop is quite simple and may not provide much in the way of stunning and appealing GUI features. The upside to this is the low resource utilization which allows most of your computing power to be channeled to more important system-related tasks.

And this wraps up our guide. We hope that you can comfortably install the XFCE desktop environment on Rocky and AlmaLinux.

Hey TecMint readers,

Exciting news! Every month, our top blog commenters will have the chance to win fantastic rewards, like free Linux eBooks such as RHCE, RHCSA, LFCS, Learn Linux, and Awk, each worth $20!

Learn more about the contest and stand a chance to win by sharing your thoughts below!

Ravi Saive
I am an experienced GNU/Linux expert and a full-stack software developer with over a decade in the field of Linux and Open Source technologies

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

2 Comments

Leave a Reply
  1. If you try this out on CentOS6 (in my case 6.3 x86_64) with a minimal install, you’ll need to add the EPEL repository to avoid dependencies issues.

    Reply

Got Something to Say? Join the Discussion...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.