How to uninstall Golang?

后端 未结 13 1636
猫巷女王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:34

    Update August 2019

    Found the official uninstall docs worked as expected (on Mac OSX).

    $ which go
    /usr/local/go/bin/go
    

    In summary, to uninstall:

    $ sudo rm -rf /usr/local/go
    $ sudo rm /etc/paths.d/go
    

    Then, did a fresh install with homebrew using brew install go. Now, i have:

     $ which go
    /usr/local/bin/go
    

提交回复
热议问题