Skip to content

Instantly share code, notes, and snippets.

@nmarley
Last active March 29, 2021 10:26
Show Gist options
  • Save nmarley/e55639dbb4a4c06e0c2bdc3f6a72563a to your computer and use it in GitHub Desktop.
Save nmarley/e55639dbb4a4c06e0c2bdc3f6a72563a to your computer and use it in GitHub Desktop.
Go fresh install Ubuntu 18.04

Go install using gvm on fresh Ubuntu instance

Install

Using a fresh Ubuntu 18.04 (latest LTS) install:

# Install prerequisites
sudo apt update
sudo apt install -y bison binutils gcc make

# Install Go using gvm
cd $HOME
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
source $HOME/.gvm/scripts/gvm
gvm install go1.13 -B
gvm use go1.13 --default

You may want to install the golint and goimports tools:

go get -u golang.org/x/tools/cmd/goimports
go get -u golang.org/x/lint/golint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment