DEV Community

Cover image for Como instalar Golang no Linux Ubuntu 20.04.3 LTS
William Koller
William Koller

Posted on

5 2

Como instalar Golang no Linux Ubuntu 20.04.3 LTS

Olá queridos desenvolvedores(as)!!

Nesse tutorial iremos ver como instalamos o golang no Ubuntu.

Primeiro passo acessar página de donwloads do golang:
golang download

Iremos escolher a versão desejada, no caso a 1.17.7

Na raiz no seu path iremos fazer o download com o wget



wget https://golang.org/dl/go1.17.7.linux-amd64.tar.gz -O gol.tar.gz


Enter fullscreen mode Exit fullscreen mode

Image description

Iremos descompactar o path

sudo tar -vzxf gol.tar.gz -C /usr/local

Em seguinda iremos adicionar no bash de usa preferência, no caso zsh sudo nano ~/.zshrc:



export GOROOT=/usr/local/go
export PATH=$PATH:/usr/local/go/bin


Enter fullscreen mode Exit fullscreen mode

Em seguida rodamos o comando para atualizar o zsh source ~/.zshrc.

Podemos testar no terminal a versão instalada do golang

go version

Image description

Eepero ter ajudado.

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay