How to uninstall Golang?

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

    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.

提交回复
热议问题