Skip to content

Instantly share code, notes, and snippets.

@ammario
Last active July 13, 2023 15:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ammario/fcebd92a53744ebebf1ad3bbbfdf0597 to your computer and use it in GitHub Desktop.
Save ammario/fcebd92a53744ebebf1ad3bbbfdf0597 to your computer and use it in GitHub Desktop.
Install latest go CentOS
#!/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