by PaulHoule · 1y ago · 0 comments
$ sudo apt-get install X
and they can cut and paste and it's done. To do the same with a GUI package manager I'd have to spell out 10 or so steps. I've had enough times where the spinner started spinning and never stopped spinning and the lock file never got unlocked or the package database got corrupted that I won't even try using one.It would be like the time they took the giant lock out of the kernel, but that kind of thing is fraught. I remember a few years in the 2 series where we were getting crashes all the times under heavy load from concurrency bugs after they took out that lock.
If you increase the number of CPUs though this became an increasing bottleneck and IBM did some really amazing work to make Linux scalable. Trouble is you now have to lock on smaller resources and the various combinations of things that could get locked increases the complexity exponentially. From the viewpoint of a user space developer the locking facilities under POSIX aren’t that good and move the tradeoff between “sometimes waiting for a lock” vs “dealing with data corruption” towards the former.
Linux does have solutions to this - Flatpak implements the macOS strategy of redundant static-linking, and Nix has an isolated dynamically-linked package manager that allows you to build and install packages concurrently. But both use a lot of disk space and aren't super intuitive to users that just want native versions of the programs they use.