centos GUI图形化卸载

centos6.x(el6)

x-server
确定是否要开启图形化,不需要则卸载图形化相关X11的包。

[root@c6-172-24-20-50 ~]# yum whatprovides */xhost
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
xorg-x11-server-utils-7.7-14.el6.x86_64 : X.Org X11 X server utilities
Repo        : centos6-iso
Matched from:
Filename    : /usr/bin/xhost
[root@c6-172-24-20-50 ~]# yum groupinfo  "X Window System"
Loaded plugins: fastestmirror
Setting up Group Process
Loading mirror speeds from cached hostfile

Group: X Window System
 Description: X Window System Support.
 Mandatory Packages:
   xorg-x11-drivers
   xorg-x11-server-Xorg
   xorg-x11-xauth
   xorg-x11-xinit
 Default Packages:
   firstboot
   glx-utils
   hal
   plymouth-system-theme
   spice-vdagent
   wacomexpresskeys
   wdaemon
   xorg-x11-server-utils
   xorg-x11-utils
   xvattr
 Optional Packages:
   xcb-util-image
   xcb-util-keysyms
   xcb-util-wm
//c6
[root@c6-172-24-20-50 ~]# yum grouplist
Loaded plugins: fastestmirror
Setting up Group Process
Determining fastest mirrors
centos6-iso                                                                                                         | 4.0 kB     00:00     
Installed Groups:   //查看已经安装的是否有desktop及X相关的组件组
   E-mail server
   Perl Support
   Security Tools

//xll 依赖组
X Window System

yum groupremove -y   "X Window System"

centos7.x(el7)

yum grouplist  //看看是否有图形化相关的,或者卸载x11协议相关的
   Server with GUI
   GNOME Desktop

rpm -qa |grep x11
posted @ 2022-07-19 13:11  mvpbang  阅读(523)  评论(0编辑  收藏  举报