Skip to content

Instantly share code, notes, and snippets.

@d4z3x
Forked from simoncos/golang_on_rpi.md
Created March 28, 2019 00:05
Show Gist options
  • Save d4z3x/050fe05f6d8154fcaec2d280c28fd38c to your computer and use it in GitHub Desktop.
Save d4z3x/050fe05f6d8154fcaec2d280c28fd38c to your computer and use it in GitHub Desktop.
Install Golang 1.9 on Raspberry Pi

Install Golang 1.9:

wget https://storage.googleapis.com/golang/go1.9.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.9.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin # put into ~/.profile

If already installed old golang with apt-get:

sudo apt remove golang
sudo apt-get autoremove
source .profile

Test:

go version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment