Home >Backend Development >Golang >Why Can I Still Run the 'go' Command After Apparently Uninstalling Go?
Uninstalling Go with Persisting Command
Despite executing the solution provided in a previous thread, you are still able to run the "go" command, indicating that Go is still installed. To thoroughly uninstall Go, follow these steps:
Official Uninstall Method (Mac OSX)
As per the official uninstall documentation, execute the following commands:
sudo rm -rf /usr/local/go sudo rm /etc/paths.d/go
Additional Considerations
Remove Go Binaries: Check if Go binaries are present elsewhere by using the "locate" command, e.g.:
locate go
If found, manually remove them using the "rm" command.
Remove Go Modules Cache: Delete the Go modules cache by running:
rm -rf "$HOME/go/pkg/mod"
Troubleshooting
If encountering further issues, try the following:
The above is the detailed content of Why Can I Still Run the 'go' Command After Apparently Uninstalling Go?. For more information, please follow other related articles on the PHP Chinese website!