The hosts file is now open in editable mode within the Terminal window. Provide the System Password when prompted.Type in the following command: “sudo nano /etc/hosts”.Launch Terminal on your Mac from Launchpad or Applications list.The below instructions will guide you to modify the hosts file as required. To do this, you need to edit the hosts file on Mac to point the root domain of the download URLs (“”) to localhost (“127.0.0.1”). Step 2: Configure your Mac so that MAS looks for the macOS packages locally instead of from the Apple server. macOS Mojave InstallAssistantAuto.pkg file download URL:.macOS Mojave RecoveryHDMetaDmg.pkg file download URL:.macOS Mojave InstallESDDmg.pkg file download URL:.Step 1: Download the three “.pkg” files from the respective URLs given below. Then, we’ll configure the computer in such a way that Mac App Store processes the package files by fetching them from the local directory on your computer (Mac), instead of downloading it again from Apple. In this workaround, we’re going to directly download these raw packages from Apple server using a web browser or a suitable download accelerator.
You cannot install macOS directly from the raw package files. Normally, when you download macOS Mojave (or any other macOS release) from MAS, some package files are downloaded to your computer, and then processed by MAS, to convert them into an executable “.app” file.
1 Download and install macOS Mojave without MAS.