Skip to content

Instantly share code, notes, and snippets.

@jonizen
Forked from pcgeek86/install_go_pi.sh
Created July 29, 2020 20:10
Show Gist options
  • Select an option

  • Save jonizen/0f4d0719965d758f47ed368ca79ac4fc to your computer and use it in GitHub Desktop.

Select an option

Save jonizen/0f4d0719965d758f47ed368ca79ac4fc to your computer and use it in GitHub Desktop.
Install Go Lang on Raspberry Pi
cd $HOME
FileName='go1.14.6.linux-armv6l.tar.gz'
wget https://dl.google.com/go/$FileName
sudo tar -C /usr/local -xvf $FileName
cat >> ~/.bashrc << 'EOF'
export GOPATH=$HOME/go
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
EOF
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment