I'm trying to remove unnecessary services like XWindows and Gnome on production RHEL/CentOS machines using Puppet (I don't get to install the OS).
From what I can tell, "groupremove" isn't supported/recommended yet, because it's not quite the "opposite" of "groupinstall".
Then there's a command like rpm -q --group "User Interface/X"
, which I believe should work using exec{}, but there must be a more elegant way to do it, as I'm sure it must be something done fairly regularly.
Anyone? Many thanks!