Install/update golang on Uberspace

Hello fellow Ubernaut! You are running CentOS with 64bit and a outdated version of Googles Go. To get up to date:

# Check version number here
export GOVERSION=1.3.1

# Copy & paste the rest

mkdir ~/opt
cd ~/opt
mv go go.depricated.`date +%y%m%d`
wget -O go.tar.gz`echo $GOVERSION`.linux-amd64.tar.gz
tar zxvf go.tar.gz
rm ~/opt/go.tar.gz
cd ~/

cat >> ~/.bash_profile << __EOF__
# golang
export GOROOT=\$HOME/opt/go
export PATH=\$GOROOT/bin:\$PATH
export GOTOOLDIR=\$GOROOT/pkg/linux_amd64
source ~/.bash_profile

go version
The author

Written by Per

Free software enthusiast and transhumanist residing in Stuttgart, Germany.

comments powered by Disqus