How to install Golang software in Ubuntu Linux [2025 complete guide]

Опубликовано: 12 Июнь 2026
на канале: Wasim Explains
54
6

In this video, you’ll learn how to install Golang (Go language) on Ubuntu Linux easily and correctly. Whether you are a beginner, developer, DevOps engineer, or student, this tutorial covers everything you need to get started with Go programming on Ubuntu.

I’ll walk you through:
✅ Downloading the latest Golang version
✅ Installing Go on Ubuntu 20.04 / 22.04 / 24.04
✅ Setting up GOROOT and GOPATH environment variables
✅ Verifying Go installation using the terminal
✅ Running your first Go program on Ubuntu

This tutorial follows official best practices, so your Go setup will be stable and production-ready.


Commands used in video for installing golang software on ubuntu terminal:

sudo rm -rf /usr/local/go

wget https://go.dev/dl/go1.22.5.linux-amd6...

sudo tar -C /usr/local -xzf go1.22.5.linux-amd64.tar.gz

nano ~/.bashrc

export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin

source ~/.bashrc

go version