Honestly, I really hate this new "download our magic install script and run it as root" thing that is happening with dev tools in recent years. At least the Arch wiki is sensible enough to tell you to read the script before running, rather than just piping it into sh like the rustup page suggests. (of course, what does the script do? It curls a bunch of files and executes them).
I feel like the whole thing is being driven by Mac users who haven't got a real package manager and therefore have no qualms about sudo curling binaries all over their system willy-nilly.
FWIW, rustup offers the ability to utilize multiple toolchains. To do this using Pacman would be kind of difficult since it's designed to work with only one version at a time. You can use environment switching tools but ultimately it requires effort to set up and maintain.
That's the main reason I use rustup now. Being able to use both stable and nightly is critical for me.
rustup offers the ability to utilize multiple toolchains. To do this using Pacman would be kind of difficult since it's designed to work with only one version at a time.
I have a feeling this is the perfect niche for Nix, but what do I know. Seems perfect for dev stuff.
To be fair, mac OS has homebrew, which is alright at least to my taste. It isn't officially supported by Apple, which is lame but kind of logical given the course of company's actions.
It helps, but how many installs does it really have compared to how many devs out there using a Mac?
People providing tools need to cater to the lowest common denominator and I'm sure there is a lot of people out there that have homebrew but rarely use it religiously.
Homebrew is a dumpster fire. It saves to /usr/local with user-specific permissions. You can customize the install target, but the documentation that tells you about that also tells you not to do it, because it's expected to break packages. So when I had a mac and tried to use different personal and work logins, homebrew happily installed packages as one user, and blew up on file permissions when I tried to update from the other user.
As others have said It's not run as root. Still not happy about the move to install scripts but it's still no different than running an installer on windows or mac. It's not Rust to blame though. Rust should make a portable install that works anywhere an elf runs and package maintainers should make platform specific packages. I much prefer what rust does compared to making me compile from source. It's up to package maintainers to keep packages up to date so I don't have to use the raw script.
No shit. Unpackaged software installed by the local sysadmin belongs in /usr/local/bin or /opt/bin if simply installing to the home directory isn't an option.
It's probably easier to just use pacman -S rustup as a compromise between installing Rust directly (pacman -S rust) which is problematic if you want to use RLS or Clippy or using a bash script to install Rust. Rustup installation script does pretty much what pacman -S rustup does anyway, and it's just as usable (with exception for rustup self update not working for pacman -S rustup, but you don't want to use it anyway).
If you only work with stable rust and don't need to compile using other toolchains then using pacman is fine. Otherwise I would definitely recommend using rustup.
rustup is simple and solid. I guess I'm a bit surprised to hear myself say it, but I don't mind using rustup as a sort of second-tier "package manager" to manage my Rust toolchains.
48 comments
Honestly, I really hate this new "download our magic install script and run it as root" thing that is happening with dev tools in recent years. At least the Arch wiki is sensible enough to tell you to read the script before running, rather than just piping it into
shlike the rustup page suggests. (of course, what does the script do? Itcurls a bunch of files and executes them).I feel like the whole thing is being driven by Mac users who haven't got a real package manager and therefore have no qualms about
sudo curling binaries all over their system willy-nilly./axe ground
rustup does not require root.
https://xkcd.com/1200/
Deleted before we saved it.
FWIW, rustup offers the ability to utilize multiple toolchains. To do this using Pacman would be kind of difficult since it's designed to work with only one version at a time. You can use environment switching tools but ultimately it requires effort to set up and maintain.
That's the main reason I use rustup now. Being able to use both stable and nightly is critical for me.
pacaur -S python15 python25 python26 python30 python32 python33 python34 python35I may be misunderstanding you, but you can definitely install different versions of software with a package manager?
I have a feeling this is the perfect niche for Nix, but what do I know. Seems perfect for dev stuff.
To be fair, mac OS has homebrew, which is alright at least to my taste. It isn't officially supported by Apple, which is lame but kind of logical given the course of company's actions.
It helps, but how many installs does it really have compared to how many devs out there using a Mac?
People providing tools need to cater to the lowest common denominator and I'm sure there is a lot of people out there that have homebrew but rarely use it religiously.
Homebrew is a dumpster fire. It saves to /usr/local with user-specific permissions. You can customize the install target, but the documentation that tells you about that also tells you not to do it, because it's expected to break packages. So when I had a mac and tried to use different personal and work logins, homebrew happily installed packages as one user, and blew up on file permissions when I tried to update from the other user.
Guess how you install homebrew...
As others have said It's not run as root. Still not happy about the move to install scripts but it's still no different than running an installer on windows or mac. It's not Rust to blame though. Rust should make a portable install that works anywhere an elf runs and package maintainers should make platform specific packages. I much prefer what rust does compared to making me compile from source. It's up to package maintainers to keep packages up to date so I don't have to use the raw script.
Exactly.
I agree with you, but after they decided to break the entire arch haskell ecosystem for giggles I don't feel like there's a right answer anymore.
No shit. Unpackaged software installed by the local sysadmin belongs in /usr/local/bin or /opt/bin if simply installing to the home directory isn't an option.
It's probably easier to just use
pacman -S rustupas a compromise between installing Rust directly (pacman -S rust) which is problematic if you want to use RLS or Clippy or using a bash script to install Rust. Rustup installation script does pretty much whatpacman -S rustupdoes anyway, and it's just as usable (with exception forrustup self updatenot working forpacman -S rustup, but you don't want to use it anyway).I think this is what I do. Nice compromise.
When you're using a language as young as Rust, where every month you get new features, it doesn't make sense to use a package manager.
If you only work with stable rust and don't need to compile using other toolchains then using pacman is fine. Otherwise I would definitely recommend using rustup.
https://wiki.archlinux.org/index.php/Rust#Official_Rustup_Installation
Tough choice!
rustupis simple and solid. I guess I'm a bit surprised to hear myself say it, but I don't mind usingrustupas a sort of second-tier "package manager" to manage my Rust toolchains.This has sparked a constructive discussion that seems to be ok, so ignoring reports.
I feel ya