Skip to content

Instantly share code, notes, and snippets.

@frankzhao
Created October 20, 2018 05:24
Show Gist options
  • Save frankzhao/f0acfe324c927781397780757507d9a9 to your computer and use it in GitHub Desktop.
Save frankzhao/f0acfe324c927781397780757507d9a9 to your computer and use it in GitHub Desktop.
Install Golang on a Raspberry Pi
#!/bin/bash
VERSION=1.11.1
wget --no-check-certificate https://dl.google.com/go/go${VERSION}.linux-armv6l.tar.gz
sudo tar -C /usr/local -xvf go${VERSION}.linux-armv6l.tar.gz
echo "PATH=$PATH:/usr/local/go/bin" >> ~/.profile
source ~/.profile
echo "Checking go version:"
go version
rm go${VERSION}.linux-armv6l.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment