by amelius · 4y ago · 0 comments
No more “apt get”, “pacman -S”, “brew install”, etc. you just run “pkg add <package>” and it will a) actually have the package and b) download or build it whether you’re on debian, arch, macos, openBSD, etc.
You can configure to use the stable or nightly packages, you can add custom package repos including an AUR-equivalent “unverified” repo (and remove the default “verified but not securely audited” repo), you can configure to build everything manually if you want or only download prebuilt binaries, or download source code, or documentation. And you can do this globally, for users, for groups of packages, or for individual packages. You can patch local packages, you can define a buildscript and publish your own packages from their git repos, etc. You can even use a stable version of one package and force it to have nightly dependencies (or vice versa), probably not a good idea but you do you.
Honestly it sounds so simple but it isn’t implemented. Instead we have Debian for stable packages, Arch for nightly packages and AUR, macOS has homebrew with all its criticisms or MacPorts, and BSD has 3 different package managers all with their own flaws. And languages have their own package managers, which is fine (bc you’re not going to use one language’s package manager for another) but it would be nice to get that unified as well and have superior dependency resolution, workspaces, etc. for every language.
It's not that simple though as certain choices are fundamentally incompatible. In Debian packagers are expected to take "ownership" of the package, backport fixes, apply patches or fixes to integrate better with the Debian system, etc.
On Arch Linux, it will ship the latest stable version from upstream with as little modifications as possible.
You can go with one approach or you can go with the other, but you can't really do both at the same time.
Then there's the design of the tooling itself: apt behaves fundamentally different from pacman.
Some things can probably be unified here and there, but I don't think it's quite that simple.
If I had a dime for every hour of my life wasted by distro package managers (or really any package manager) breaking when I try to do some basic operation, I'd be a very rich person.
Linux is the desktop with the least amount of WTFs. With a big margin!
All other OSes break with every update.
Even the perpetual "beta"-system Debian Testing is much more robust in day to day use than things like macOS or Windows (and that holds even while installing whatever daily Debian updates come along without thinking)..
On a (semi-stable) Linux (like Testing) there are never "conflicts between packages", btw. This can only happen if you make a mess and mix up different distros…
Please don't spread FUD in the future if you don't know what you're talking about. Thanks.
That doesn't mean you have to try it again to update your opinions, if you have something else you're happy with now, but it does mean you should consider not spreading nonsense about things you haven't used.
macOS and Windows feel like toys in comparison to Linux which is an actual productivity tool.
How did you calibrate this? I've certainly had no more (far less) trouble with apt-get over the past decade than I have with any commercial OS package installation. What standard is Linux package management being measured against that currently exists? Package management is a dream on Linux compared to wrangling Windows software.
Would be curious to know what's the point as this never happened to me. In almost 25 years of Linux usage.
I wish people understood this, but sadly they seem to be more and more common as primary modes for software distribution.
And have those package managers manage to work without sudo in 2022?
But why is that a requirement? Homebrew doesn't work without root; it only pretends to.
How many of those are "built in into OS unlike the other OSes"?
> But why is that a requirement? Homebrew doesn't work without root; it only pretends to.
Can't remember when I last needed to run sudo with brew. Whereas I've yet to see a Linux distribution able to install anything per user.
The best package manager for macOS is Docker with an Alpine container. Not ruby scripts with git as a backend and questionable permissions.