DEV Community

Muhammad Farooq
Muhammad Farooq

Posted on

install Go language on Ubuntu

Introduction

Go? Sometimes referred as "Golang", is a programming language that was made by Google and they made it available for anyone to use for free in 2012. The main idea behind Go was to create a language that would be easy to learn, so that more people could use it.

Remove previous installation (if there is any)

Remove any previous Go installation by deleting the /usr/local/go folder (if it exists).

sudo rm -rf /usr/local/go

Installation

Method 1

execute the following command

sudo snap install go

but it might give the following error:

error: This revision of snap "go" was published using classic confinement and thus may perform arbitrary system changes outside of the security sandbox that snaps are usually confined to, which may put your system at risk.

If you understand and want to proceed repeat the command including --classic .

now run the following command

sudo snap install --classic go

Go will be installed on your system

Check installation

to check whether the go is installed or not run the following command

go version

it will display the version of installed go language

I hope this tutorial will help you

Apache AGE viewer Desktop Project is under development in Go

AGE viewer Desktop Go

visit Apache AGE:

Official Site

Apache AGE Github

Top comments (0)