DEV Community

Cover image for Easiest way to Install Go on Linux

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- | bash
Enter fullscreen mode Exit fullscreen mode


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

Bash script source:

Happy Going!

Top comments (1)

codenoid_ profile image

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

👋 Every week new members join DEV and share a bit about them in our Welcome Thread

Welcome them to DEV and share a bit about yourself