Once the relative path has been created, we’ll configure the localhost server to point to the “macos_local” directory on Desktop. In this example, we’ll create a folder named “macos_local” on Desktop, and replicate the directory structure of the package URLs under the same. Step 3: Place the package files in a certain relative path from the localhost root, so as to mimic the structure of their respective download URLs. In that case, use the “ sudo killall -HUP mDNSResponder” command to flush DNS cache. Note: Sometimes, you might need to flush the DNS cache for the changes to take effect. Press control + X (^X), then Y and hit return to save the file and return to Terminal prompt.įrom now on, any request issued for the particular root domain () from the Mac will be directed to localhost.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 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |