Provision a Go development environment

Set up Go Toolset on Red Hat Enterprise Linux to compile, run, and maintain Go applications with a Red Hat-supported toolchain in your development environment.

Install Go Toolset

Install Go Toolset and all dependent packages on Red Hat Enterprise Linux by enabling the go-toolset module on RHEL 8 or installing the go-toolset package on RHEL 9 and 10.

Before you begin

  • All available Red Hat Enterprise Linux updates are installed.

Procedure

  • Install Go Toolset:
    • On RHEL 8, enter:
      # yum module install go-toolset
    • On RHEL 9 and 10, enter:
      # dnf install go-toolset
  • Optional: Install local Go documentation packages:
    • On RHEL 8, enter:
      # yum install golang-docs
    • On RHEL 9 and 10, enter:
      # dnf install golang-docs