Page 1 of 1

How do you remove GUI post install?

Posted: 2019/11/06 22:39:07
by frame_analysis
I mistakenly installed the CentOS 8 w/ a GUI. The server is already running services, so reinstalling is not an option. I want to uninstall/remove the GUI to save resources on the VM host.

Looking at sudo yum grouplist, it looks like the GUI is configured a bit differently than in 7, and you cannot remove the GUI the same way. The environment grouplist installed is "Server with GUI."

Thank you

Re: How do you remove GUI post install?

Posted: 2019/11/07 07:19:19
by nouvo09
try a dnf remove gnome and before to accept, check which other components comes along. In doubt, don't accept.

Re: How do you remove GUI post install?

Posted: 2019/11/07 09:17:38
by hmg22
BS"D

Although it would involve a reboot, why don't you use systemctl to boot into multi-user.target, which doesn't run x-windows
(if I understand what you want to do correctly). That way you don't have to remove anything.

Re: How do you remove GUI post install?

Posted: 2019/11/07 12:18:37
by BShT
remove gnome can drive you to a dep hell

better to boot multiuser: systemctl set-default multi-user.target

Re: How do you remove GUI post install?

Posted: 2019/11/07 14:39:17
by TrevorH
You could start by removing things that you know are GUI related and not needed for command line usage. Start with yum --assumeno remove \*gnome\* and then see what it offers to remove and check that list carefully to see if it's going to take out anything you might actually want! Repeat for packages containing xorg and wayland too. Offhand the only xorg package that you might want installed on a cli server is the one that provides xauth so you can do X forwarding over ssh.

Re: How do you remove GUI post install?

Posted: 2019/11/07 16:24:48
by frame_analysis
@hmg22 and @BShT Thank you, that worked!

Re: How do you remove GUI post install?

Posted: 2019/11/08 12:13:25
by nouvo09
frame_analysis wrote:
2019/11/07 16:24:48
@hmg22 and @BShT Thank you, that worked!
Yes you save cpu ressources but no room on your disk.

Re: How do you remove GUI post install?

Posted: 2019/11/08 12:59:40
by TrevorH
Also good security practices say you shouldn't have things installed that you don't require. Otherwise it's just another thing that could be used to exploit you...