Install Go on Ubuntu Server

Published: 20 June 2023
on channel: NetSysPro Solutions
1,700
8

Download go
============
wget https://go.dev/dl/go1.18.linux-amd64....

Remove old package
===================
rm -rf /usr/local/go

Extract the file
================
tar -C /usr/local -xzf go1.18.linux-amd64.tar.gz

Add variables
==============
nano /root/.bashrc

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

Update bashrc
==============
source /root/.bashrc

Install Required Package
======================
apt install -y make

Optional
==========
GO111MODULE=on go mod vendor

Verify Installation
====================
go version


Watch video Install Go on Ubuntu Server online without registration, duration hours minute second in high quality. This video was added by user NetSysPro Solutions 20 June 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,700 once and liked it 8 people.