uninstalling postgresql

I recently installed postgresql 8.1.1 using a package on my powerbook running 10.4.5. Then I found 8.1.3 was released and I wanted to update. Things went bad and now I just want to get rid of it all. How do I do this??

tangerine iBook; 12" PowerBook G4; 17" iMac G5, Mac OS X (10.4.5), iSight, 2-20GB iPod w/ & w/o colour screen, AirPort (original, Extreme, Express)

Posted on Mar 11, 2006 1:31 PM

Reply
3 replies

Mar 11, 2006 3:46 PM in response to lime.jus

I've been using a program called DesInstaller that I got from versiontracker.com for ~3 years, and I think it does a good job of deinstalling packages.

Roger

Mar 11, 2006 9:07 PM in response to lime.jus

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

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

uninstalling postgresql

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.