Rust's simple download script

Jacob Carlborg via Digitalmars-d digitalmars-d at
Tue Nov 10 04:50:47 PST 2015

On 2015-11-10 00:07, Andrei Alexandrescu wrote:
> Rust has a nice way to download at
> for Posix:
> $ curl -sSf | sh -s --
> The method is simple and transparent. An optional --channel=beta or
> --channel=nightly parameter chooses between a stable release (default),
> beta, or nightly build.
> Should we do something similar?

A bit long but this will install DVM [1] and the latest compiler:

curl -L -o dvm 
&& chmod +x dvm && ./dvm install dvm && source ~/.dvm/scripts/dvm && dvm 
install -l

And on Windows (with Power Shell) :

powershell -Command "Invoke-WebRequest 
-OutFile dvm.exe" && dvm install dvm && dvm install -l

Links to other platforms are available here [1].


/Jacob Carlborg

More information about the Digitalmars-d mailing list