by mschuster91 · 3y ago · 0 comments
Most Linux distributions at least keeps package assets tracked (easy enough, given that packages aren't much more than a tarball that's extracted to / and a few scripts, and installation paths being relatively standardized). User configuration data is another issue entirely (edit: as are self-built programs, you need to keep the original build folder around and hope that the authors have made `make uninstall` actually work).
In contrast, Apple only follows the convention that a package's assets should be in /Applications/AppName.app... but apps are completely free to ignore that and install to anywhere not being protected by SIP, or to install LaunchAgents and whatnot without having to document that anywhere. That in turn means it's impossible to fully uninstall an Apple program that uses any of these features, and in addition macOS shares the same issue as Linux regarding user configuration data.
And Windows is the worst of the mess. It's essentially a free-for-all outside the Microsoft store, MSI (aka MS's attempt to copy Linux packages) is decent but tedious to package so you'll usually only find it used in enterprise software which needs to be packaged in a way suitable for deployment via GPOs, and on top of file cluttering Windows adds the Registry to the mess. Oh, and the bloatware of anything not installed from a Microsoft install medium.
If you can't install a normal Mac app via drag and drop, I'm not installing it. It's a great signal that you're dealing with an inexperienced Mac developer.
I absolutely refused to install Chrome for Mac, for instance, until they rewrote it to install via normal drag and drop after their custom installer/update workflow rendered computers unbootable.
> A wave of reported Macs being no longer able to boot was caused by a recent Google Chrome update that was corrupting a necessary operating system folder. Once the update was installed, affected users found they were no longer able to boot into macOS.
https://www.bleepingcomputer.com/news/security/buggy-google-...
I wish that packages got their own folders as standard, contained all the required libraries and had unique "internal" names like java packages to avoid conflicts. Very much like what Android and Nix do.
It's a bit of a pain for the package makers and some may call it bloat but there's less chance of non-main-repo programs forcing you to connect to their own repo and potentially creating a franken distro if it's not been updated (or has been updated too far!)
Hello, and welcome to Fedora Silverblue. Where everything is a container (flatpak)
With the minor exception of system drivers.
The worst is install shield wrappers around MSI files. I assume it's easier to make but it makes them awful to use for an enterprise.
In regards to the exe wrappers, handy for bundling dependencies but also useful for elevating permissions in ways you can't do in a standard MSI which only allows elevated permissions during certain stages of the install.
Yes! All OSs have this problem (I think that's what you meant later too?). There are two ways to solve this:
a) Put applications in their own containers (I believe that's what Android and iOS do?), and have them have to ask permission when wanting to access files outside
b) Have something like lsof attach itself to every application process (_like_ lsof, not actually lsof, because although you could get it to work, the costs would make it impractical)
Unfortunately, I think we're heading towards option (a).
To be fair, I'm not aware of any package managers (other than container-based ones) that enforce installation locations; AFAIK you can create a .deb or .rpm that will drop files in /home and run arbitrary scripts on install and uninstall. The thing imposing order on the filesystem is what the distro policy imposes on their first party packaging, not a technical limitation in the packaging system.