Skip to content

Commit 7e22426

Browse files
committed
Mention brew install rustup-init in the user guide
1 parent bc96a2a commit 7e22426

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

doc/user-guide/src/installation/other.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,32 @@ $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default
2929
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --default-toolchain nightly
3030
```
3131

32+
33+
## Using a package manager
34+
35+
> Please note that the rustup project is not maintaining any package mentioned in this section.
36+
> If you have encountered any problems installing `rustup` with a package manager,
37+
> please contact the package maintainer(s) for further information.
38+
39+
### Homebrew
40+
41+
You can use `brew` to install `rustup-init`[^not-rust]:
42+
43+
```sh
44+
$ brew install rustup-init
45+
```
46+
47+
Then execute `rustup-init` to proceed with the installation.
48+
49+
When the installation is complete,
50+
make sure that `$HOME/.cargo/bin` is in your `$PATH`,
51+
and you should be able to use `rustup` normally.
52+
53+
[^not-rust]: This is not to be confused with the `rust` package,
54+
which is a `brew`-managed `rust` toolchain installation.
55+
56+
## Manual installation
57+
3258
If you prefer you can directly download `rustup-init` for the platform of your
3359
choice:
3460

@@ -106,6 +132,8 @@ choice:
106132
You can fetch an older version from
107133
`https://static.rust-lang.org/rustup/archive/{rustup-version}/{target-triple}/rustup-init[.exe]`
108134

135+
## Self-compiled installation
136+
109137
To install `rustup` from source, check out the git repository from
110138
<https://github.com/rust-lang/rustup> and run `cargo run --release`. Note that
111139
after installation the `rustup` toolchains will supersede any pre-existing

0 commit comments

Comments
 (0)