This series of steps will install the GUI on an installation that was installed without a GUI.
Run this command to see the “environment groups”:
1
dnf group list
You should see “Server with GUI” as available. You can install it and all of the packages required by using this command:
1
dnf groupinstall "Server with GUI" -y
After the installation is complete, run this command to make the GUI the default:
1
systemctl set-default graphical.target
Then reboot the server.
If you chose to leave the text terminal as the default, do not run the previous command. When you want to start the GUI, run this command:
1
startx
source: https://linuxconfig.org/how-to-install-gui-on-almalinux