Handy Apple support pages. How to reinstall macOS from macOS Recovery How to create a bootable installer for macOS