from the help file:
bash-3.2# jamf help uninstall
Usage: jamf uninstall -target <target volume> -id <JSS Package ID> [-fut] [-feu]
-target The target drive to uninstall the package from
-id The ID of the package in the JSS
-fut Remove any files from the package that are in the User Templates
-feu Remove any files from the package that are installed in a user's home directory
So I want to uninstall older versions of office. However, there is no need to do it mass, so I don't want to scope a policy of individual machines. Instead I want to do it via a simple script. What is the JSS ID of a package? I don't see anything where you get the package ID. Anyone?
OK, now I am getting errors, package is indexed
Getting package details from https://xs001-casper.kckps.org:8443//... Uninstalling... terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc /bin/bash: line 1: 3717 Abort trap sudo jamf uninstall -target "/Volumes/Macintosh HD/Applications" -id 99 -feu
I have tried /Volumes/Macintosh HD, and .../Applications as well as the target, but the help file just says target volume. Anyone use this with success? I am running Casper 8.0
Might be better to package an uninstall script with office that gets rid of it 100%. Can you push the uninstaller package that comes with office by default???
FNG Sr. IT Analyst / Desktop Architecture Team / Apple S.M.E / JAMF Casper Administrator
Fox Networks Group
matthew.lee at fox.com<mailto:matthew.lee at fox.com>
Need Help? Call the Help Desk at (310) 969-HELP (ext 24357) or online at http://itteam<http://itteam/>
Help Desk Hours: Mon-Fri, 6AM-6PM PST
Yeah my co-worker just whipped up a script to take care of it, but I am
really more curious why the command did not work until you dropped the
"-target" switch and why did it only remove the app if the whole package
Did we just find a bug? Feel free to post your script though I'd like
to see it.
You can also get the package ID from the Jamf console in the browser. Go to Settings > Computer Management > Packages. Then click on the package in question to open its detail view. In the browser address bar you should see something like this at the end of the URL :
packages.html?id=56&o=r, where id=56 indicates the ID of the package - 56 in this example.