
Step 3: Place the downloaded packages (.pkg and.
To flush DNS cache, type “ sudo killall -HUP mDNSResponder” in the command line and hit return. Note: Sometimes, you might need to flush the DNS cache for the changes to take effect. Now, whenever any request is generated from your computer to the root domain (), it will point to your localhost.
Press control + X (^X), then Y and hit return to save the file and return to Terminal prompt. Append the following line to the end of the file: “ 127.0.0.1 ”. The hosts file is now open in editable mode within the Terminal window. Provide the System Password (if required). Type in the following command: “ sudo nano /etc/hosts”. Launch Terminal on your Mac from Launchpad or Applications list. Step 2: Configure the Mac so that MAS looks for the macOS packages within your computer instead of fetching them from Apple Server.įor this, you need to edit your OS X hosts file and point the root domain of the download URLs (for example, “”) to localhost (127.0.0,1), Follow the steps below to modify the hosts file as required: You may find out the URL of the latest macOS Sierra package files from the comments below or by searching on the Internet for it. Hence the workaround mentioned here will not work, unless you know the URL of the latest package file and create the directory structure on localhost based on the same.īefore downloading the package, ensure that it is the latest version of macOS Sierra released on the MAS. If the latest version of macOS Sierra available on the Mac App Store is a different one, MAS will fetch it from a different location. # Update: Here, we have mentioned the URL of the package file for macOS 10.12. pfpkg file, which tells Mac App Store where to look for the. When you have downloaded them, you’ll have two packages. Step 1: Download the macOS Sierra package files from their respective URLs. If you’re new here, just follow the steps mentioned in this section to download macOS Sierra directly without the Mac App Store. Only, instead of one package, there are two this time.
If you’re already familiar with downloading El Capitan from outside of MAS, this method also follows similar steps.