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

uninstall not working rustup self uninstall #1150

Closed
p3x-robot opened this issue Jun 4, 2017 · 9 comments
Closed

uninstall not working rustup self uninstall #1150

p3x-robot opened this issue Jun 4, 2017 · 9 comments

Comments

@p3x-robot
Copy link

i tried with uninstall

rustup self uninstall

it says:

patrikx3@workstation ~ $ rustup self uninstall
rustup: command not found
patrikx3@workstation ~ $ 

how can i remove? cargo working!

@Diggsey
Copy link
Contributor

Diggsey commented Jun 4, 2017

Sounds like you didn't use rustup to install rust.

@p3x-robot
Copy link
Author

ciao!
how are you?
thanks so much!

i used the .sh script from rust, but i have no idea to uninstall. what do i do??? thanks!
bye!

@Diggsey
Copy link
Contributor

Diggsey commented Jun 4, 2017

See here for how to uninstall rust if you use the old rustup.sh installer: https://users.rust-lang.org/t/how-to-uninstall-rust/149/5

If you have any further issues, feel free to ask on IRC, the forum^ or open an issue on the rustup.sh repo: https://github.com/rust-lang/rustup.sh

@Diggsey Diggsey closed this as completed Jun 4, 2017
@p3x-robot
Copy link
Author

ok thanks.

@p3x-robot
Copy link
Author

ok but, why is it still installed??

patrikx3@workstation ~ $ sudo /usr/local/lib/rustlib/uninstall.sh
install: uninstalling component 'rustc'
install: uninstalling component 'cargo'
install: uninstalling component 'rust-docs'
install: uninstalling component 'rust-std-x86_64-unknown-linux-gnu'

    Rust is uninstalled.

patrikx3@workstation ~ $ sudo /usr/local/lib/rustlib/uninstall.sh
sudo: /usr/local/lib/rustlib/uninstall.sh: command not found
patrikx3@workstation ~ $ rustc --version
rustc 1.7.0
patrikx3@workstation ~ $ sudo apt remove rust
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package rust
patrikx3@workstation ~ $ rustc
Usage: rustc [OPTIONS] INPUT

Options:
    -h --help           Display this message
    --cfg SPEC          Configure the compilation environment
    -L [KIND=]PATH      Add a directory to the library search path
    -l [KIND=]NAME      Link the generated crate(s) to the specified native
                        library NAME. The optional KIND can be one of, static,
                        dylib, or framework. If omitted, dylib is assumed.
    --crate-type [bin|lib|rlib|dylib|staticlib]
                        Comma separated list of types of crates for the
                        compiler to emit
    --crate-name NAME   Specify the name of the crate being built
    --emit [asm|llvm-bc|llvm-ir|obj|link|dep-info]
                        Comma separated list of types of output for the
                        compiler to emit
    --print [crate-name|file-names|sysroot]
                        Comma separated list of compiler information to print
                        on stdout
    -g                  Equivalent to -C debuginfo=2
    -O                  Equivalent to -C opt-level=2
    -o FILENAME         Write output to <filename>
    --out-dir DIR       Write output to compiler-chosen filename in <dir>
    --explain OPT       Provide a detailed explanation of an error message
    --test              Build a test harness
    --target TRIPLE     Target triple cpu-manufacturer-kernel[-os] to compile
                        for (see chapter 3.4 of
                        http://www.sourceware.org/autobook/ for details)
    -W --warn OPT       Set lint warnings
    -A --allow OPT      Set lint allowed
    -D --deny OPT       Set lint denied
    -F --forbid OPT     Set lint forbidden
    --cap-lints LEVEL   Set the most restrictive lint level. More restrictive
                        lints are capped at this level
    -C --codegen OPT[=VALUE]
                        Set a codegen option
    -V --version        Print version info and exit
    -v --verbose        Use verbose output

Additional help:
    -C help             Print codegen options
    -W help             Print 'lint' options and default settings
    -Z help             Print internal options for debugging rustc
    --help -v           Print the full set of options rustc accepts

patrikx3@workstation ~ $ 

looks like it is still there hanging :(

@zo-el
Copy link

zo-el commented Aug 27, 2018

Is their a solution for the problem @p3x-robot mentioned ?

@p3x-robot
Copy link
Author

I have reverted to a backup.

@p3x-robot
Copy link
Author

@divaisthewonder
Copy link

your rust is installed via tools chains and you must remove the tools chaing by rustup self uninstall

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

No branches or pull requests

4 participants