@@ -29,6 +29,32 @@ $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default
29
29
$ curl --proto ' =https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --default-toolchain nightly
30
30
```
31
31
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
+
32
58
If you prefer you can directly download ` rustup-init ` for the platform of your
33
59
choice:
34
60
@@ -106,6 +132,8 @@ choice:
106
132
You can fetch an older version from
107
133
` https://static.rust-lang.org/rustup/archive/{rustup-version}/{target-triple}/rustup-init[.exe] `
108
134
135
+ ## Self-compiled installation
136
+
109
137
To install ` rustup ` from source, check out the git repository from
110
138
< https://github.com/rust-lang/rustup > and run ` cargo run --release ` . Note that
111
139
after installation the ` rustup ` toolchains will supersede any pre-existing
0 commit comments