Skip to main content
Solved

Big Sur Upgrade Bash Command


Did this topic help you find an answer to your question?
Show first post

88 replies

Forum|alt.badge.img+8
  • Valued Contributor
  • 106 replies
  • April 27, 2021

@sgiesbrecht posted command worked perfect for me.


user-CqUlRTAQgf
Forum|alt.badge.img+1
sgiesbrecht wrote:

when run with /Applications/Install macOS Big Sur.app/Contents/Resources/startosinstall --agreetolicense --forcequitapps --nointeraction = prompts for password

when run with sudo /Applications/Install macOS Big Sur.app/Contents/Resources/startosinstall --agreetolicense --forcequitapps --nointeraction = runs (upgrades) with no issues


Every time I run this command "sudo /Applications/Install macOS Big Sur.app/Contents/Resources/startosinstall --agreetolicense --forcequitapps --nointeraction" it keeps asking me for password on my test machine I am logged in as a standard account

 


Forum|alt.badge.img+4
mburchett-zymer wrote:

I had been ripping my hair out trying to get this to work. I think I found the combination that does now.

I removed the pop-up interaction from the policy to inform users what they're getting into (Guess they'll have to read the email).

The policy runs a script with this line:

sudo '/Applications/Install macOS Big Sur.app/Contents/Resources/startosinstall' --agreetolicense --forcequitapps

For whatever reason, removing --nointeraction worked. It took about a minute or so for the policy to run in self service, but it finally did.

NOTE: Also, do NOT copy paste the line into Jamf. I had to type it all out. Jamf doesn't seem to like removing metadata from copied text.


This is the only command that worked for me! Thanks!


Forum|alt.badge.img
  • New Contributor
  • 1 reply
  • October 7, 2021
Cayde-6 wrote:

@mwu1876 are you sure? I just ran the Big Sur startosinstall binary without those arguments and it installed fine


There is a difference if you are running M1 or Intel chip, for me at least does work on Intel chip but not on M1


Forum|alt.badge.img

Hi Trying to instal lVentura Silently Via any suggestions 

--agreetolicense --nointeraction does nothng but pop up the install

 


Forum|alt.badge.img+3
  • New Contributor
  • 8 replies
  • October 26, 2022

Hey Michael. These are the commands I'm using. They worked with Monterey last year and they work with Ventura this year as well. These commands assume that you're allowing end-users to initiate the installation via Self Service, and that Install macOS Ventura.app is already cached on their machine (I use a separate policy to download the installer silently to compatible Macs that don't have it yet).

Note that the Apple Silicon variant requires you to list the password of a local Administrator account in the command.

Also note that if your users are running this from Self Service, in my experience it can take a while (10-30 minutes) for the Mac to restart while MobileSoftwareUpdate runs in the background. The only indication your users will have as the Mac prepares for the update will be the spinning circle in Self Service, so you might want to give them a heads up about that. ☺️ 

Intel
/Applications/Install\\ macOS\\ Ventura.app/Contents/Resources/startosinstall --agreetolicense --forcequitapps --nointeraction && sleep 10 && osascript -e 'tell application "Self Service" to quit'

Apple Silicon

echo <local admin account password> | /Applications/Install\\ macOS\\ Ventura.app/Contents/Resources/startosinstall --agreetolicense --nointeraction --user itdepartment --stdinpass && sleep 10 && osascript -e 'tell application "Self Service" to quit'


Forum|alt.badge.img+4
jmackbnd wrote:

Hey Michael. These are the commands I'm using. They worked with Monterey last year and they work with Ventura this year as well. These commands assume that you're allowing end-users to initiate the installation via Self Service, and that Install macOS Ventura.app is already cached on their machine (I use a separate policy to download the installer silently to compatible Macs that don't have it yet).

Note that the Apple Silicon variant requires you to list the password of a local Administrator account in the command.

Also note that if your users are running this from Self Service, in my experience it can take a while (10-30 minutes) for the Mac to restart while MobileSoftwareUpdate runs in the background. The only indication your users will have as the Mac prepares for the update will be the spinning circle in Self Service, so you might want to give them a heads up about that. ☺️ 

Intel
/Applications/Install\\ macOS\\ Ventura.app/Contents/Resources/startosinstall --agreetolicense --forcequitapps --nointeraction && sleep 10 && osascript -e 'tell application "Self Service" to quit'

Apple Silicon

echo <local admin account password> | /Applications/Install\\ macOS\\ Ventura.app/Contents/Resources/startosinstall --agreetolicense --nointeraction --user itdepartment --stdinpass && sleep 10 && osascript -e 'tell application "Self Service" to quit'


I used something like this back in the Big Sur days.

Do you have the policy you use to cache the Ventura.app on the computer if they don't already have it installed?


Forum|alt.badge.img+3
  • New Contributor
  • 8 replies
  • October 26, 2022
aaronedmonton wrote:

I used something like this back in the Big Sur days.

Do you have the policy you use to cache the Ventura.app on the computer if they don't already have it installed?


Sure—that policy is pretty simple. I just host the package in Jamf Pro, add it to the policy, and then scope the policy to a smart group that looks for Macs that don't have Install macOS Ventura.app installed. 

What method have you been using since the Big Sur days? How's it been working for you?


Forum|alt.badge.img+4
jmackbnd wrote:

Sure—that policy is pretty simple. I just host the package in Jamf Pro, add it to the policy, and then scope the policy to a smart group that looks for Macs that don't have Install macOS Ventura.app installed. 

What method have you been using since the Big Sur days? How's it been working for you?


Same here, I had a InstallAssistant package that would download the 12GB installer to their computer once deployed. Not sure where to find those packages anymore.


hodgesji
Forum|alt.badge.img+16
  • Contributor
  • 63 replies
  • October 26, 2022
aaronedmonton wrote:

Same here, I had a InstallAssistant package that would download the 12GB installer to their computer once deployed. Not sure where to find those packages anymore.


I believe you can find them from MrMacintosh here: https://mrmacintosh.com/macos-ventura-13-full-installer-database-download-directly-from-apple/

To get the installer these days I just use the following code to grab the latest version of the installer:

softwareupdate --fetch-full-installer --full-installer-version 1.2.3

 


Forum|alt.badge.img+3
  • New Contributor
  • 8 replies
  • October 26, 2022
hodgesji wrote:

I believe you can find them from MrMacintosh here: https://mrmacintosh.com/macos-ventura-13-full-installer-database-download-directly-from-apple/

To get the installer these days I just use the following code to grab the latest version of the installer:

softwareupdate --fetch-full-installer --full-installer-version 1.2.3

 


I just download Install macOS Ventura.app from the app store onto a Mac, package it up using MegaPKGr.zsh since it's too big for Composer to handle alone, upload it as a package to Jamf Pro, and deploy it to Macs from there.


sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • 3540 replies
  • October 27, 2022
jmackbnd wrote:

I just download Install macOS Ventura.app from the app store onto a Mac, package it up using MegaPKGr.zsh since it's too big for Composer to handle alone, upload it as a package to Jamf Pro, and deploy it to Macs from there.


@jmackbnd Why re-package the Ventura installer when Apple has done it for you: https://swcdn.apple.com/content/downloads/25/16/012-92138-A_KGGGN26YQB/d0kr042ixfvkboeft8qt2i3aclr5bx1e6p/InstallAssistant.pkg

(You can find a full list of download links for the various macOS versions Apple has published as InstallAssistant packages on @ClassicII 's web site: https://mrmacintosh.com/ )


Forum|alt.badge.img+10
  • Author
  • Valued Contributor
  • 134 replies
  • November 7, 2022

@jmackbnd  I use https://github.com/scriptingosx/DownloadFullInstaller app to download any version of macOS.  It download as InstallAssistant-xx.x-xxxxxx.pkg already


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings