Skip to content

Instantly share code, notes, and snippets.

@EtherTyper
Forked from rahul286/mac-osx-el-captain-commands.sh
Last active December 29, 2015 22:24
Show Gist options
  • Save EtherTyper/410322d00db07a2ffd34 to your computer and use it in GitHub Desktop.
Save EtherTyper/410322d00db07a2ffd34 to your computer and use it in GitHub Desktop.
Updating to Mac elCapitan using downloaded pkg file

Run this from folder where you have downloaded or copied ftk3252456602304584541.pkg file

#create a tmp folder

#create a folder structure to match apple server

#move downloaded pkg file to proper path

#start a web server when you are in "elCapitanRoot" folder

#edit your mac's /etc/hosts file to add following line

#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

mkdir elCapitanRoot && cd elCapitanRoot
sudo mkdir -p ./apple-assets-us-std-000001/Purple3/v4/74/d2/82/74d28291-9db9-7ae2-305d-9b8b3f5fd463/
sudo mv ../ftk3252456602304584541.pkg ./apple-assets-us-std-000001/Purple3/v4/74/d2/82/74d28291-9db9-7ae2-305d-9b8b3f5fd463/
sudo python -m SimpleHTTPServer 80
sudo echo "127.0.0.1 osxapps.itunes.apple.com" >> /etc/hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment