Skip to content

Instantly share code, notes, and snippets.

@glowinthedark
Forked from pcgeek86/install_go_pi.sh
Last active April 11, 2020 21:35
Show Gist options
  • Save glowinthedark/7f89588aae105dc60381f9a4ee5eeac3 to your computer and use it in GitHub Desktop.
Save glowinthedark/7f89588aae105dc60381f9a4ee5eeac3 to your computer and use it in GitHub Desktop.
Install Go Lang on Raspberry Pi
cd $HOME
file='go1.14.2.linux-armv6l.tar.gz'
wget "https://dl.google.com/go/$file"
sudo tar -C /usr/local -xvf "$file"
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