Softwareupdate not working

I try to update MacOS 11.3 to MacOS 11.6 with command but it cannot work

sudo softwareupdate --install 'macOS Big Sur 11.6-20G165'

After I run this command, it downloaded the updatebut it does not perform install install.

Is the softwareupdate command has a problem with the update Mac to the latest version ?

Did you try to update directly from System Preferences ?

I tried it and it can be updated successfully from System Preferences. But I want to update by command, I tried on macOS Big Sur or macOS Monterey and it seems that the softwareupdate command does not work for update Mac's version.

I'm running into the same issue. Maybe @eskimo can help, as this can potentially break a lot of automations. There were talks about softwareupdate being deprecated, but not much in the direction of offering an alternative to softwareupdate.

I totally agree with you @oskard. I found the issue happen on macOS Big Sur or later but I cannot find any posts about it from Apple. Could you provide me more information about it? Thank you.

Softwareupdate not working
 
 
Q