Install Go (1.21.0) in Ubuntu 22.04.2 in 5 minutes.

--

Hey! This is Prince Roy, a cyber security researcher. I found that many of you guys failed to install Go on your system, and for that reason, you are not able to install Go language-based tools.

Okay, guys! Now I am going to show you how to install Go (1.21.0) on your updated Ubuntu machine.

Steps:

1. sudo apt-get update
2. wget https://go.dev/dl/go1.21.0.linux-amd64.tar.gz
3. sudo tar -xvf go1.21.0.linux-amd64.tar.gz
4. sudo mv go /usr/local
5. export GOROOT=/usr/local/go
6. export GOPATH=$HOME/go
7. export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
8. source ~/.profile

Just put those commands in your Ubuntu terminal. Boom! Go successfully installed in your system. For checking the version, put this command:

go version

This will show you the exact version of Go.

Thanks in advance for reading my small blog. Finally, just go and install all of your desired tools.

--

--

Prince Roy(RoyzSec)
Prince Roy(RoyzSec)

Written by Prince Roy(RoyzSec)

Cyber Security Researcher | Ex-GPCSSI2021

Responses (3)