• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Uninstall/Remove GNOME from CentOS/RHEL 7

by admin

The GNU Network Object Model Environment, also known as GNOME, is a powerful and easy-to-use environment consisting primarily of a panel, a desktop, and a set of desktop tools with which program interfaces can be constructed. GNOME is designed to provide a flexible platform for the development of powerful applications.

But sometimes, you may want to remove it and use another desktop environment like KDE. This document illustrates the steps required to remove “GNOME” using Yum on CentOS/RHEL 7.

Before starting the procedure to remove “GNOME”, take a VM snapshot or full system backup. “GNOME” is deeply integrated into the system once it’s installed, it won’t be easy to remove all traces. In order to have a fully clean system, it’s recommended to re-install it without a GUI.

To remove the “GNOME” follow the steps below:

1. Modify /etc/yum.conf and add the line below:

# vi /etc/yum.conf
group_command=simple
Note: When you tell yum to remove a package group, it will remove every package in that group, even if those packages are members of other package groups or dependencies of other installed packages. However, you can instruct yum to remove only those packages which are not required by any other packages or groups by adding the groupremove_leaf_only=1.

2. Then run the following commands to remove the GNOME group packages.

# yum groupremove 'X Window System' 'GNOME' yum groupremove "multimedia" "internet-browser" "guest-agents" "guest-desktop-agents" "x11" "print-client" "dial-up"
# yum groupinstall 'Minimal Install' 'System administration tools'
# yum groupremove 'Server with GUI' 
# yum groupremove 'Fonts' 'Graphical Administration Tools'

3. Reboot the server:

# shutdown -r

Filed Under: CentOS/RHEL, CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. iwctl Command Examples in Linux
  2. PAM password complexity and pam_cracklib credit system in CentOS/RHEL
  3. ipcalc Command Examples in Linux
  4. minicom Command Examples in Linux
  5. acountry Command Examples in Linux
  6. Bind to port 22 on 0.0.0.0 failed: address already in use – error while starting sshd service CentOS/RHEL
  7. How to Add Locale on CentOS/RHEL 8
  8. lshw: command not found
  9. How to Configure firewalld Logging in CentOS/RHEL 8
  10. nginx 504 gateway time-out

You May Also Like

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright