Created
October 20, 2018 05:24
-
-
Save frankzhao/f0acfe324c927781397780757507d9a9 to your computer and use it in GitHub Desktop.
Install Golang on a Raspberry Pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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