我运行RaspBMC - 基于Raspbian的发行版,这是Raspberry Pi的自定义最小 Debian 。
如果我man
没记错的话,该实用程序默认没有安装在 RaspBMC 中(尽管我可能会误会)。
问题是,在安装实际man
实用程序之前安装的软件包不会安装其手册页。这包括系统预装的软件包。
示例:我尝试使用 udisks-glue(预装)
$ man udisks-glue
No manual entry for udisks-glue
Run Code Online (Sandbox Code Playgroud)
重新安装该软件包后,手册页就在那里。
$ apt-get remove udisks-glue
$ apt-get install udisks-glue
$ man udisks-glue
[Man page gets displayed]
Run Code Online (Sandbox Code Playgroud)
问题是:我能以某种方式轻松安装所有丢失的手册页吗?
据我所知,安装手册页是为每个apt-get install
命令运行的一个步骤:
Unpacking udisks-glue (from .../udisks-glue_1.3.4-1_armhf.deb) ...
Processing triggers for man-db ...
[...]
Run Code Online (Sandbox Code Playgroud)
使用分而治之,我认为这可以通过以下方式获得:
dpkg -l | grep ??? | cut ??? | ???
)