How to uninstall Golang?

后端 未结 13 1504
猫巷女王i
猫巷女王i 2020-12-29 00:55

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 o

13条回答
  •  被撕碎了的回忆
    2020-12-29 01:42

    From the official install page -

    To remove an existing Go installation from your system delete the go directory. This is usually /usr/local/go under Linux, macOS, and FreeBSD or c:\Go under Windows.

    You should also remove the Go bin directory from your PATH environment variable. Under Linux and FreeBSD you should edit /etc/profile or $HOME/.profile. If you installed Go with the macOS package then you should remove the /etc/paths.d/go file. Windows users should read the section about setting environment variables under Windows.

提交回复
热议问题