3 ms·
> packaged as a .pkg, which makes it really easy to cleanly erase installed software. In theory, but there's no package uninstaller and OS X installer packages
by DHowett 10y ago
> packaged as a .pkg, which makes it really easy to cleanly erase installed software.
In theory, but there's no package uninstaller and OS X installer packages are neither pure nor idempotent.
While you can remove the files installed by one, there's no straightforward or platform-provided way to undo the changes made by their (generally unknowable) install scripts.
Incidentally, Apple shipped an Xcode uninstaller; written in perl, it used lsbom and pkgutil to collect and subsequently remove the files owned by all the com.apple.dt packages complement the system-owned files or files installed by other packages.
- curun1r 10y agoYes, it's not as clean as Nix when it comes to uninstall, but using piping pkgutil to rm has never gotten my machine in as borked of a state as Homebrew inevitably does. Also, many .pkg files provide an uninstall script of their own which is almost always reliable.