snippetgoCritical
How to uninstall Go?
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
I think I had two installations of go as my
I've also removed my
How do I uninstall go?
Currently, when I run
which go I see this output/usr/local/go/bin/goI 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
then remove any mention of
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.
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.