HiveBrain v1.2.0
Get Started
← Back to all entries
snippetgoCritical

How to uninstall Go?

Submitted by: @import:stackoverflow-api··
0
Viewed 0 times
howuninstallstackoverflow

Problem

I tried the answer here Removed golang but go command still works?, but it didn't work (I can still run go)

Currently, when I run which go I see this output

/usr/local/go/bin/go


I think I had two installations of go as my GOPATH was pointing to another folder named gocode. I've now removed that folder, and the usr/local/go/bin/go folder.

I've also removed my GOPATH. However, I can still run go.

How do I uninstall go?

Solution

You might try

rm -rvf /usr/local/go/


then remove any mention of go in e.g. your ~/.bashrc; then you need at least to logout and login.

However, be careful when doing that. You might break your system badly if something is wrong.

PS. I am assuming a Linux or POSIX system.

Code Snippets

rm -rvf /usr/local/go/

Context

Stack Overflow Q#42186003, score: 100

Revisions (0)

No revisions yet.