Guides 11792 Published by

The guide shows how to install a lightweight Xfce desktop on CentOS 9 Stream, pointing out that it can speed up boot times and cut RAM usage after a heavy GNOME update. It lists the prerequisites of root or sudo access and internet connectivity, then explains enabling EPEL before running `dnf groupinstall "Xfce Desktop"` to bring in core components and a display manager. Optionally it demonstrates swapping GDM for LightDM with `dnf install lightdm` and systemctl commands, followed by a reboot so the new session loads correctly. The final sections give quick tests, troubleshooting advice for missing desktops or crashes, and conclude that Xfce offers an efficient, familiar environment suitable for modest hardware.



Install Xfce Desktop on CentOS 9 Stream

If you’re running CentOS 9 Stream and want a lighter desktop that actually boots faster, here’s how to get Xfce up and running in a handful of minutes.

Why Xfce on CentOS 9 Stream?

I’ve seen this happen after a bad GNOME update that left the session hanging. Switching to Xfce freed up RAM and made my laptop feel like brand‑new again. Plus, Xfce is still modern enough to run most apps without feeling dated.

Prerequisites
  • A CentOS 9 Stream system with root or sudo privileges.
  • Internet access (you’ll need to pull packages from the repositories).

If you’re on a minimal install, make sure your machine has the `dnf` package manager working and that you can reach the internet.

Enable the EPEL Repository

CentOS doesn’t ship Xfce in its base repos. The Extra Packages for Enterprise Linux (EPEL) repo is where Xfce lives.

sudo dnf install epel-release -y

Why this matters: Without EPEL, `dnf` won’t find the `xfce4` metapackage and you’ll end up with a half‑empty desktop.

Install Xfce Packages

The simplest way to pull in everything you need is to use the `xfce4` meta package. It pulls in the core desktop plus common goodies like the panel, session manager, and file manager.

sudo dnf groupinstall "Xfce Desktop" -y

You’ll see a long list of packages; just sit back while they download and install. This command installs not only Xfce but also the necessary display manager (GDM is still installed by default).

Why this matters: The meta package ensures you get a coherent, working desktop instead of piecemeal components that might miss dependencies.

Switch to LightDM (Optional)

CentOS ships with GDM, which is heavier than we need for Xfce. If you want an even lighter login manager, swap it out for LightDM:

sudo dnf install lightdm -y
sudo systemctl enable --now lightdm.service
sudo systemctl disable gdm.service

Why this matters: GDM can chew up CPU cycles on low‑end hardware. LightDM is simpler and starts faster, giving you a snappier experience.

Reboot into Xfce
sudo reboot

After the machine comes back online, log in at the login screen. You’ll now be presented with an Xfce session instead of GNOME.

Why this matters: A fresh boot ensures all services reload under the new desktop environment and eliminates any stale configuration from before.

Quick Test

Once logged in, open a terminal (`Ctrl+Alt+T`) and run:

xfconf-query -c xsettings -p /Net/ThemeName -n

If you see a theme name returned, Xfce is actively managing settings. Try opening the file manager or launching a browser to confirm everything works.

Troubleshooting
  • No desktop appears – make sure LightDM (or GDM) is enabled and running. Check status with `systemctl status lightdm` or `systemctl status gdm`.
  • Crashes on login – try removing leftover GNOME config files in your home directory: `rm -rf ~/.gnome ~/.gconf`.
Final Thoughts

Xfce is a solid choice for CentOS 9 Stream if you’re looking to squeeze performance out of modest hardware or just want a less bloated desktop. It installs quickly, uses few resources, and feels familiar enough that most users can pick up right away.