I've written some code to extract some help from dtx files (documented package), and I have tested it on a few packages for which I had the .dtx. It seems, however, that .dtx files are not shipped with TeXlive (or rather, find /usr -name '*.dtx' only came up with very few of them).
I could simply go to CTAN and download package documentation one file at a time, but... that's not desirable :). So how can I do that in the most efficient possible way?
EDIT: it appears that the absence of dtx is normal under Ubuntu 10.04 (Lucid). Only dtx from the koma-script and a few others are included.
.dtxfiles intexmf-dist/source/{latex|generic|...}. But there are a lot of packages distributed without.dtxfiles, such aspgf. – Leo Liu Mar 1 '11 at 13:23.dtxfiles are segregated in asourcetree separate from the "active" trees to save time. when installing, i believe there's an option to omit thesourcetree to save space. – barbara beeton Mar 1 '11 at 13:26texlive-base? packages.debian.org/source/squeeze/texlive-base. I am not sure, but I think it should have the dtx files in it. It is a huge file, though, thersyncsolution is better, I think. – Jan Hlavacek Mar 2 '11 at 6:41