port (pkg|dmg)

Joshua Root jmr at macports.org
Sat Oct 23 08:53:53 PDT 2010


On 2010-10-24 01:39 , Marko Käning wrote:
> Hi Anders,
> 
>> The Apple Installer.app doesn't feature uninstall (any longer), so you would need to use a third party utility.
> oh my god, I can't believe that now. :( Why would you do that??? Apple must have on-board utilities to deal with this… That would make sense, wouldn't it?
> So, what tool shall one use in such a case?

There's actually an --unlink option now for pkgutil(1), but it's really
easy to shoot yourself in the foot with. See the man page.

There are a number of programs you can find by googling for e.g. "mac
uninstaller" which probably work at least slightly better. (I can't
speak for them individually. None of them can create dependency
information from nothing though.)

>>> Would it mean one would have to install pkg by pkg in reverse order to get rid of the program initially installed?
>> You could look at the .bom file inside of each .pkg (with lsbom), to know which files that were installed by it.
> Hmm, but say one installed a program using a pkg file and dumps it afterwards.
> So, how do I find out at a later time without any mpkg or pkg, what files have been installed for a certain program ?

It's all stored in /Library/Receipts.

- Josh


More information about the macports-dev mailing list