Posted on 09-24-2015 02:28 AM
Anyone know how to get the Mac App Store to check and install updates via the CLI ?
Want to schedule checks for an Autopkg server rather than have to manually check and install updates
Posted on 09-24-2015 03:55 AM
Using softwareupdate --list
you can list all available updates. Add --install
and --all
to install all updates available, e.g softwareupdate --install --all
Posted on 09-24-2015 03:56 AM
That just does the SUS updates, not the App Store updates ???
Posted on 09-24-2015 06:04 AM
MAS updates from the command line? I'm fair certain it can't be done.
Maybe leave automatic App Store updates turned on and see if that is 'good enough' for your needs! : )
Darren
Posted on 09-24-2015 06:28 AM
Thanks Darren,
Thats what I have got but it takes 2-5 days after the app update before the apps get updated.
I was wondering if there is a process I can kick to force the MAS update
Posted on 09-24-2015 01:55 PM
If there was a user logged in you could possible force the app store to open in the background? Either with a login item or by calling it with osascript call within a script.
You might be able to get it to open hidden as well.
Not ideal as it could interfere with the user but it might work.