CentOS刪除桌面環境


  公司有幾台虛擬機安裝的是CentOS7的桌面環境,平時也是用終端訪問,於是在服務器卡住需要重啟時,順便就把桌面環境給卸載了;測試了好多方法均不成功,最終找到了可行的方式,以此記錄;

[root@yunyue01 ~]# yum list installed |grep -Pi '(gnome)'  # 找到已安裝的跟gnome相關的軟件
gnome-abrt.x86_64                      0.3.4-9.el7                     @anaconda
gnome-bluetooth.x86_64                 1:3.28.2-1.el7                  @anaconda
gnome-bluetooth-libs.x86_64            1:3.28.2-1.el7                  @anaconda
gnome-desktop3.x86_64                  3.28.2-2.el7                    @anaconda
gnome-icon-theme.noarch                3.12.0-1.el7                    @anaconda
gnome-keyring.x86_64                   3.28.2-1.el7                    @anaconda
gnome-keyring-pam.x86_64               3.28.2-1.el7                    @anaconda
gnome-online-accounts.x86_64           3.28.2-1.el7                    @anaconda
gnome-python2.x86_64                   2.28.1-14.el7                   @anaconda
gnome-python2-canvas.x86_64            2.28.1-14.el7                   @anaconda
gnome-session.x86_64                   3.28.1-8.el7                    @anaconda
gnome-settings-daemon.x86_64           3.28.1-8.el7                    @anaconda
gnome-shell.x86_64                     3.28.3-30.el7                   @anaconda
gnome-themes-standard.x86_64           3.28-2.el7                      @anaconda
libgnome-keyring.x86_64                3.12.0-1.el7                    @anaconda
libgnomecanvas.x86_64                  2.30.3-8.el7                    @anaconda
libgnomekbd.x86_64                     3.26.0-3.el7                    @anaconda
[root@yunyue01 ~]# yum remove gnome-desktop3.x86_64 -y  # 卸載gnome-desktop桌面環境
... ...
刪除:
  gnome-desktop3.x86_64 0:3.28.2-2.el7

作為依賴被刪除:
  cheese-libs.x86_64 2:3.28.0-1.el7                  control-center.x86_64 1:3.28.1-7.el7        gdm.x86_64 1:3.28.2-23.el7           gnome-session.x86_64 0:3.28.1-8.el7
  gnome-settings-daemon.x86_64 0:3.28.1-8.el7        gnome-shell.x86_64 0:3.28.3-30.el7          mutter.x86_64 0:3.28.3-26.el7        pulseaudio-gdm-hooks.x86_64 0:10.0-5.el7

完畢!
[root@yunyue01 ~]# reboot  # 重啟設備讓其生效

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM