[CentOS] How to remove GNOME display from CentOS 7

In case if it needs to be re-installed...

Uninstall

sudo yum groupremove "GNOME Desktop"

Contact an IT/Admin before if you want make drastic changes to your fragile Linux packages.


If  an .xinitrc file was created in your ~/ (root) directory, you may want to remove it with the command below

rm ~/.xinitrc.

To check other groups installed on your OS...

sudo yum grouplist


Install

sudo yum -y groups install "GNOME Desktop"
sudo systemctl set-default graphical.target
sudo reboot