Posted on 03-05-2023 11:29 PM
Hello all,
We deploy Xcode Command Line Tools to all mac machines in our org, one issue is having to deal with Xcode CLI updates.
When trying to update via command line using softwareupdate, it reports installed, then when checking again they will show back up.
Is there a way to update on current macs, or is this just borked?
Posted on 03-06-2023 10:51 AM
you have an EA reporting version? then scope smart group and use the cli tools pkg .. via Self Service / other trigger.. sw update bin is deprecated / legacy / not the apple way.. etc..
#!/bin/sh
test=`pkgutil --pkg-info=com.apple.pkg.CLTools_Executables | grep version > /dev/null; echo $?`
if [ "$test" = 0 ]; then
result=`pkgutil --pkg-info=com.apple.pkg.CLTools_Executables | grep version | sed 's/version: //' | cut -c 1-6`
echo "<result>$result</result>"
fi
Posted on 03-08-2023 12:43 AM
I do not wish to use a PKG I have to maintain, I want to just get the latest release version, and make sure all macs have that installed.