最初安装centos时选择了安装KDE桌面,打开很卡,没有用到,想卸载,可是试了网上的方法什么yum groupremove kde-desktop 都不奏效,于是只能自己找出KDE的包,然后yum卸载了。
[root@localhost ~]# yum list installed | grep -Pi '(kde)'
colord-kde.x86_64 0.3.0-3.el7 @anaconda
kde-baseapps.x86_64 4.10.5-4.el7 @anaconda
kde-baseapps-libs.x86_64 4.10.5-4.el7 @anaconda
kde-filesystem.x86_64 4-47.el7 @anaconda
kde-plasma-networkmanagement.x86_64 1:0.9.0.9-7.el7 @anaconda
kde-plasma-networkmanagement-libs.x86_64
kde-print-manager.x86_64 4.10.5-4.el7 @anaconda
kde-runtime.x86_64 4.10.5-8.el7 @anaconda
kde-runtime-drkonqi.x86_64 4.10.5-8.el7 @anaconda
kde-runtime-libs.x86_64 4.10.5-8.el7 @anaconda
kde-settings.noarch 19-23.5.el7.centos @anaconda
kde-settings-ksplash.noarch 19-23.5.el7.centos @anaconda
kde-settings-plasma.noarch 19-23.5.el7.centos @anaconda
kde-settings-pulseaudio.noarch 19-23.5.el7.centos @anaconda
kde-style-oxygen.x86_64 4.11.19-7.el7 @anaconda
kde-wallpapers.noarch 4.10.5-2.el7 @anaconda
kde-workspace-libs.x86_64 4.11.19-7.el7 @anaconda
kdeaccessibility.noarch 1:4.10.5-2.el7 @anaconda
kdeadmin.x86_64 7:4.10.5-3.el7 @anaconda
kdeartwork-screensavers.x86_64 4.10.5-4.el7 @anaconda
kdegraphics-strigi-analyzer.x86_64 4.10.5-3.el7 @anaconda
kdegraphics-thumbnailers.x86_64 4.10.5-3.el7 @anaconda
kdelibs.x86_64 6:4.14.8-4.el7 @anaconda
kdelibs-common.x86_64 6:4.14.8-4.el7 @anaconda
kdelibs-ktexteditor.x86_64 6:4.14.8-4.el7 @anaconda
kdenetwork-common.noarch 7:4.10.5-8.el7_0 @anaconda
kdenetwork-kdnssd.x86_64 7:4.10.5-8.el7_0 @anaconda
kdenetwork-kget.x86_64 7:4.10.5-8.el7_0 @anaconda
kdenetwork-kget-libs.x86_64 7:4.10.5-8.el7_0 @anaconda
kdenetwork-krdc.x86_64 7:4.10.5-8.el7_0 @anaconda
kdenetwork-krdc-libs.x86_64 7:4.10.5-8.el7_0 @anaconda
kdenetwork-krfb.x86_64 7:4.10.5-8.el7_0 @anaconda
kdenetwork-krfb-libs.x86_64 7:4.10.5-8.el7_0 @anaconda
kdepim.x86_64 7:4.10.5-4.el7 @anaconda
kdepim-libs.x86_64 7:4.10.5-4.el7 @anaconda
kdepim-runtime.x86_64 1:4.10.5-3.el7 @anaconda
kdepim-runtime-libs.x86_64 1:4.10.5-3.el7 @anaconda
kdepimlibs.x86_64 4.10.5-4.el7 @anaconda
kdepimlibs-akonadi.x86_64 4.10.5-4.el7 @anaconda
kdepimlibs-kxmlrpcclient.x86_64 4.10.5-4.el7 @anaconda
kdeplasma-addons.x86_64 4.10.5-5.el7 @anaconda
kdeplasma-addons-libs.x86_64 4.10.5-5.el7 @anaconda
kdeutils-minimal.noarch 6:4.10.5-3.el7 @anaconda
lockdev.x86_64 1.0.4-0.13.20111007git.el7 @anaconda
polkit-kde.x86_64 0.99.1-4.20130311git.el7 @anaconda
pykde4.x86_64 4.10.5-4.el7 @anaconda
xsettings-kde.x86_64 0.12.3-7.el7 @anaconda
[root@localhost ~]# yum remove kdeutils-minimal.noarch kdeplasma-addons-libs.x86_64 kdeplasma-addons.x86_64 kdepimlibs-kxmlrpcclient.x86_64 kdepimlibs-akonadi.x86_64 kdepimlibs.x86_64 kdepim-runtime-libs.x86_64 kdepim-runtime.x86_64 kdepim-libs.x86_64 kdepim.x86_64 kdenetwork-krfb-libs.x86_64 kdenetwork-krfb.x86_64 kdenetwork-krdc-libs.x86_64 kdenetwork-krdc.x86_64 kdenetwork-kget-libs.x86_64 kdenetwork-kget.x86_64 kdenetwork-kdnssd.x86_64 kdenetwork-common.noarch kdelibs-ktexteditor.x86_64 kdelibs-common.x86_64 kdelibs.x86_64 kdegraphics-thumbnailers.x86_64 kdegraphics-strigi-analyzer.x86_64 kdeartwork-screensavers.x86_64 kdeadmin.x86_64 kdeaccessibility.noarch kde-workspace-libs.x86_64 kde-wallpapers.noarch kde-style-oxygen.x86_64 kde-settings-pulseaudio.noarch kde-settings-plasma.noarch kde-settings-ksplash.noarch kde-settings.noarch kde-runtime-libs.x86_64 kde-runtime-drkonqi.x86_64 kde-runtime.x86_64 kde-print-manager.x86_64 kde-plasma-networkmanagement-libs.x86_64 kde-plasma-networkmanagement.x86_64 kde-filesystem.x86_64 kde-baseapps-libs.x86_64 kde-baseapps.x86_64 colord-kde.x86_64
这里要注意!查出来的不一定是KDE的包,一定要确定是KDE的包后再卸载!不确定的话可以复制包名去搜一下。
卸载后再查看哪些包没有卸载完成。
完毕!
[root@localhost ~]# yum list installed | grep -Pi '(kde)'
lockdev.x86_64 1.0.4-0.13.20111007git.el7 @anaconda
xsettings-kde.x86_64 0.12.3-7.el7 @anaconda
lockdev.x86_64应该不是KDE的包,xsettings-kde.x86_64 是,所以卸载xsettings-kde.x86_64 即可。
[root@localhost ~]# yum list installed | grep -Pi '(kde)'
lockdev.x86_64 1.0.4-0.13.20111007git.el7 @anaconda
xsettings-kde.x86_64 0.12.3-7.el7 @anaconda
[root@localhost ~]# yum remove xsettings-kde.x86_64
已加载插件:fastestmirror, langpacks
正在解决依赖关系
--> 正在检查事务
---> 软件包 xsettings-kde.x86_64.0.0.12.3-7.el7 将被 删除
--> 解决依赖关系完成
依赖关系解决
=============================
Package 架构 版本 源 大小
=============================
正在删除:
xsettings-kde x86_64 0.12.3-7.el7 @anaconda 56 k
事务概要
=============================
移除 1 软件包
安装大小:56 k
是否继续?[y/N]:y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在删除 : xsettings-kde-0.12.3-7.el7.x86_64 1/1
验证中 : xsettings-kde-0.12.3-7.el7.x86_64 1/1
删除:
xsettings-kde.x86_64 0:0.12.3-7.el7
完毕!
然后启动KDE图形桌面看看。用快捷键或init 5都可切换到图形桌面。
[root@localhost ~]# init 5
PolicyKit daemon disconnected from the bus.
We are no longer a registered authentication agent.
可以看到KDE桌面已经被删除了,哈哈。
Ubuntu安装卸载KDE桌面之折腾记:http://www.linuxdiyf.com/linux/11835.html
Linux基础教程:CentOS卸载KDE桌面:http://www.linuxdiyf.com/linux/3596.html
Linux下安装KDE 4.5过程记:http://www.linuxdiyf.com/linux/10959.html
Kubuntu 14.04/Linux Mint 17怎样安装KDE 4.14.1:http://www.linuxdiyf.com/linux/2619.html
Ubuntu 14.10安装KDE Plasma 5.2图文教程:http://www.linuxdiyf.com/linux/8569.html