如何使用Yum CentOS/RHEL 7安装Gnome桌面
时间:2020-01-09 10:40:19 来源:igfitidea点击:
如何使用命令行选项在RHEL(Red Hat)7或CentOS Linux 7系统上安装Gnome桌面GUI? GNOME是一个高度直观且用户友好的桌面环境,适用于基于CentOS和RHEL 7.x的系统。 如果您进行的是最小安装,则此教程将快速告诉您如何使用命令行选项在CentOS 7或RHEL 7上安装Gnome GUI。
安装Gnome GUI
语法如下,以列出CentOS/RHEL 7上的可用软件组:
yum grouplist
输出示例:
Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.usc.edu * extras: mirror.lug.udel.edu * updates: mirror.cogentco.com Available environment groups: Minimal Install Compute Node Infrastructure Server File and Print Server Basic Web Server Virtualization Host Server with GUI GNOME Desktop KDE Plasma Workspaces Development and Creative Workstation Installed groups: Graphical Administration Tools Legacy UNIX Compatibility Security Tools System Administration Tools Available Groups: Compatibility Libraries Console Internet Tools Development Tools Scientific Support Smart Card Support System Management Done
要安装GNOME桌面组,请执行:
sudo yum groups install "GNOME Desktop"
或者
sudo yum groupinstall "GNOME Desktop"
要使用GUI在用于运行网络基础结构服务的RHEL 7或CentOS Linux 7服务器上安装Gnome,请执行:
sudo yum groups install "Server with GUI"
或者
sudo yum groupinstall "Server with GUI"
现在,如果您使用Red Hat Enterprise Linux,则yum命令将从互联网或RHN下载所有必需的软件包。
如何设置系统以直接引导到CentOS7/RHEL 7的GUI中?
执行以下命令:
sudo systemctl set-default graphical.target
如何从命令行切换或启动GUI登录?
如果您不想重启服务器,请执行以下命令:
sudo systemctl start graphical.target