45

How do I download source code from Apple's website (http://opensource.apple.com/source/). In particular, I am interested in http://opensource.apple.com/source/Security/Security-55110/.

wget -r is downloading HTML files instead of source files. Thanks!

Nerdy Bunz
  • 6,040
  • 10
  • 41
  • 100
webie
  • 1,451
  • 1
  • 10
  • 8
  • I am not sure if this helps, appending a `?txt` to the URL of any file seems to return the file in plain text. You might have to parse the HTML recursively to download files like this :(. I am surprised why isn't there a simple *Download tar.bz2* link anywhere! After all, opensource.apple.com does not seem to be entirely open :P – Gowtham Apr 11 '12 at 16:48

4 Answers4

88

I finally figured it out, sources can be conveniently downloaded from http://opensource.apple.com/tarballs/

webie
  • 1,451
  • 1
  • 10
  • 8
6

It can be downloaded directly from http://opensource.apple.com/tarballs/Security/Security-55110.tar.gz

mttrb
  • 8,297
  • 3
  • 35
  • 57
  • It seems to be 2 different directories with open source projects: http://opensource.apple.com/tarballs/ and https://opensource.apple.com/source/. How do you download from the 2nd link? – derpoliuk May 13 '22 at 04:50
2

There is a clone of the Apple source on github under: Unofficial Fruit Company Open Source Git Mirror

Foster Yin
  • 80
  • 3
0

You can download all apple open source code using mkAppleOpenSourceDownload

mythkiven
  • 79
  • 2