Posted on 05-16-2018 07:42 AM
I was just checking to see what people are using for removing old versions of software. I basically inherited a bunch of systems and some have really old versions of the software installed. I could write a script for this for each application, but that would get tedious. Any other suggestions?
Posted on 05-24-2018 05:09 AM
Boy, that really depends on a bit. First, I try to have an upgrade path for each application. Sometimes, you can just drop another app over the top (i.e. Firefox, Google Chrome, etc). Packaging and installing those apps simply replace the older version. If you're talking about MS Office then you'll want to have an uninstall process. it's just that each install and hence, uninstall is a bit different. Ilve seen folks here write a single "big" script to bring all of the supported apps up to date, using a variety of methods. I believe some of them were essentially creating a list of "current" apps in a script and letting it find and replace outdated versions by calling policies dynamically.
Posted on 05-24-2018 05:12 AM
P.S. we all uninstall LOTS of software. It shouldn't be 'that' tedious. We just had our mass off boarding of BYOD students yesterday and that process simply removes all of our institutionally licensed software, removed management, promotes their user to admin etc... the process took me about a month to perfect... years ago. I just keep updating and changing with the times ever since. Sometimes I script an uninstall. Sometimes I borrow one from JAMFnation and other times I'm simply telling the policy to uninstall something that I packaged with Composer.
Posted on 05-24-2018 05:36 AM
Yeah, the items I am looking for are the 50 different places Adobe Acrobat/Reader has been put throughout the upgrades as well as hunting down the people that have old versions of Firefox, Chrome, etc. sitting on their desktop or in a custom applications folder somewhere.
Basically, it was disappointing when I looked at the versions of Acrobat that are installed and version 10 is still fairly high counts and even version 7 is still around.
Thanks for the advice, looks like I will be scripting.
Posted on 05-24-2018 07:30 AM
Yuck... well, by the sounds of it, scripting may simply be easier. At least until you get a good upgrade path under control.
Posted on 05-24-2018 07:46 AM
Yeah, I was hopeful that I would find a means to delete in mass. Basically Jamf has the inventory and could have the path to every .app file, just let me filter out the good and delete the bad. I didn't think Jamf had that, but it was worth a shot.
Posted on 05-24-2018 07:55 AM
You know... that would be a great Feature Request under the "patch management" heading.
Posted on 05-24-2018 08:17 AM
In fact a large fraction of our policies are for app removal. We have a few that use a generic script (just remove /Applications/theApp), and quite a few that are specific.
For Adobe we use the uninstaller if it still is around, otherwise I remove the standard folders used by these apps, again first checking whether they exist. Even the uninstaller leaves some things around, so if these are present I remove them manually.
When it is not clear whether files might be used by other products or versions (often the case in /Library/Application Support) I do not touch them.
Users have moved the app or installed in a custom app folder? Sorry for them, they are on their own now. I will not try to search every corner of the users Mac just to see where they might have put stuff. But if I added stuff myself during re-packaging I try to clean that up on uninstall.
Posted on 05-24-2018 10:07 AM
Posted on 05-24-2018 06:23 PM
I too have gone with the generic script of just removing the application. This will be the first summer that I got pretty in-depth with this because I use to create "master images" and now am just updating. Here is an example of a script that I used.
rm -rf /Applications/SketchUp 2017
and that is placed in a policy under the Files and Processes > Execute Command.
Posted on 12-28-2021 05:55 PM
If you know what you want to delete, you can do a mass delete by running the command with &&
Note: You need to use the \ for spaces and the command won't work unless you add .app at the end.
Example: rm -rf /Applications/Microsoft\ Excel.app && rm -rf /Applications/Microsoft\ Outlook.app
Happy Hunting