rhel7 设置阿里yum源,安装gnome桌面及开发工具

添加阿里的yum源:

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

并将 Centos-7.repo 中的 $releasever 替换为数字7 。

 

 执行

yum makecache

更新缓存

 

 

首先

$ yum grouplist

可查看系统安装时可指定的‘软件组’名称。

例如 “GNOME Desktop”  “Development Tools”

 

 

 

要安装GNOME桌面组,输入以下命令:

# sudo yum groups install"GNOME Desktop"

  安装Gnome以通过GUI操作网络基础结构服务:

# sudo yum groups install"Server with GUI"

例如:

 

 

将桌面系统设置为直接启动,允许用户输入用户名和密码登录时进入GNOME GUI :

# sudo systemctl set-default graphical.target

(这一步不需要做, 上面安装好之后,重启系统,就直接来到 桌面登录提示 了) 

 

2023/4/23 补充:

RHEL 7.6 下,yum groups install ,始终报 

No packages in any requested group available to install or update

执行:

yum install -y epel-release
yum install -y http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum groupinstall "Development tools" --setopt=group_package_types=mandatory,default,optional

安装成功。

 

之后,也有见到这样安装的:

 

 

 

 

 

 

 

posted @ 2022-08-10 11:04  rivanwang  阅读(672)  评论(0)    收藏  举报