Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

I run RaspBMC.

If I recall correctly, the man utility is NOT installed by default with RaspBMC (although I may be mistaken).

The problem is, packages installed prior to installing the actual man utility do not install their man pages. This includes the packages that come pre-installed with the system.

Example: I tried with udisks-glue (which comes pre-installed)

$ man udisks-glue
No manual entry for udisks-glue

After re-installing that package, the man page is there.

$ apt-get remove udisks-glue
$ apt-get install udisks-glue
$ man udisks-glue
[Man page gets displayed]

The question is: can I somehow install all the missing man pages easily?

From what I can see, installing the man pages is a step that's run for each apt-get install command:

Unpacking udisks-glue (from .../udisks-glue_1.3.4-1_armhf.deb) ...
Processing triggers for man-db ...
[...]

Using divide-and-conquer, I assume this could be obtained by:

  1. getting a list of all installed packages ( dpkg -l | grep ??? | cut ??? | ??? )
  2. finding a way to tell apt-get to re-install a package without messing with the config (a remove + install kinda fits the bill, but I don't think it plays nice with dependencies)
    EDIT: this should do it:
    sudo apt-get install --reinstall packagename
  3. run 2. over each item in 1.
share|improve this question
    
Has this been solved? If so, please mark the answer that fixed it as such. We're trying to get this site up to par and the Q:A ratio is really bad. Thanks! –  RPi Awesomeness Jan 11 at 7:52
    
Cross posted with answer (from the same OP) here. –  Sparhawk Jul 26 at 5:28

2 Answers 2

if you need a working linux with all man pages included, why don't you get another SD card and install Raspbian there?

RaspBMC is very stripped/limited, and I would not even think about using is as a general purpose linux.

share|improve this answer
    
Well, I'm lazy :) plus so far, RaspBMC fit the bill just fine as a general-purpose linux, and handled everything I threw at it. Umm... except C#/Mono –  Cristi Diaconescu Jun 11 '13 at 22:18
    
from my experience, raspbmc does not like very much when I use apt-get to reinstall packages at will. might get broken eventually. –  lenik Jun 11 '13 at 22:31

As far as I know installing a program installs its man page(s) as well, so AFAIK you would have to uninstall and the reinstall any program you want the man pages for.

Or, option 2, you can look on the either http://www.linuxmanpages.com or manpages.debian.net, and read them there.
I would go for the manpages.debian.net, as Raspbmc (and Raspbian) is based off Debian, so that site would be the closest you would get to an official Raspbmc/Raspbian man page site.

share|improve this answer

Your Answer

 
discard

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.