The Hyperpessimist

The grandest failure.

Go 1.2 for Raspberry Pi

After I have been providing Go for Raspbian since quite some time, I recently decided to update it to Go 1.2.1.

If you’re new, here’s how to get Go on your Raspberry Pi:

1
2
3
4
5
wget https://xivilization.net/~marek/raspbian/xivilization-raspbian.gpg.key -O - | sudo apt-key add -
sudo wget https://xivilization.net/~marek/raspbian/xivilization-raspbian.list -O /etc/apt/sources.list.d/xivilization-raspbian.list

sudo aptitude update
sudo aptitude install golang

No compiling, no strange tarballs. If you have already added the repository, it will get updated automatically. To my knowledge, this is the easiest and cleanest way to get Go on Raspbian.

Bonus feature: it includes the cross compilers for OS X (darwin), Windows, FreeBSD and NetBSD as well as the i386, amd64 and arm CPU variants. So you could build Windows executables on your Raspberry Pi. Heh.