#Rust installation instructions go like:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
But what you actually want to do most of the time, is probably:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- --no-modify-path
@jarkko This is my first time seeing --no-modify-path. Thanks!
@jon_giraffe for more options:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- --help
@jon_giraffe or if you want to go crazy:
$ alias rustup-init="curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s --"
$ rustup-init --help
rustup-init 1.27.0 (b02c9c2b4 2024-03-08)
The installer for rustup
Usage: rustup-init[EXE] [OPTIONS]
Options:
-v, --verbose
Enable verbose output
-q, --quiet
Disable progress output
-y
Disable confirmation prompt.
--default-host <default-host>
Choose a default host triple
--default-toolchain <default-toolchain>
Choose a default toolchain to install. Use 'none' to not install any toolchains at all
--profile <profile>
[default: default] [possible values: minimal, default, complete]
-c, --component <components>...
Component name to also install
-t, --target <targets>...
Target name to also install
--no-update-default-toolchain
Don't update any existing default toolchain after install
--no-modify-path
Don't configure the PATH environment variable
-h, --help
Print help
-V, --version
Print version
Execution of a remote payload but should be fairly secure as it is verified with rust-lang.org CA (thanks to TLS 1.2).