Skip to main content
Solved

Big Sur Upgrade Bash Command


Forum|alt.badge.img+10

Does anyone know the correct Bash command to upgrade to Big Sur? I tried using "/Applications/Install macOS Big Sur.app/Contents/Resources/startosinstall --agreetolicense --forcequitapps --nointeraction" but it just hangs.

Best answer by Cayde-6

I find that opening the installer app for the first time takes ages, it’ll just bounce in the dock and terminal command to it also hang.

Not sure if the app on first load does some verification steps to Apple, once it opens I then find terminal commands work instantly.

View original
Did this topic help you find an answer to your question?

88 replies

Forum|alt.badge.img+1
  • New Contributor
  • 9 replies
  • November 13, 2020

/Applications/Install macOS Big Sur.app/Contents/Resources/startosinstall --agreetolicense --forcequitapps --nointeraction
Remove your quotes & make sure that you are placing the installer in applications folder- If that is your intention


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

Sorry, I added the quotes in the post by default. In the actual Policy - Policies > Files and Processes > Execute Command > /Applications/Install macOS Big Sur.app/Contents/Resources/startosinstall --agreetolicense --forcequitapps --nointeraction

Jamf 10.23.0


Forum|alt.badge.img+1
  • New Contributor
  • 9 replies
  • November 13, 2020

Taking jam out of the picture- If you run it manually in an elevated terminal window- what's your output?


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

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


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


Cayde-6
Forum|alt.badge.img+22
  • Honored Contributor
  • 606 replies
  • Answer
  • November 13, 2020

I find that opening the installer app for the first time takes ages, it’ll just bounce in the dock and terminal command to it also hang.

Not sure if the app on first load does some verification steps to Apple, once it opens I then find terminal commands work instantly.


Forum|alt.badge.img+13
  • Honored Contributor
  • 365 replies
  • November 13, 2020

Looks like that startosinstaller has added flags for --user, --passprompt, and --stdinpass


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

so in the command would be /Applications/Install macOS Big Sur.app/Contents/Resources/startosinstall --agreetolicense --forcequitapps --nointeraction --user <admin acct> --stdinpass <admin pwd>?


MLBZ521
Forum|alt.badge.img+11
  • Valued Contributor
  • 218 replies
  • November 13, 2020

Regarding what @Cayde-6 mentioned, see: https://babodee.wordpress.com/2020/11/05/waiting-for-the-macos-big-sur-installer-to-launch/. That could have something to do with your delay, possibly?

Bold move on the upgrading day after release. Haha


Forum|alt.badge.img+7
  • Valued Contributor
  • 89 replies
  • November 13, 2020

I am using "/Applications/Install macOS Big Sur.app/Contents/Resources/startosinstall" --applicationpath "/Applications/Install macOS Big Sur.app" --rebootdelay 0 --nointeraction --agreetolicense &

It works but it does not close Self Service, I had to do that and manually restart


Cayde-6
Forum|alt.badge.img+22
  • Honored Contributor
  • 606 replies
  • November 13, 2020

Add in the --forcequitapp flag into your command


MLBZ521
Forum|alt.badge.img+11
  • Valued Contributor
  • 218 replies
  • November 14, 2020

Also shouldn't need the --applicationpath any more, it's use was deprecated in Mojave.


Forum|alt.badge.img+1
  • New Contributor
  • 3 replies
  • November 16, 2020
/Applications/Install macOS Big Sur.app/Contents/Resources/startosinstall --nointeraction --agreetolicense --forcequitapps

sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • 3540 replies
  • November 16, 2020

@mrorrer That's --forcequitapps, and when you use that option there's no need to kill Self Service


Forum|alt.badge.img+5
  • Contributor
  • 19 replies
  • November 18, 2020

@sgiesbrecht I follow your steps but had encounter this "Helper Tool Crashed".

Anyone already resolved this error?


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

@tdcxmanila This is the command I used
/Applications/Install macOS Big Sur.app/Contents/Resources/startosinstall --agreetolicense --forcequitapps --nointeraction

I created 2 policies
Policy 1
- deploy the Staging file (Install macOS Big Sur.app) to the Application

Policy 2
- check to see if the Staging file is there
- if there, run under Files and Process > Execute Command

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


atomczynski11
Forum|alt.badge.img+18
  • Jamf Heroes
  • 298 replies
  • November 18, 2020

@sgiesbrecht

How did you define Policy 2 (check if the app exist)?


Forum|alt.badge.img+7
  • Contributor
  • 45 replies
  • November 18, 2020

Hi @atomczynski ,

What you can do is create a Smart Group that contains the computers with the installer then run a policy to start the install based on that group.


Forum|alt.badge.img+5
  • Contributor
  • 19 replies
  • November 18, 2020

Anyone received this kind of error?


Forum|alt.badge.img+10
  • Valued Contributor
  • 71 replies
  • November 18, 2020

Isn't there a way to upgrade from Catalina to Big Sur via

softwareupdate --fetch-full-installer

?


dan-snelson
Forum|alt.badge.img+28
  • Honored Contributor
  • 632 replies
  • November 18, 2020

@j.meister The following should work (now):
/usr/sbin/softwareupdate --fetch-full-installer --full-installer-version 11.0.1


dan-snelson
Forum|alt.badge.img+28
  • Honored Contributor
  • 632 replies
  • November 18, 2020

@sgiesbrecht In case you haven't already seen @kc9wwh's macOSUpgrade.


Forum|alt.badge.img+10
  • Valued Contributor
  • 71 replies
  • November 18, 2020

Hi Dan,

thanks for the hint but I already tried that and get below error every time.

admin@WILAMAC00 ~ % /usr/sbin/softwareupdate --fetch-full-installer --full-installer-version 11.0.1 Downloading and installing 11.0.1 installer SUPreferenceManager: Failed to set object of class: __NSCFConstantString for key: LastRecommendedMajorOSBundleIdentifier with error: Error Domain=SUPreferenceManagerErrorDomain Code=1 "(null)" SUPreferenceManager: Failed to set object of class: __NSCFConstantString for key: LastRecommendedMajorOSBundleIdentifier with error: Error Domain=SUPreferenceManagerErrorDomain Code=1 "(null)" Install failed with error: Update not available

I am running macOS 10.15.7 (Build 19H15) on the machine and also tried it with sudo but that didn't help either. The machine is an iMac (Mid 2017).

Any more ideas?


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

@atomczynski


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

@dan-snelson Thanx for the "@kc9wwh's macOSUpgrade" information. I am going to try for the next upgrade


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