Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do most Mac applications need no installation (just copy into /Application)?

I have used Windows, Mac OS, and Linux (Ubuntu, Redhat). On the Mac OS, installing a new application (in most cases) only requires copying it into /Applications, whereas in Windows, the installer copies files all over the place. In Linux, make install or the Debian installer also copy files into many different folders.

Is it because Mac software is mostly self-contained? Or is it because the OS is so clever that it handles the dependencies under the hood?

like image 216
Wei Shi Avatar asked Sep 13 '25 11:09

Wei Shi


2 Answers

It's just a choice in how dependencies are handled, not any magic done by the OS itself. Self-contained applications have the advantage of dropping dependency issues and simplifying application management (drag and drop!), but bring with them the price of bloat with needing to bundle libraries and other dependencies with the applications. In addition, one needs to be diligent in the updating/maintenance of the applications so that issues such as security flaws can be corrected (a task that is somewhat simpler with a package manager).

like image 127
don Avatar answered Sep 16 '25 12:09

don


Because most ".app" applications on OS X are self-contained, and package their own versions of all of their dependencies. Taking Perforce as an example, each of their GUI apps (P4v and P4Admin) both bundle their own dependencies, which means each one comes with 100s of MBs of QT libraries, for almost half a Gigabyte total for the apps.

But it's a tradeoff, size on the one hand for ease of installation on the other.

like image 26
Adam Vandenberg Avatar answered Sep 16 '25 10:09

Adam Vandenberg