Skip to content

Instantly share code, notes, and snippets.

@ptb
Forked from ProfFrnswrth/macos-sierra-commands.sh
Created July 6, 2016 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptb/09dcdacadf955d70a5105ff5d3daa20d to your computer and use it in GitHub Desktop.
Save ptb/09dcdacadf955d70a5105ff5d3daa20d to your computer and use it in GitHub Desktop.
Updating to macOS Sierra Developer Preview 1 directly from Apple
## 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