Uninstalling the Retrospect 6.x backup client
Something I liked about the old Installer VISE Retrospect backup client installer was that it had an “Uninstall” function. That ability was lost when Retrospect’s builders switched to using standard Apple .pkg installers. There was an unofficial AppleScript uninstaller that was posted in the Retrospect forums, but it didn’t address the issue of 10.6’s receipts being stored in a different directory. So I’ve built this script to take care of uninstalling Retrospect 6.x clients:
#!/bin/sh
sudo killall retroclient
sudo killall pitond
sudo rm -rf /Applications/Retrospect\ Client.app
sudo rm -rf /Library/StartupItems/RetroClient
sudo rm /Library/Preferences/retroclient.state
sudo rm -rf /Library/Receipts/retrospectClient.pkg
sudo rm -rf /Library/Receipts/retroclient.pkg
sudo rm /var/db/receipts/com.retrospect.retroclientstartupitems.pkg.bom
sudo rm /var/db/receipts/com.retrospect.retroclientstartupitems.pkg.plist
sudo rm /var/db/receipts/com.retrospect.retrospectclient.pkg.bom
sudo rm /var/db/receipts/com.retrospect.retrospectclient.pkg.plist
Script available here on my GitHub repository.
It should stop both older and newer Retrospect 6.x clients on both 10.5.x and 10.6.x and clean up all application, settings and receipts files. Because I also wanted to be able to hand this script off as needed to those not necessarily comfortable with running scripts, I’ve also built a script-only installer package to run these commands. It’s posted here for download.
Very Nice and very useful!
I had a lot more files in /var/db/receipts/ :
com.retrospect.retroclientstartupitems.pkg.bom
com.retrospect.retroclientstartupitems.pkg.plist
com.retrospect.com.retrospect.RetrospectClientPrefpane.pkg.bom
com.retrospect.RetrospectClientPrefpane.pkg.plist
com.retrospect.launchd.retroclient.pkg.bom
com.retrospect.launchd.retroclient.pkg.plist
com.retrospect.launchd.retroclientapp.pkg.bom
com.retrospect.launchd.retroclientapp.pkg.plist
com.retrospect.launchd.updateretroclient.pkg.bom
com.retrospect.launchd.updateretroclient.pkg.plist
com.retrospect.retrospectclient.pkg.bom
com.retrospect.retrospectclient.pkg.plist
so, sudo rm /var/db/receipts/com.retrospect.*
Useful! I have to uninstall a bunch of Retrospect clients. Works really well, especially with Alex’s modification.