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

Uninstalling Rust downloads the whole Rust again #20283

Closed
sim4life opened this issue Dec 28, 2014 · 2 comments · Fixed by #22256
Closed

Uninstalling Rust downloads the whole Rust again #20283

sim4life opened this issue Dec 28, 2014 · 2 comments · Fixed by #22256

Comments

@sim4life
Copy link

Running the uninstall script on Mac OS X
curl -s https://static.rust-lang.org/rustup.sh | sudo sh -s -- --uninstall
downloads the while ~200MB of rust sources and then uninstalls the already installed Rust binaries.
It should NOT download the rust sources in case the uninstall option is given.

@brson
Copy link
Contributor

brson commented Jan 5, 2015

I have a todo to include an uninstall script with the installation.

@brson brson mentioned this issue Jan 5, 2015
65 tasks
@brson
Copy link
Contributor

brson commented Jan 14, 2015

cc #21117

Manishearth added a commit to Manishearth/rust that referenced this issue Feb 15, 2015
 Highlights:

* Adds an 'uninstall.sh' script to `/usr/local/lib/rustlib/uninstall.sh`, the path to which is printed during installation.
* Components can be deselected during install, like `install.sh --without=rust-docs`.
* Components can be listed with `install.sh --list-components`.
* Vastly reduces spew during install (but supporting a `--verbose` option).

Typicall install run looks like:

```
brian@brianX1:~/dev/multirust⟫ sudo ./install.sh
[sudo] password for brian:
install: creating uninstall script at /usr/local/lib/rustlib/uninstall.sh
install: installing component 'rustc'
install: installing component 'cargo'
install: installing component 'rust-docs'

    Rust is ready to roll.
```

Needs to be merged right before corresponding PRs to cargo and rust-packaging.

Fixes rust-lang#21117
Fixes rust-lang#20283
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants