Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

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 want to understand how OpenSolaris ptools(process tools) works. How exactly pstack, pmap, pargs etc works, but I can't find any link to its full source code. I can only find an online version of the source. Any advice where I can download source code for offline use?

share|improve this question
I heard that OpenSolaris is not "open" anymore? a quick google for "oracle opensolaris" shows a lot of results like this blogs.computerworld.com/16741/oracle_dumps_opensolaris – phunehehe Sep 14 '10 at 15:04
up vote 4 down vote accepted

Like Kristof Provost mentioned, the official source for the code is:


Like you said the source tarballs are now deprecated.

and I cant install Mercurial :(

? But you should have access to some machine where you can? If not, another possibility would be a live cd with mercurial installed, for example the excellent GRML.

Beside that, I cloned the repository for you ;-) You can find it under: http://solaris.oark.org/usr/src/. What you are looking for is the directory http://solaris.oark.org/usr/src/cmd/ptools/. wget should now do the job :-)

Note: I will delete this cloned repository the next weeks...

Have fun.

share|improve this answer
Thanks a lot. I will get code today. – Hemant Sep 15 '10 at 5:23
Will it be possible for you to share tar for that folder? I don't want to over load you server with lots of download request ;) – Hemant Sep 15 '10 at 5:51
Its not problem ;-) the webserver scales fine ;-) – echox Sep 15 '10 at 11:39
ok. Starting now :). – Hemant Sep 15 '10 at 12:23
@echox: I am done with the download if you want you can remove the repository. Thanks alot for your efforts to copy and share repository on you server. :) – Hemant Sep 16 '10 at 14:21

You can download illumOS code from github. Here is the link.. You can also download as a zip file.

share|improve this answer
Packages are also available directly, for instance this. – Survenant Lazurite Mar 30 '14 at 19:28

Get The Source

It's possible you'll need to use Mercurial to get it.

share|improve this answer
I just saw following comment. "Source tarballs have been deprecated in favour of the onnv project's Mercurial repository." and I cant install Mercurial :(. – Hemant Sep 14 '10 at 12:19

Oracle quickly closed down the OpenSolaris project after taking over Sun.

Because of the previously used open source license, the code is still available.

Clones of the old Mercurial repository:

The last commit is:

Sukumar Swaminathan
6973228 Cannot download firmware 2.103.x.x on Emulex FCoE HBAs

There is also a mirror of the open solaris online source code browser (aka cross reference).

That site has copied the LSARC/PSARC archive, as well.

share|improve this answer

Download it from the main download page.

Edit (2013, 3 years later): this links to Solaris 11 download. OpenSolaris is no more; you should go to one of the forks, like IllumOS, if you want source material.

share|improve this answer
I checked that page but it seems to have only link to live cd and some other Consolidations. Cant find link to source archive. Can you please post the link to source. – Hemant Sep 14 '10 at 12:03

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.