Skip to content

Instantly share code, notes, and snippets.

@vimagick
Created March 7, 2026 05:16
Show Gist options
  • Select an option

  • Save vimagick/197800b44ef31a769f5f589bf5c6fe0b to your computer and use it in GitHub Desktop.

Select an option

Save vimagick/197800b44ef31a769f5f589bf5c6fe0b to your computer and use it in GitHub Desktop.
Install Golang on Raspberry Pi

Official Docs: https://go.dev/doc/install

Download

Open: https://go.dev/dl/

$ wget https://go.dev/dl/go1.26.1.linux-arm64.tar.gz

Install

$ sudo rm -rf /usr/local/go
$ sudo tar -C /usr/local -xzf go1.26.1.linux-arm64.tar.gz

Config

Edit: ~/.bashrc

export PATH=/usr/local/go/bin:$PATH
export GOPATH=$HOME/go

Verify

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