Last active
July 13, 2023 15:14
-
-
Save ammario/fcebd92a53744ebebf1ad3bbbfdf0597 to your computer and use it in GitHub Desktop.
Install latest go CentOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
sudo yum -y install wget git | |
wget -O /tmp/go.tar.gz https://storage.googleapis.com/golang/go1.10.linux-amd64.tar.gz | |
sudo tar -C /usr/local -xzf /tmp/go.tar.gz | |
ln -s /usr/local/go/bin/go /usr/bin/go | |
# Install glide | |
export GOPATH=~/go | |
mkdir -p ~/go/bin | |
curl https://glide.sh/get | sh | |
source ~/.bashrc | |
cd - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment