Computers & Technology


Create A macOS ISO Disc Image Installer



Terminal
Using the Terminal application (see Utilities folder in your Applications folder). Copy each line of code, one at a time, and paste it into the Terminal and press RETURN (ENTER). Follow the directions and you will end up with an ISO disc image installer that you can use to do a fresh install or re-install macOS on any supported Mac. You could even use the ISO to create a physical DVD for installation.


macOS 10.13 High Sierra

macOS 10.13 High Sierra



hdiutil create -o /tmp/HighSierra -size 8G -layout SPUD -fs HFS+J -type SPARSE

hdiutil attach /tmp/HighSierra.sparseimage -noverify -mountpoint /Volumes/install_build

sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --applicationpath /Applications/Install\ macOS\ High\ Sierra.app --nointeraction

hdiutil detach /Volumes/Install\ macOS\ High\ Sierra/

hdiutil convert /tmp/HighSierra.sparseimage -format UDTO -o /tmp/HighSierra.iso

mv /tmp/HighSierra.iso.cdr ~/Desktop/HighSierra.iso

rm /tmp/HighSierra.sparseimage


macOS 10.12 Sierra

macOS 10.12 Sierra



hdiutil create -o /tmp/Sierra -size 8G -layout SPUD -fs HFS+J -type SPARSE

hdiutil attach /tmp/Sierra.sparseimage -noverify -mountpoint /Volumes/install_build

sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --applicationpath /Applications/Install\ macOS\ Sierra.app --nointeraction

hdiutil detach /Volumes/Install\ macOS\ Sierra/

hdiutil convert /tmp/Sierra.sparseimage -format UDTO -o /tmp/Sierra.iso

mv /tmp/Sierra.iso.cdr ~/Desktop/Sierra.iso

rm /tmp/Sierra.sparseimage


macOS 10.11 El Capitan

macOS 10.11 El Capitan



hdiutil create -o /tmp/ElCapitan -size 8G -layout SPUD -fs HFS+J -type SPARSE

hdiutil attach /tmp/ElCapitan.sparseimage -noverify -mountpoint /Volumes/install_build

sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app --nointeraction

hdiutil detach /Volumes/Install\ OS\ X\ El\ Capitan/

hdiutil convert /tmp/ElCapitan.sparseimage -format UDTO -o /tmp/ElCapitan.iso

mv /tmp/ElCapitan.iso.cdr ~/Desktop/ElCapitan.iso

rm /tmp/ElCapitan.sparseimage


macOS 10.10 Yosemite

macOS 10.10 Yosemite



hdiutil create -o /tmp/Yosemite -size 8G -layout SPUD -fs HFS+J -type SPARSE

hdiutil attach /tmp/Yosemite.sparseimage -noverify -mountpoint /Volumes/install_build

sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction

hdiutil detach /Volumes/Install\ OS\ X\ Yosemite/

hdiutil convert /tmp/Yosemite.sparseimage -format UDTO -o /tmp/Yosemite.iso

mv /tmp/Yosemite.iso.cdr ~/Desktop/Yosemite.iso

rm /tmp/Yosemite.sparseimage