Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: How to uninstall the fabric (go version) completely #1061

Open
wshuyi opened this issue Oct 22, 2024 · 2 comments
Open

[Question]: How to uninstall the fabric (go version) completely #1061

wshuyi opened this issue Oct 22, 2024 · 2 comments
Labels
question Further information is requested

Comments

@wshuyi
Copy link

wshuyi commented Oct 22, 2024

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!

@wshuyi wshuyi added the question Further information is requested label Oct 22, 2024
@gao19874
Copy link

And how to uninstall anything installed via fabric.exe.

@alan-alvarenga-telus
Copy link

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!

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants