Skip to content

Instantly share code, notes, and snippets.

@tegansnyder
Last active February 8, 2020 07:47
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tegansnyder/a2e36d09c13cc49b452dcc641981bc27 to your computer and use it in GitHub Desktop.
Save tegansnyder/a2e36d09c13cc49b452dcc641981bc27 to your computer and use it in GitHub Desktop.
Install go 1.6 RHEl 7
# 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
@SudhakarAnemu
Copy link

It is working, thank you

@dim912
Copy link

dim912 commented Feb 8, 2020

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