How to create a bootable installer for macOS

You can use an external drive or secondary volume as a startup disk from which to install the Mac operating system.

These advanced steps are primarily for system administrators and others who are familiar with the command line. You don't need a bootable installer to install macOS, but it can be useful when you want to install macOS on multiple computers without downloading the installer each time. 

Download macOS from the App Store

  1. Download macOS from the App Store, using a Mac that is compatible with the macOS you're downloading.
    To download High Sierra for use with a bootable installer, be sure to download from a Mac that is currently using High Sierra, Sierra 10.12.5 or later, or El Capitan 10.11.6. Enterprise administrators, please download from Apple, not a locally hosted software-update server.
  2. When the macOS installer opens, quit it without continuing installation.
  3. Find the installer in your Applications folder as a single ”Install” file, such as Install macOS High Sierra.

Use the 'createinstallmedia' command in Terminal

  1. After downloading the installer, connect the USB flash drive or other volume that will be used as the bootable installer. Make sure that it has at least 12GB of available storage.
  2. Open Terminal, which is in the Utilities folder of your Applications folder.
  3. Type or paste one of the following commands in Terminal. These assume that the installer is still in your Applications folder, and MyVolume is the name of the USB flash drive or other volume that will be used as the bootable installer. If it has a different name, replace MyVolume accordingly.

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

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

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

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

    Mavericks:
    sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install\ OS\ X\ Mavericks.app
    
  4. Press Return after typing the command.
  5. When prompted, type your administrator password and press Return again. Terminal doesn't show any characters as you type your password.
  6. When prompted, type Y to confirm that you want to erase the volume, then press Return. Terminal shows the progress as the bootable installer is created.  
  7. When Terminal says that it's done, the volume will have the same name as the installer you downloaded, such as Install macOS High Sierra. You can now quit Terminal and eject the volume.


Use the bootable installer

After creating the bootable installer, follow these steps to use it.

  1. Connect the bootable installer to a compatible Mac. 
  2. Use Startup Manager or Startup Disk preferences to select the bootable installer as the startup disk, then start up from it. Your Mac will start up to macOS Recovery
    Learn about selecting a startup disk, including what to do if your Mac doesn't start up from it.
  3. Choose your language, if prompted.
  4. A bootable installer doesn't download macOS from the Internet, but it does require the Internet to get information specific to your Mac model, such as firmware updates. If you need to connect to a Wi-Fi network, use the Wi-Fi menu  in the menu bar. 
  5. Select Install macOS (or Install OS X) from the Utilities window, then click Continue and follow the onscreen instructions.

Learn more

For more information about the createinstallmedia command used in the examples above, make sure that the macOS installer is in your Applications folder, then enter the appropriate path in Terminal:

High Sierra:

/Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia

Sierra:

/Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia

El Capitan:

/Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia

Yosemite:

/Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia

Mavericks: 

/Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia
Published Date: Tue Jun 26 21:08:58 GMT 2018