How do you remove GUI post install?

Issues related to applications and software problems and general support
Post Reply
frame_analysis
Posts: 2
Joined: 2019/11/06 20:00:13

How do you remove GUI post install?

Post by frame_analysis » 2019/11/06 22:39:07

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

nouvo09
Posts: 140
Joined: 2009/09/19 19:21:36
Location: Paris, France

Re: How do you remove GUI post install?

Post by nouvo09 » 2019/11/07 07:19:19

try a dnf remove gnome and before to accept, check which other components comes along. In doubt, don't accept.
Member of centos-FR forum

hmg22
Posts: 24
Joined: 2012/10/25 08:40:52

Re: How do you remove GUI post install?

Post by hmg22 » 2019/11/07 09:17:38

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.

BShT
Posts: 66
Joined: 2019/10/09 12:31:40

Re: How do you remove GUI post install?

Post by BShT » 2019/11/07 12:18:37

remove gnome can drive you to a dep hell

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

User avatar
TrevorH
Forum Moderator
Posts: 26955
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How do you remove GUI post install?

Post by TrevorH » 2019/11/07 14:39:17

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.
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

frame_analysis
Posts: 2
Joined: 2019/11/06 20:00:13

Re: How do you remove GUI post install?

Post by frame_analysis » 2019/11/07 16:24:48

@hmg22 and @BShT Thank you, that worked!

nouvo09
Posts: 140
Joined: 2009/09/19 19:21:36
Location: Paris, France

Re: How do you remove GUI post install?

Post by nouvo09 » 2019/11/08 12:13:25

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.
Member of centos-FR forum

User avatar
TrevorH
Forum Moderator
Posts: 26955
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How do you remove GUI post install?

Post by TrevorH » 2019/11/08 12:59:40

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...
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 8 - General Support”