You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After reading the documentation, I am still not clear how to uninstall the fabric (go version) completely. I am new to GO language and I need help. Thanks!
The text was updated successfully, but these errors were encountered:
After reading the documentation, I am still not clear how to uninstall the fabric (go version) completely. I am new to GO language and I need help. Thanks!
Go doesn’t have a specific command to "uninstall" binaries installed with go install. However, you can manually remove them from your system. Here’s how you can do it step-by-step:
1. Locate the Installed Binary
When you use go install, Go places the binary in a directory called GOBIN. If you haven’t explicitly set GOBIN, Go defaults to placing it in the bin folder of your Go workspace, typically found at:
$HOME/go/bin
You can find the exact location by running:
go env GOBIN
If GOBIN is not set, run:
go env GOPATH
Then look inside the bin directory under the printed path (e.g., $HOME/go/bin).
2. Remove the Binary
Once you locate the binary, you can delete it using the following command in the terminal:
rm $HOME/go/bin/fabric
Or, more generally:
rm $(go env GOPATH)/bin/fabric
This command removes the fabric binary from your system.
Why
Go’s go install installs a standalone executable file (binary) rather than a package with dependencies. That's why removing the binary manually is the simplest way to "uninstall" it.
What is your question?
After reading the documentation, I am still not clear how to uninstall the fabric (go version) completely. I am new to GO language and I need help. Thanks!
The text was updated successfully, but these errors were encountered: