• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to install go lang on RedHat 8.5

  • 00:04 cat /etc/os-release
  • 00:17 wget -q https://storage.googleapis.com/golang/getgo/installer_linux
  • 00:28 chmod +x installer_linux
  • 00:43 ./installer_linux
  • 01:02 source /root/.bash_profile
  • 01:17 go version
{{postValue.id}}

To Install Go In Redhat 8.5

Introduction:

Go was originally built for programs related to networking and infrastructure. It was intended to replace popular high-performance server-side languages including Java and C++. Nowadays, go is used for a variety of applications like cloud and server-side applications, DevOps, command-line tools, and much more.

Installation Steps:

Step 1: Check the OS version by using the below command

[root@linuxhelp ~]#cat /etc/os-release 
NAME="Red Hat Enterprise Linux"
VERSION="8.5 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.5"

Step 2: Download the Golang package by using the below command

[root@linuxhelp ~]# wget -q https://storage.googleapis.com/golang/getgo/installer_linux

Step 3: Give the executable permission by using the below command

[root@linuxhelp ~]# chmod +x installer_linux 

Step 4: Install the package by using the below command

[root@linuxhelp ~]# ./installer_linux 
Welcome to the Go installer!
Downloading Go version go1.18.3 to /root/.go
This may take a bit of time...
Downloaded!
Setting up GOPATH
GOPATH has been set up!

One more thing! Run `source /root/.bash_profile` to persist the
new environment variables to your current session, or open a
new shell prompt.

Step 5: Add the go function file to the system shell scripts by using the below command

[root@linuxhelp ~]# source /root/.bash_profile 

Step 6: check the Go version by using the below command

[root@linuxhelp ~]# go version
go version go1.18.3 linux/amd64

Conclusion:

We have reached the end of this article. In this guide, we have walked you through the steps required to install Go in redhat 8.5. Your feedback is much welcome.

Tags:
symonds
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

How will you download the go installation package?

A

To download the go installation package use wget https://storage.googleapis.com/golang/getgo/installer_linux

Q

Which permission do we need to give?

A

Executable Permission (chmod +x installer_linux)

Q

Which command line was used to install the package?

A

The command line used to install the package is ./installer_linux

Q

How will you add the go function file and run it?

A

To add and run the go function file, use the source /root/.bash_profile command.

Q

How will you check the version of go?

A

To check the version using the command (go version).

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Sebastian ?
How to change non required to required field in SuiteCRM Custom/Default Modules

How to change not required to the required field in SuiteCRM Custom/Default Modules?

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.