How To Install Go 1.11.2 on Ubuntu 18.04
Go language 1.11.2 Installation on Ubuntu 18.04
Go is an elegant language with a clean and concise specifications that are readable and comprehensive. One of the major strengths of Golang is its concurrency, which means multiple process of the Go applications can run at same time. This tutorial covers the method to install Go 1.11.2 on Ubuntu 18.04.
Installation
First, you need to update the repository files by using the following command.
root@linuxhelp:~# apt-get update
Hit:1 http://in.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://ppa.launchpad.net/eugenesan/ppa/ubuntu bionic InRelease
Hit:3 https://deb.nodesource.com/node_10.x bionic InRelease
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:5 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease [20.8 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:7 http://APT.spideroak.com/ubuntu-spideroak-hardy release InRelease [2,547
.
.
.
Get:28 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [322 kB]
Get:29 http://in.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:30 http://in.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [5,812 B]
Reading package lists... Done
Once it is done, ensure you download the golang packages with wget command as follows.
root@linuxhelp:~#wget -q https://storage.googleapis.com/golang/getgo/installer_linux
After that, give the permission to the golang packages by running the following command.
root@linuxhelp:~# chmod +x installer_linux
You can now install the golang packages by using the following command.
root@linuxhelp:~# ./installer_linux
Welcome to the Go installer!
Downloading Go version go1.11.2 to /root/.go
This may take a bit of time...
Downloaded!
Setting up GOPATH
GOPATH has been set up!
One more thing! Run `source /root/.bash_profile` to persist the
new environment variables to your current session, or open a
new shell prompt.
You can load Golang functions file into the current shell script by using the following command.
root@linuxhelp:~# source /root/.bash_profile
If you want to find the version of Golang which you have just installed, run the following command.
root@linuxhelp:~# go version
go version go1.11.2 linux/amd64
With this, the method to install Go on Ubuntu 18.04 comes to an end.
Comments ( 0 )
No comments available