Skip to content

Instantly share code, notes, and snippets.

@kleo
Forked from rsandrade/install_go_pi.sh
Last active February 7, 2021 15:28
Show Gist options
  • Save kleo/9d981573aad107da6fa7ac0603259b3b to your computer and use it in GitHub Desktop.
Save kleo/9d981573aad107da6fa7ac0603259b3b to your computer and use it in GitHub Desktop.
Install Go 1.15.3 on Raspberry Pi

Install Go 1.15.3 on Raspberry Pi

  1. yeet this into your terminal
sh -c "$(curl -fsSL https://gist.githubusercontent.com/kbeflo/9d981573aad107da6fa7ac0603259b3b/raw/35111746659e6146d4985e0ab451c023415f5f1b/install.sh)"
  1. logout
  2. login
  3. go version
  4. ????
  5. PROFIT!!!
#!/bin/bash
wget https://golang.org/dl/go1.15.3.linux-armv6l.tar.gz
sudo tar -C /usr/local -xvf go1.15.3.linux-armv6l.tar.gz
cat >> ~/.profile << 'EOF'
# go https://git.io/JTVSj
export GOPATH=$HOME/.go
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment