Skip to content

Instantly share code, notes, and snippets.

@rahul286
Last active April 19, 2021 06:15
Show Gist options
  • Star 18 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save rahul286/2fc41942c7ed4039893f to your computer and use it in GitHub Desktop.
Save rahul286/2fc41942c7ed4039893f 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
@EtherTyper
Copy link

AWESOME!

It's way better than Mavericks, Yosemite, or even its own early betas.

@bezik46
Copy link

bezik46 commented Mar 28, 2016

Need updated links for 10.11.4...
And updated instructions that deal with extra pfpkg file

as per https://7labs.heypub.com/tips-tricks/el-capitan-direct-download.html

@aniketptl
Copy link

I have one thing to ask here , can anybody tell how can i get direct link for other apps ? I tried Wireshark to sniff packet but no help.

@lkraider
Copy link

lkraider commented Apr 21, 2016

I have updated with the pgk link for El Capitan 10.11.4 in my fork.

@bezik46
Copy link

bezik46 commented Apr 24, 2016

pgk itself is no longer enough! pfpkg is also needed!

@farhadlatif
Copy link

I found the link for the latest version of OS X El Capitan 10.11.4 but I am not sure if it is the latest version (10.11.4)
http://osxapps.itunes.apple.co...

From

http://www.mactechnews.de/foru...

Please confirm if it is the latest version (10.11.4) and Will the same method work for 10.11.4. I would appreciate your comments.

@santoslao
Copy link

Hello Guys

Here are the top 3 system OS X

OS X 10.9.5

OS X 10.10.5

OS X 10.11.3

Original post: https://gist.github.com/16133b89c2b38b7eb197

@santoslao
Copy link

Guys, what would that be? You can list all the OS X Apple IPSW using the command?

http://www.iapps.im/public/uploadfiles/comment/file/eef1d9d5ec685b89ecd56853535f2529.txt

List Direct IPSW server
http://osxdaily.com/2013/11/15/get-list-all-ipsw-files-from-apple/

@FranciscoAlexis
Copy link

I have one problem, the server is serving files like http://localhost/apple-assets-us-std-000001%3APurple62%3Av4%3Aa3%3Aa3%3A14%3Aa3a31405-6063-cb0e-5af4-fdeb8fc39491/jze1425880974225146329.pkg

And the app store app requests
/apple-assets-us-std-000001/Purple62/v4/a3/a3/14/a3a31405-6063-cb0e-5af4-fdeb8fc39491/signed.dcr.6908747036561828369.pfpkg

There is something that i'm missing?

@FranciscoAlexis
Copy link

ok i git it working but i get this exception
Exception happened during processing of request from ('127.0.0.1', 61137)
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock
self.process_request(request, client_address)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 321, in process_request
self.finish_request(request, client_address)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 657, in init
self.finish()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 716, in finish
self.wfile.close()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 283, in close
self.flush()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 307, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment