Skip to content

Instantly share code, notes, and snippets.

@zacgx
Forked from simoncos/golang_on_rpi.md
Created March 7, 2025 06:21
Show Gist options
  • Save zacgx/a5a2c757833f0d51215f192db552b106 to your computer and use it in GitHub Desktop.
Save zacgx/a5a2c757833f0d51215f192db552b106 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