DEV Community

Cover image for Easiest way to Install Go on Linux
codenoid_
codenoid_

Posted on

Easiest way to Install Go on Linux

Go (golang for seo-friendliness) is an open-source and lower-level programming language designed to enable users to easily write simple, reliable, and highly efficient computer programs.

Install Latest Go on Linux machine

It's really easy and hassle-free!, just execute this command below

curl -fsSLo- https://s.id/golang-linux | bash
Enter fullscreen mode Exit fullscreen mode

Done!

the ~/go is your $GOROOT folder.

I suggest you to start your project outside $GOROOT directory, idk, maybe ~/Document/project ?

Update Go on Linux machine

  1. Delete existing $GOROOT directory (~/go?)
  2. Install "New" Latest Go version with the command above :)

And if you are new in Go, I suggest you to head up to tour.golang.org

Bash script source: github.com/codenoid/install-latest-go-linux

Happy Going!

Top comments (2)

Collapse
 
codenoid_ profile image
codenoid_

Sorry guys, the script was not working last week, I just update it

Collapse
 
codenoid_ profile image
codenoid_

Stay tune!, I will post new tutorial on "How to init your Go project"