We need to run below 2 commands to setup GUI in RHEL 7
yum-config-manager --enable rhui-REGION-rhel-server-extras
yum repolist
yum groupinstall -y "Server with GUI"
yum install -y tigervnc-server xorg-x11-fonts-Type1
yum install -y xorg-x11-apps
Install xorg-x11-apps in Oracle Linux8
yum config-manager --enable ol8_codeready_builder