• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How To Install Go 1.11.2 on Ubuntu 18.04

  • 0:40 apt-get update
  • 0:58 wget -q https://storage.googleapis.com/golang/getgo/installer_linux
  • 1:18 chmod +x installer_linux
  • 1:37 ./installer_linux
  • 2:02 source /root/.bash_profile
  • 2:08 go version
5203

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.

Tags:
jacob
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What is Golang?

A

Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.

Q

Does Go language have a runtime?

A

Go does have an extensive library, called the runtime, that is part of every Go program. The runtime library implements garbage collection, concurrency, stack management, and other critical features of the Go language. Although it is more central to the language, Go's runtime is Analogous to libc, the C library.

Q

How will Golang development benefits?

A

Development with Golang costs less from the start. In addition to the performance increase, often more than 400%, Golang applications are quicker to develop, easier to maintain, safer and less prone to having runtime errors.

Q

Is Golang the right choice for every application?

A

No. Although Golang is well suited to many use cases, there are some applications that don’t require high performance or that could be better implemented in another language, like C, C# or Java, all of which we have decades of experience with.

Q

Is Golang development cost effective?

A

Yes, because of the way Golang was designed, developing applications with Golang is extremely productive and efficient and results in safe software without runtime surprises. While having much better performance, Golang applications use fewer server resources than other web development languages, like PHP and Python.

Development with Golang saves you time and money with

Development productivity
Maintenance
Performance
Less server resources

Related Tutorials in How To Install Go 1.11.2 on Ubuntu 18.04

Related Tutorials in How To Install Go 1.11.2 on Ubuntu 18.04

How to install Meld tool in Ubuntu
How to install Meld tool in Ubuntu
Feb 25, 2017
How to install Dconf-Editor on Ubuntu 18.04
How to install Dconf-Editor on Ubuntu 18.04
Jul 14, 2018
How to install and update OpenSSL on Ubuntu 16.04
How to install and update OpenSSL on Ubuntu 16.04
Mar 9, 2017
How to install GLib 2.0 on Ubuntu 17.04
How to install GLib 2.0 on Ubuntu 17.04
May 22, 2017
How to Install Android Emulator on Ubuntu 20.4.1
How to Install Android Emulator on Ubuntu 20.4.1
Jul 13, 2021
How To Install AnyDesk on Ubuntu 16.04
How To Install AnyDesk on Ubuntu 16.04
Apr 4, 2018
How to install Genymotion 2.12.1 on Ubuntu 18.04
How to install Genymotion 2.12.1 on Ubuntu 18.04
Jul 9, 2018
How to install Timeshift 18.4 on Ubuntu 18.04
How to install Timeshift 18.4 on Ubuntu 18.04
Jul 6, 2018

Related Forums in How To Install Go 1.11.2 on Ubuntu 18.04

Related Forums in How To Install Go 1.11.2 on Ubuntu 18.04

Ubuntu
matthew class=
Failed to enable unit: Refusing to operate on linked unit file sshd.service
Apr 15, 2019
Ubuntu
mason class=
Passwd: You may not view or modify password information for root On Ubuntu 19.04
May 27, 2019
Ubuntu
isaac class=
/etc/apt/sources.list Permission denied
May 18, 2017
Ubuntu
yousuf class=
lsb_release command not working : Debian
Jan 18, 2018
ifconfig command
jackbrookes class=
what is the location of the ifconfig program on your machine?
Jan 4, 2018
Ubuntu
mason class=
"E: Package 'php-mcrypt' has no installation candidate" error on Ubuntu 20.4.1
Mar 15, 2021
NFS
luke class=
clnt_create: RPC: Program not registered
Apr 25, 2017
Apache
isaac class=
How to disable apache welcome page on Ubuntu
Dec 15, 2018

Related News in How To Install Go 1.11.2 on Ubuntu 18.04

Related News in How To Install Go 1.11.2 on Ubuntu 18.04

How To Install Mixxx on Ubuntu 16.04
How To Install Mixxx on Ubuntu 16.04
Oct 11, 2017
Ubuntu 17.04 released with greater expectations
Ubuntu 17.04 released with greater expectations
Apr 15, 2017
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Mar 1, 2017
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Sep 2, 2017
Ubuntu Unity is no more: One Linux dream has been axed
Ubuntu Unity is no more: One Linux dream has been axed
Apr 7, 2017
What’s next for Ubuntu Linux Desktop?
What’s next for Ubuntu Linux Desktop?
Apr 11, 2017
Say Hi to Ubuntu's new mascot
Say Hi to Ubuntu's new mascot
Mar 22, 2019
KDE Connect App was removed from Google Play Store and brought back in 24 hours
KDE Connect App was removed from Google Play Store and brought back in 24 hours
Mar 22, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Isaac ?
How to run windows application in linux

I need to run the windows application in my Linux machine, instead of installing from yum repo or any other repos. How to do that..??

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.