If you’re tech-savvy but don’t know where to start, use these Quick Tips to point you in the right direction for getting macOS or OS X on your drive:
How do I use Internet Recovery Mode to install macOS or OS X on my hard drive?.Install macOS using Internet Recovery Mode.
How do I use Disk Utility to reformat my hard drive?.Format your new hard drive for macOS or OS X.