Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

How do I install just the documentation and man pages of Clang and LLVM? I compiled the current version from source, based on the source from the LLVM website and it works fine but since it is a local self-contained repository (it can run from your home directory assuming you have it's bin subdirectory in your path) it does not install the man pages or documentation.

I uninstalled the Ubuntu package of Clang/LLVM to avoid any possible conflicts but this also removed the Clang man pages. How do I install just the man pages and documentation. I am OK if the man pages are technically from a couple of versions back compared to the installed compiler if necessary.


share|improve this question
Yes, I am still looking for an answer. Can I ask why this is flagged for closure? It is a relevant question and appears to be within the scope of the site. – haziz Apr 9 '12 at 15:31
no activity, cleaning site – Ringtail Apr 9 '12 at 15:38
flag removed... – Ringtail Apr 9 '12 at 15:39
Still looking for an answer here or can we close it now? – Seth Mar 1 '13 at 0:34
@Seth Yes, I am still looking for an answer. – haziz Mar 1 '13 at 2:52
  1. Clean the package cache: sudo apt-get clean
  2. Download the debs: sudo apt-get install -d clang llvm
  3. Extract the debs in a "work" directory: find /var/cache/apt/archives/ -name "*.deb" -exec dpkg-deb -x {} work \;
  4. Copy the docs and man pages to /usr/share: sudo cp -a work/usr/share/{doc,man} /usr/share/

You can remove the work directory now: rm -rf work.

I noticed that there's lots of llvm related packages. Add all the packages you want to step 2, specially the -doc (llvm-2.8-doc, llvm-2.9, llvm-3.0).

share|improve this answer

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.