为Centos安装图形化界面

登录系统,使用yum 安装
yum -y groupinstall Desktop
yum -y groupinstall "X Window System"
安装GNOME桌面环境
yum install gnome-classic-session gnome-terminal nautilus-open-terminal control-center liberation-mono-fonts
yum groupinstall 'X Window System' -y
如果安装KDE桌面环境
yum groupinstall 'KDE (K Desktop Environment)' -y
如果发生错误:
Warning: Group GNOME Desktop Environment does not exist. No packages in any requested group available to install or update
则可以先用yum grouplist 检查一下已安装的组可支持的组,获得对应的组名再安装
卸载GNOME桌面环境
yum groupremove "GNOME Desktop Environment"
卸载KDE桌面环境
yum groupremove "KDE (K Desktop Environment)"

    原文作者:汤汤汤汤汤雪林
    原文地址: https://www.jianshu.com/p/f6bedc062a7d
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞