How to install go lang on RedHat 8.5
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.
Comments ( 0 )
No comments available