Golang - Install Golang on CentOS 7 Code Example

The code for Install Golang on CentOS 7

1) Download Wget software:
yum install wget -y

2) Install GO using wget command:
wget https://golang.org/dl/go1.17.2.linux-amd64.tar.gz3

3) Remove the previous installation (if any ) and unzip the downloaded tar file of GO:
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.17.2.linux-amd64.tar.gz

4) Add the path of Go in the PATH variable:
export PATH=$PATH:/usr/local/go/bin

5) verify that go is properly installed: 
go version
Code by IncludeHelp, on February 28, 2023 15:52

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.