up vote 4 down vote favorite
share [g+] share [fb]

Despite opinions to the contrary, not all packages are installed cleanly in only one directory. Is there a way to reverse the install process of a pkg file, preferably with the original package (or from a repository of information about installed packages)?

Specifically I've installed the PowerPC MySQL 5.4.1 package on an intel MacBook, and would like to cleanly reverse that, recovering the 5.1 x86 install I can see is still there, but not working properly now.

link|improve this question

76% accept rate
feedback

2 Answers

up vote 4 down vote accepted

Built into the system there is no option to uninstall the files using an uninstaller so you can either make an uninstaller yourself or remove the files manually.

The best method to determine what files have been installed is to get a hold of the original .pkg if possible. If this is not possible you can also use the receipts instead found at /Library/Receipts. Your biggest issue is when you are dealing with a .mpkg which contains multiple .pkg files as you will then have to find all the seperate .pkg files in that folder (thankfully not that difficult when sorted by date).

Once you have the .pkg file (Receipt or the full install file) you can then use a utility to either create the uninstaller or find the files so you can remove them manually:

Uninstaller

LanRev InstallEase is a free program that can create uninstallers from existing .pkg files. Make the uninstaller .pkg file (note: You'll need Apple's Developer Tools installed to actually make the .pkg file)

Manually

Using a program such as Pacifist or a QuickLook plugin like Suspicious Package you can view what files are installed and at what location. Using that list you can then manually navigate to those folders and remove the files. I've used this method personally countless times before I discovered InstallEase, but this is still often faster if the install isn't spread out among many locations.

link|improve this answer
Thanks, while the regular 5.1 mysql packages left a receipt, the beta 5.4 mysql packages did not. That's slightly odd. – dlamblin Sep 6 '09 at 20:34
feedback

You can try the suggestions from this site: http://www.entropy.ch/software/macosx/mysql/remove-old-mysql.html. Also, there's an article regarding this on the Adobe support site; here's the link: http://support.adobe.com/devsup/devsup.nsf/docs/52355.htm.

Also, the apps that usually have a pkg file in the dmg usually also have another pkg that is used for uninstalling. I'm not sure if this is true here, but I wanted to let you know to keep the original dmg file.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.