Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm wondering where I can download the source code of the kernel of Mac OS X Mountain Lion 10.8.2: Darwin 12.2.0.

I googled it, but its hard to find. And yes, I tried

share|improve this question
up vote 7 down vote accepted

I found it. Actually, the Darwin kernel is named xnu. The complete kernel name, version included, for Mac OS X 10.8.2 is xnu-2050.18.24.

It can be downloaded here:

Source code can be browsed online here:

share|improve this answer

You are looking in the correct spot. I haven't seen the wiki updated since Lion - but in the past, the comprehensive build scripts were packaged as part of the darwinbuild project.

The source for 10.8.2 is listed at and you might just try grabbing the latest darwinbuild from MacPorts rather thab building it from source to see if it can help you pull a newer branch corresponding to 10.8 even though the documentation is not written to indicate if the Mountain Lion specific branch steps are complete (or even require anything different than just taking the current trunk code).

share|improve this answer
Mmmmh. There is no mention of Darwin on the page you gave me. I searched Darwin, but the only match was in the "Related Site" section of the page. Should I search for something else than Darwin? – Frizlab Oct 27 '12 at 0:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.