---
# System prepended metadata

title: Install Go Lang on Ubuntu Server.

---

# Install Go Lang on Ubuntu Server.
Instructions to Install Go Lang on Ubuntu Server :

▶ Visit : https://golang.org/dl/
▶ Download : wget https://golang.org/dl/go1.16.5.linux-amd64.tar.gz
▶ Extract : rm -rf /usr/local/go && tar -C /usr/local -xzf go1.16.5.linux-amd64.tar.gz
▶ Open : nano ~/.bashrc
▶ Add :

GOPATH=/root/go-workspace
export GOROOT=/usr/local/go
PATH=$PATH:$GOROOT/bin/:$GOPATH/bin

▶ Run : source ~/.bashrc
▶ Check : go version