How to install golang on RHEL 7?
Environment
- Red Hat Enterprise Linux 7
Issue
- How to install golang on RHEL 7?
Resolution
- golang package is provided via
rhel-7-server-optional-rpms.
Install steps
Enable rhel-7-server-optional-rpms
subscription-manager repos --enable=rhel-7-server-optional-rpms
Run install
yum install golang
Bonus
- If you don't want to enable the "optional" repo permanently, you can install golang with this command:
yum install golang --enablerepo=rhel-7-server-optional-rpms
Product(s)
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.