Forked from rahul286/mac-osx-el-captain-commands.sh
Last active
March 23, 2017 16:36
-
-
Save ProfFrnswrth/75d492520254acc8c018099d93913c43 to your computer and use it in GitHub Desktop.
Updating to macOS Sierra Developer Preview 1 directly from Apple
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## based on https://github.com/lioonline/OS-X-El-Capitan | |
## pkg file link - http://osxapps.itunes.apple.com/apple-assets-us-std-000001/Purple30/v4/cc/62/24/cc62243b-7ed7-74cd-d47e-374bc470ecdf/diu414781394017735583.pkg | |
# !!IMPORTANT!! Run this from folder where you have downloaded or copied diu414781394017735583.pkg file | |
#create a tmp folder | |
mkdir sierraRoot && cd sierraRoot | |
#create a folder structure to match apple server | |
sudo mkdir -p ./apple-assets-us-std-000001/Purple30/v4/cc/62/24/cc62243b-7ed7-74cd-d47e-374bc470ecdf/ | |
#move downloaded pkg file to proper path | |
sudo mv ../diu414781394017735583.pkg ./apple-assets-us-std-000001/Purple30/v4/cc/62/24/cc62243b-7ed7-74cd-d47e-374bc470ecdf/ | |
#start a web server when you are in "sierraRoot" folder | |
sudo python -m SimpleHTTPServer 80 | |
#edit your mac's /etc/hosts file to add following line | |
sudo echo "127.0.0.1 osxapps.itunes.apple.com" >> /etc/hosts | |
#if you are in rtCamp's office, you can try following LAN server | |
#sudo echo "192.168.0.2 osxapps.itunes.apple.com" >> /etc/hosts | |
# Open "App Store" app on Mac and run update. | |
# It should download pkg file from local/LAN server | |
#Important - remove /etc/hosts entry when done, for "App Store" to work |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment