Skip to content

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 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.

/axe ground

215 points

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.

27 points

pacaur -S python15 python25 python26 python30 python32 python33 python34 python35

I may be misunderstanding you, but you can definitely install different versions of software with a package manager?

13 points

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.

5 points

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.

7 points

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.

5 points

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.

2 points

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.

7 points

it's still no different than running an installer on windows or mac

Exactly.

1 points

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.

2 points

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.

2 points

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).

25 points

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.

2 points

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.

18 points

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.

7 points

This has sparked a constructive discussion that seems to be ok, so ignoring reports.

3 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.