Skip to content

Instantly share code, notes, and snippets.

@nmarley
Last active Mar 29, 2021
Embed
What would you like to do?
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