CentOS安裝圖形界面
CentOS minimal環境安裝圖形界面。
列出所有可用的Environment Groups
yum group list
yum groupinfo "GNOME Desktop"
選擇GNOME Desktop軟件包組進行安裝
yum groupinstall -y 'GNOME Desktop'
如果要通過GUI配置網絡需要安裝Server with GUI
yum groups install -y "Server with GUI"
修改default target啓用GUI
systemctl set-default graphical.target
systemctl get-default
重新系統可直接進入圖形界面
reboot
也可以通過執行以下命令立即切換到GUI。
systemctl isolate graphical.target
刪除GUI
yum groupremove "GNOME Desktop"