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

package manager installed rust uninstall instructions are unclear #2662

Open
lgphp opened this issue Feb 14, 2021 · 4 comments
Open

package manager installed rust uninstall instructions are unclear #2662

lgphp opened this issue Feb 14, 2021 · 4 comments

Comments

@lgphp
Copy link

lgphp commented Feb 14, 2021

when i run : rustup self uninstall
it show:
error: self-uninstall is disabled for this build of rustup
error: you should probably use your system package manager to uninstall rustup

pls ask : how can i enable self-uninstall

@lgphp lgphp added the bug label Feb 14, 2021
@rbtcollins
Copy link
Contributor

You've installed rustup via some package manager. You need to use that same package manager to do the uninstall. E.g. apt/yum/snap/nix/whatever: we don't currently track what package manager installed rustup, so this message is as good as we can do.

@rbtcollins rbtcollins changed the title rust can't uninstall package manager installed rust uninstall instructions are unclear Feb 14, 2021
@kinnison
Copy link
Contributor

I think the big question here is "Can we do anything to detect which package manager was in use and thusly recommend an uninstallation method?"

Coupled with that could be "If rustup itself came from a package manager, should rustup self uninstall at least remove the toolchains and links in $CARGO_HOME perhaps?"

I think these are open questions which need some thought and design work.

@rbtcollins
Copy link
Contributor

I haven't looked at the package manager mode; if its configured via a /etc file or something we could have the manager insert a string in there for instance.

@workingjubilee
Copy link
Member

@rustbot label: +O-linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants