Skip to main content

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?

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

 


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

 


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.


Reply