Skip to content

Instantly share code, notes, and snippets.

@rezaduty
Forked from simoncos/golang_on_rpi.md
Created September 2, 2019 11:18
Show Gist options
  • Save rezaduty/e515d7accbd878ba84939ff5a9b6c573 to your computer and use it in GitHub Desktop.
Save rezaduty/e515d7accbd878ba84939ff5a9b6c573 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