4 line for installing Go in 1 second
Create the file and add execution permission to it :
nano ~/go.install && chmod +x ~/go.install && nano ~/go.install
Put this script in the file :
#!/bin/bash
# Script for the plebs of PepperSlice
cd ~/
wget https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.8.linux-amd64.tar.gz
echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.bashrc
Execute it (if not root execute it with sudo
) :
~/go.install
Reload the shell and check the version :
. ~/.bashrc && go version
Output :
go version go1.8 linux/amd64