The root cause of this is no universal packaging format for Linux in my opinion.
Which some have attempted to solve, so now we also have Flatpack, AppImage, and Snap -- each with their own little issues.
I wish there were a simple, modern, easily configurable tool that can take a declarative description of a project and spit out a ready-to-serve repository (just point nginx at it!) for most commonly used package formats. For Linux daemons this should be easier than ever before, now that systemd has gobbled up all the major distros.
Depends on who do you mean by "you". Software vendor can definitely write a script but they have no power over distributions to "move that logic to the packaging system".
This would have to be a collaborative work by different distros but from my casual look it's just not happening as everyone is happy with their own package manager that's "obviously the best".
I do agree on systemd. I didn't like it before I moved to Linux now I see a lot of value that it brings.
This may also be relevant: http://0pointer.net/blog/revisiting-how-we-put-together-linu...
I think there was a misunderstanding between us. I didn't mean anything so complicated.
By "moving that logic to the packaging system", all I meant is that instead of using a script to detect whether your app is being installed on Ubuntu or Fedora or whatever, you should just build and publish separate packages for each distro you wish to support. The logic for selecting the right package for itself is already built into every packaging system, ready for anyone to use.
Hopefully the process of building a dozen packages with each release can be easily automated once it is set up.
We have the freedom to use different package managers. It comes, likes everything else, with it's own drawbacks.
I can’t predict where a shell script will scribble or what other changes it will make to my system.
All these recipes and scripts are supposedly downloaded from GitHub. With supposedly anonymous user analytics: https://github.com/Homebrew/brew/blob/master/docs/Analytics....
The only software that has any right to rely on an ad-hoc install script on a Unix-like system is the package manager itself. It's awful enough that I have to do apt update and npm update separately. Please don't add even more ways to pollute my system.