How to install and uninstall graphical interface in CentOS

Time:2021-1-11

Although the text mode system takes up less resources, but sometimes it is more convenient to operate in the graphical interface, so it is necessary to learn how to install the graphical interface in CentOS. There are two graphical interfaces. You can choose one of them to see which of your update sources you want to install.

CentOS install X Window

Copy code

The code is as follows:

#yum groupinstall ‘X Window System’ -y

CentOS install GNOME desktop environment

Copy code

The code is as follows:

#yum groupinstall ‘GNOME Desktop Environment’ -y

Installing KDE desktop environment in CentOS

Copy code

The code is as follows:

#yum groupinstall ‘KDE (K Desktop Environment)’ -y

I installed it under CentOS and used the source of Netease 163. Kengdai didn’t have gnome and KDE. In the end, I had to use X window, 69m, 191 package. It’s really big. I’m a fool here. I expected Yum installation to save money, but it didn’t work out as expected. The prompt is missing a file. I just need to find the corresponding RPM package and install it

Copy code

The code is as follows:

#RPM package corresponding to RPM – I

RT, after the installation, the prompt is successful, startx can’t start, report an error, well, forget it, go to the log tomorrow, and take your time.

 

If you install it, you can uninstall it. We use Yum to install it. Naturally, we use Yum to uninstall it. Otherwise, we can delete it.

Uninstall xwindows

Copy code

The code is as follows:

#yum groupremove ‘X Window System’ -y

Uninstall GNOME desktop environment

Copy code

The code is as follows:

#yum groupremove “GNOME Desktop Environment”

Uninstall KDE desktop environment

Copy code

The code is as follows:

#yum groupremove “KDE (K Desktop Environment)”