How to "rustup self uninstall" in automation

I have not found how to run rustup self uninstall in an unprompted manner for automation. I most recently tried rustup self uninstall < /usr/bin/yes but there was a "error: stream did not contain valid UTF-8", so I decided to just ask about it.

$ rustup self uninstall -y

rustup ... < /usr/bin/yes will tie the actual file yes to standard input, which will look like junk. You wanted to run that and pipe its output, yes | rustup ...

(But the direct -y option is better.)


This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.