Hi lime.jus,
"a package"?? What in the world does that mean? Is it a Mac OS X Installer package, a tarball of source code, a tarball of compiled code, a Fink package or a DarwinPorts package?
Mac OS X Installer packages generally produce .bom files or "bill of materials" files, which contain a list of everything installed. Either directly or indirectly through the Installer utility, that's probably what Roger's app uses. However, it's fairly simple just to use lsbom to list the files and remove them by hand. Alternatively, I haven't written a script for this list in a while and I like to keep in practice, although I regularly write scripts at work.
Anyway, I wrote a script,
delpkg, that removes the files listed in a package's .bom file. It doesn't remove directories because the .bom files list directories, like /Applications, that contain things besides those created by the installer. It wouldn't be too hard to test for the presence of files not in the package but it would be a little messy and it's not worth it for such a script.
By default, this script produces a ridiculous amount of output, asking before removing each file and reporting when it does so. There are options for turning off the questions, -y, and the reports, -q, for the adventurous. Also, I wouldn't remove any package, like an update, that replaces files because the originals aren't available. Finally, I should move the files to trash instead of deleting them. However again, this script isn't worth the effort.
One thing that I can add that's useful is to remind you that no automated removal method will delete the data files that are probably in a /var/postgresql* or /usr/local/var/postgresql* directory.
--
Gary
~~~~
I met my latest girl friend in a department store. She was
looking at clothes, and I was putting Slinkys on the escalators.
-- Steven Wright