Bash script uninstall Cirrato?

jonros
Contributor II

Does anyone possibly have a bash script to uninstall Cirrato? I have tried many things without success.
I know that Cirrato isn’t a very common software, but I give it a try here anyway.

3 REPLIES 3

AJPinto
Esteemed Contributor

When I cant seem to find a clean way to uninstall something I will use Jamf Composer to take a snapshot before I install something. Then write a script that deletes everything that was installed by the installer. 

sdagley
Esteemed Contributor II

@jonros If the Cirrato installer was a .pkg you can dump the list of files that were installed by running the lsbom tool with the -s option on the BOM receipt for that package (which can be found in /private/var/db/receipts/) like this:

lsbom -s /private/var/db/receipts/com.vendor.appname.bom > ~/Desktop/appname\ BOM\ Paths\ Dump.txt

That won't include any files/directories created by scripts run during install. If those need to be removed I'd recommend using Suspicious Package to examine those scripts.

jonros
Contributor II

So after many hours of testing I finally managed to solve it. :)

Thanks for your posts anyway.