Installing Golang is pretty straightforward

  1. Remove prior installations
 rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.6.linux-amd64.tar.gz
  1. Download a release
  2. Unzip the archive
tar -xvzf RELEASE.tar.gz
  1. Export the /bin directory to PATH
export PATH=$Path_To_Bin
  1. Check version
go version