3 ms·
both the Julia and Rust programming languages use curl -> sh to install
by tuvix 4mo ago
both the Julia and Rust programming languages use curl -> sh to install
- tovej 4mo agoBoth of them provide that option. I've never installed rust without a package manager. Why would I?
- qarl2 4mo ago> Why would I? Because then you can install it without depending on a package manager?
- tovej 4mo agoYeah, from source in that case. Or using a verified binary if I absolutely had to.
- qarl2 4mo agoYes, if you want to, you can do that. Understand that 99% are comfortable trusting downloads. They know that it's just as easy to sneak backdoors into source code as it is to sneak backdoors into executables. See also: XZ hack.
- tovej 4mo ago99% of developers are most definitely not comfortable piping a script into the shell. I would never runa script without reviewing it. I would install a package from a distros repository without reviewing the contents, however, because I can trust that a distro maintainer has reviewed it, that anyone else in the community can review it, and that that the bytes I'm downloading are the specific bytes I'm supposed to be downloading. If you run a script off the open internet, you're being massively irresponsible. There are so many attack vectors that could be used here, and they are much easier to implement than something like the massive social engineering attack that was XZ.
- HDBaseT 4mo agoDepending on a package manager has its benefits. I personally try and use my operating systems package manager for all applications (in this instance, dnf on Fedora). The moment you start adding a million repos, third party package managers, Flatpaks, Snaps, random curl install scripts, etc, it becomes extremely unmaintainable. What happens if the curl application depends on openssl, maybe with a legacy or specific cryptographic function? I assume the curl script will either install the required version, or include the relevant libraries right? Now that is outside of the system package managers scope, meaning updating openSSL to avoid some vuln now requires extra work. What happens when you go from Fedora 44 to 45? You should be checking all your applications are supported on whatever version or operating system you are running. There is a decently high chance you run into dependency issues when some lib version is updated. Package Managers are (generally) more secure and simple to use for an end user (they are using the OS to begin with). Curl scrips are easier for the software developers.
- qarl2 4mo agoSure. Agreed. I do it myself. But sometimes people don't do that. Sometimes people don't care about that at all. And it's not just sometimes - it's most people. So. They have their option too. And it's at the top, where most people can find it.
- Ferret7446 3mo agoWhat an odd comment. "You can mine and refine your own iron ore so you can have a metal fork without depending on modern infrastructure." Sure, but why.
- qarl2 3mo agoIt doesn't matter why. Many people choose to do it that way. And if you want them to use your software, you need to enable them. But to answer your question directly - I suspect they simply don't care, and just take the easiest way.