Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yanokwa/c8b6028f33ece7f5559cd80086a88af8 to your computer and use it in GitHub Desktop.
Save yanokwa/c8b6028f33ece7f5559cd80086a88af8 to your computer and use it in GitHub Desktop.
Updating to Mac elCapitan using downloaded pkg file
## based on https://github.com/lioonline/OS-X-El-Capitan
## pkg file link - http://osxapps.itunes.apple.com/apple-assets-us-std-000001/Purple3/v4/74/d2/82/74d28291-9db9-7ae2-305d-9b8b3f5fd463/ftk3252456602304584541.pkg
# Run this from folder where you have downloaded or copied ftk3252456602304584541.pkg file
#create a tmp folder
mkdir elCapitanRoot && cd elCapitanRoot
#create a folder structure to match apple server
sudo mkdir -p ./apple-assets-us-std-000001/Purple3/v4/74/d2/82/74d28291-9db9-7ae2-305d-9b8b3f5fd463/
#move downloaded pkg file to proper path
sudo mv ../ftk3252456602304584541.pkg ./apple-assets-us-std-000001/Purple3/v4/74/d2/82/74d28291-9db9-7ae2-305d-9b8b3f5fd463/
#start a web server when you are in "elCapitanRoot" 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