1.4. 安装 Go Toolset
完成以下步骤以安装 Go Toolset,包括所有依赖软件包。
先决条件
-
在 Red Hat Enterprise Linux 7 中,提供对 Red Hat Developer Tools 内容集合的访问权限的订阅已附加到您的系统中。
要附加订阅,请参阅 获取 Red Hat Enterprise Linux 7 上的 Go Toolset 的访问权限。 - 已安装所有可用的 Red Hat Enterprise Linux 更新。
流程
在 Red Hat Enterprise Linux 7 中,运行以下命令安装 go-toolset-1.19
集合:
# yum install go-toolset-1.19
在 Red Hat Enterprise Linux 8 中,运行以下命令安装 go-toolset
模块:
# yum module install go-toolset
在 Red Hat Enterprise Linux 9 中,运行以下命令安装 go-toolset
软件包:
# dnf install go-toolset