The installer must be downloaded from App Store, and you need an Apple ID with a payment method (Credit card). You can select "None" as payment method, but then you cannot download!
The App Store link for High Sierra is
macappstores://apps.apple.com/app/macos-high-sierra/id1246284741?mt=12
Links to other versions in the App store can be found at https://support.apple.com/en-us/HT211683
After the download it will start the installer.
To create a USB key with the installer:
name=U # <== Volume name (eg. "USB_Installer")
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/$name
or with other versions or methods, maybe adding the --applicationpath
option is useful?
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install\ macOS\ High\ Sierra.app
This step is probably unnecessary, because the installer does the formatting?
diskutil list | grep -A6 external disk=disk4; name=USB_Installer # <== Define variables diskutil eraseDisk HFS+ $name $disk
This one might only get a small stub instead of the full image: https://apps.apple.com/us/app/macos-high-sierra/id1246284741?mt=12
To get the full installer:
sudo cp -pRv "/macOS Install Data" "/Applications/Install macOS High Sierra.app/Contents/SharedSupport"
Or directly download the missing stuff:
Or :
url=http://swcdn.apple.com/content/downloads/29/03/091-94326/45lbgwa82gbgt7zbgeqlaurw2t9zxl8ku7 curl -R --remote-name-all $url/{BaseSystem,AppleDiagnostics}.{dmg,chunklist} $url/Install{Info.plist,ESDDmg.pkg}
This forum post (or this page) suggest using softwareupdate
. It didn't work for me, but may be worth trying:
softwareupdate --list-full-installers softwareupdate --fetch-full-installer --full-installer-version 10.13.6 # adapt version number
https://apple.stackexchange.com/questions/299731/macos-high-sierra-media-installer
Apple's How to create a bootable installer for macOS :
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume