# download latest https://golang.org/dl/
wget https://storage.googleapis.com/golang/go1.6.3.linux-amd64.tar.gz
tar xzvf go1.6.3.linux-amd64.tar.gz
# system wide install
sudo mv go /usr/local/
# add system wide path
sudo vi /etc/profile
# add this to bottom
export PATH=$PATH:/usr/local/go/bin
export GOPATH=/usr/local/go/dev
export PATH=$PATH:$GOPATH/bin
# reload PATH
source /etc/profile
# test go
go version
Last active
February 8, 2020 07:47
-
-
Save tegansnyder/a2e36d09c13cc49b452dcc641981bc27 to your computer and use it in GitHub Desktop.
Install go 1.6 RHEl 7
Thanks works nicely.
You may add a step to backup the profile file before update it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is working, thank you