Different behaviour of softwareupdate CLI on M1 and Intel CPUs

Hello,

It looks like the softwareupdate CLI is having different behaviours, depending on the architecture it runs on, when trying to install OS patches:

  • Intel works as expected and is able to install both OS patches and software patches (e.g. Safari), silently, without the need of any user interaction
  • ARM (M1) requires the end-user to input the root password, in order to install OS patches, but works as expected for software patches (e.g. Safari) - doesn't need any user interaction

Need to mention that the above happens only on macOS Big Sur, for example updating 12.3 to 12.4.

Is this an expected behaviour? Anyone else seeing this? Wondering why the additional step, for inputting the credentials, is required.

I know there were mentions of softwareupdate being deprecated, but if this is happening, does anyone know if Apple would provide other means of installing OS patches automatically, but orchestrated? Maybe some Swift / ObjectiveC / C++ APIs?

Thank you