配置 local yum
cd /etc/yum.repo.d
mkdir bak
mv *.repo ./bak
vi /etc/yum.repo.d/local.repo
[BaseOS]
name=BaseOS
baseurl=file:///mnt/cdrom/BaseOS
gpgcheck=0
enabled=1[AppStream]
name=AppStream
baseurl=file:///mnt/cdrom/AppStream
gpgcheck=0
enabled=1
yum clean all
yum makecache
yum repolist
安装GUI
yum groupinstall -y "Server with GUI"systemctl get-defaultsystemctl set-default graphical.targetreboot
也可以再次修改为命令行启动
systemctl set-default multi-user.target