To ensure a smooth installation, let's update the system before proceeding with the desktop environment setup.

sudo dnf update

Now install the "Server with GUI" Group:

sudo dnf groupinstall "Server with GUI"

After the installation is complete, we need to set up the system to boot in graphical mode by default.

sudo systemctl set-default graphical.target

You can now reboot your machine. If everything is correct, you should see the GNOME login screen.