If you deleted Safari and don't have a Time Machine backup or other backup, reinstall macOS to put Safari back in your Applications folder. Reinstalling macOS doesn't remove data from your computer. Before reinstalling, you might want to use Spotlight to search for Safari on your Mac. If you find it, but it's no longer in your Dock, just drag it to the Dock to add it back.
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 upgrade macOS or reinstall macOS, but it can be useful when you want to install on multiple computers without downloading the installer each time.
Find the appropriate download link in the upgrade instructions for each macOS version:
MyVolumein these commands with the name of your volume.
Yto confirm that you want to erase the volume, then press Return. Terminal shows the progress as the bootable installer is created.
* If your Mac is using macOS Sierra or earlier, include the
--applicationpath argument, similar to the way this argument is used in the commands for Sierra and El Capitan.
After creating the bootable installer, follow these steps to use it:
For more information about the
createinstallmedia command and the arguments that you can use with it, make sure that the macOS installer is in your Applications folder, then enter this path in Terminal:
Mojave: Ralink rt2561 rt2661 drivers for mac.