Be aware of the difference between
environments (environment groups) and regular groups.
Server with GUI is an environment:
Code:
$ dnf -q list ids Server\*
Available Environment Groups:
Server with GUI (graphical-server-environment)
Server (server-product-environment)
It includes a number of regular groups (some of them mandatory, and some optional):
Code:
$ dnf -q info graphical-server-environment
Environment Group: Server with GUI
Description: An integrated, easy-to-manage server with a graphical interface.
no group 'dns-server' from environment 'graphical-server-environment'
Mandatory Groups:
Common NetworkManager submodules
Container Management
Core
Fonts
GNOME Desktop Environment
Guest Desktop Agents
Hardware Monitoring Utilities
Hardware Support
Headless Management
Input Methods
Internet Browser
Multimedia
Printing Client
Server product core
Standard
base-x
Optional Groups:
Basic Web Server
Debugging Tools
FTP Server
File and Storage Server
Guest Agents
Infiniband Support
Mail Server
Network File System Client
Network Servers
Performance Tools
Remote Desktop Clients
Remote Management for Linux
Virtualization Client
Virtualization Hypervisor
Virtualization Tools
Windows File Server
AFAICT, only
one environment may be installed at any given time. In order to replace
Server with GUI with
Server I'd first mark
Server with GUI as removed without physically removing its packages, then install and upgrade
Server.
Code:
sudo dnf group mark remove graphical-server-environment
sudo dnf group install server-product-environment
sudo dnf group upgrade server-product-environment