/ golang

How to upgrade GoLang

It might come as a surprise that installing the latest Go release does not automatically upgrade Go on your system.

If you are upgrading from an older version of Go, you must first remove the existing version as mentioned here: Uninstalling previous version of Go

However, even after performing these steps - you might be able to execute the go binary.

To fix this issue, do go clean -i all. This automatically remove the previous go binary from the system

After removing Go, you can reinstall it with the latest package. And check the latest version with go version

Anup Shinde

Anup Shinde is Programmer, Algo Trader, Web Developer, Data Analyst and Machine-Learning researcher.

Read More
How to upgrade GoLang
Share this

Subscribe to Anup Shinde