From e042f7fea785df3419ca1b72d3ea177968a1be41 Mon Sep 17 00:00:00 2001 From: Miguel Mota Date: Wed, 18 Apr 2018 23:49:19 -0700 Subject: [PATCH] Created Install Go on Ubuntu (markdown) --- Install-Go-on-Ubuntu.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Install-Go-on-Ubuntu.md diff --git a/Install-Go-on-Ubuntu.md b/Install-Go-on-Ubuntu.md new file mode 100644 index 0000000..1424602 --- /dev/null +++ b/Install-Go-on-Ubuntu.md @@ -0,0 +1,26 @@ +## Using PPA + +Add PPA, update and install + +``` +sudo add-apt-repository ppa:gophers/archive +sudo apt-get update +sudo apt-get install golang-1.10-go +``` + +[source](https://github.com/golang/go/wiki/Ubuntu) + +## Using GVM + +Install [gvm](https://github.com/moovweb/gvm) + +```bash +bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) +``` + +Install go + +```bash +gvm install go1.10 -B +gvm use go1.10 +``` \ No newline at end of file