man-db.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-man-db" role="wrap">
  8. <?dbhtml filename="man-db.html"?>
  9. <sect1info condition="script">
  10. <productname>man-db</productname>
  11. <productnumber>&man-db-version;</productnumber>
  12. <address>&man-db-url;</address>
  13. </sect1info>
  14. <title>Man-DB-&man-db-version;</title>
  15. <indexterm zone="ch-system-man-db">
  16. <primary sortas="a-Man-DB">Man-DB</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Man-DB package contains programs for finding and viewing man
  21. pages.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&man-db-ch6-sbu;</seg>
  27. <seg>&man-db-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Man-DB</title>
  33. <para>Prepare Man-DB for compilation:</para>
  34. <screen><userinput remap="configure">./configure --prefix=/usr \
  35. --docdir=/usr/share/doc/man-db-&man-db-version; \
  36. --sysconfdir=/etc \
  37. --disable-setuid \
  38. --with-browser=/usr/bin/lynx \
  39. --with-vgrind=/usr/bin/vgrind \
  40. --with-grap=/usr/bin/grap</userinput></screen>
  41. <variablelist>
  42. <title>The meaning of the configure options:</title>
  43. <varlistentry>
  44. <term><parameter>--disable-setuid</parameter></term>
  45. <listitem>
  46. <para>This disables making the <command>man</command> program setuid
  47. to user <systemitem class="username">man</systemitem>.</para>
  48. </listitem>
  49. </varlistentry>
  50. <varlistentry>
  51. <term><parameter>--with-...</parameter></term>
  52. <listitem>
  53. <para>These three parameters are used to set some default programs.
  54. <command>lynx</command> is a text-based web browser (see
  55. BLFS for installation instructions), <command>vgrind</command>
  56. converts program sources to Groff input, and <command>grap</command>
  57. is useful for typesetting graphs in Groff documents. The
  58. <command>vgrind</command> and <command>grap</command> programs are
  59. not normally needed for viewing manual pages. They are not part of
  60. LFS or BLFS, but you should be able to install them yourself after
  61. finishing LFS if you wish to do so.</para>
  62. </listitem>
  63. </varlistentry>
  64. </variablelist>
  65. <para>Compile the package:</para>
  66. <screen><userinput remap="make">make</userinput></screen>
  67. <para>To test the results, issue:</para>
  68. <screen><userinput remap="test">make check</userinput></screen>
  69. <para>Install the package:</para>
  70. <screen><userinput remap="install">make install</userinput></screen>
  71. <para>Remove a reference to a non-existent user:</para>
  72. <screen><userinput remap="install">sed -i "s:man root:root root:g" /usr/lib/tmpfiles.d/man-db.conf</userinput></screen>
  73. </sect2>
  74. <sect2>
  75. <title>Non-English Manual Pages in LFS</title>
  76. <para>The following table shows the character set that Man-DB assumes
  77. manual pages installed under
  78. <filename class="directory">/usr/share/man/&lt;ll&gt;</filename> will be
  79. encoded with. In addition to this, Man-DB correctly determines if manual
  80. pages installed in that directory are UTF-8 encoded.</para>
  81. <!-- Origin: man-db-2.5.9/lib/encodings.c -->
  82. <table>
  83. <title>Expected character encoding of legacy 8-bit manual pages</title>
  84. <?dbfo table-width="6in" ?>
  85. <tgroup cols="4">
  86. <colspec colnum="1" colwidth="1.5in"/>
  87. <colspec colnum="2" colwidth="1in"/>
  88. <colspec colnum="3" colwidth="2.5in"/>
  89. <colspec colnum="4" colwidth="1in"/>
  90. <thead>
  91. <row>
  92. <entry>Language (code)</entry>
  93. <entry>Encoding</entry>
  94. <entry>Language (code)</entry>
  95. <entry>Encoding</entry>
  96. </row>
  97. </thead>
  98. <tbody>
  99. <row>
  100. <entry>Danish (da)</entry>
  101. <entry>ISO-8859-1</entry>
  102. <entry>Croatian (hr)</entry>
  103. <entry>ISO-8859-2</entry>
  104. </row>
  105. <row>
  106. <entry>German (de)</entry>
  107. <entry>ISO-8859-1</entry>
  108. <entry>Hungarian (hu)</entry>
  109. <entry>ISO-8859-2</entry>
  110. </row>
  111. <row>
  112. <entry>English (en)</entry>
  113. <entry>ISO-8859-1</entry>
  114. <entry>Japanese (ja)</entry>
  115. <entry>EUC-JP</entry>
  116. </row>
  117. <row>
  118. <entry>Spanish (es)</entry>
  119. <entry>ISO-8859-1</entry>
  120. <entry>Korean (ko)</entry>
  121. <entry>EUC-KR</entry>
  122. </row>
  123. <row>
  124. <entry>Estonian (et)</entry>
  125. <entry>ISO-8859-1</entry>
  126. <entry>Lithuanian (lt)</entry>
  127. <entry>ISO-8859-13</entry>
  128. </row>
  129. <row>
  130. <entry>Finnish (fi)</entry>
  131. <entry>ISO-8859-1</entry>
  132. <entry>Latvian (lv)</entry>
  133. <entry>ISO-8859-13</entry>
  134. </row>
  135. <row>
  136. <entry>French (fr)</entry>
  137. <entry>ISO-8859-1</entry>
  138. <entry>Macedonian (mk)</entry>
  139. <entry>ISO-8859-5</entry>
  140. </row>
  141. <row>
  142. <entry>Irish (ga)</entry>
  143. <entry>ISO-8859-1</entry>
  144. <entry>Polish (pl)</entry>
  145. <entry>ISO-8859-2</entry>
  146. </row>
  147. <row>
  148. <entry>Galician (gl)</entry>
  149. <entry>ISO-8859-1</entry>
  150. <entry>Romanian (ro)</entry>
  151. <entry>ISO-8859-2</entry>
  152. </row>
  153. <row>
  154. <entry>Indonesian (id)</entry>
  155. <entry>ISO-8859-1</entry>
  156. <entry>Russian (ru)</entry>
  157. <entry>KOI8-R</entry>
  158. </row>
  159. <row>
  160. <entry>Icelandic (is)</entry>
  161. <entry>ISO-8859-1</entry>
  162. <entry>Slovak (sk)</entry>
  163. <entry>ISO-8859-2</entry>
  164. </row>
  165. <row>
  166. <entry>Italian (it)</entry>
  167. <entry>ISO-8859-1</entry>
  168. <entry>Slovenian (sl)</entry>
  169. <entry>ISO-8859-2</entry>
  170. </row>
  171. <row>
  172. <entry>Norwegian Bokmal (nb)</entry>
  173. <entry>ISO-8859-1</entry>
  174. <entry>Serbian Latin (sr@latin)</entry>
  175. <entry>ISO-8859-2</entry>
  176. </row>
  177. <row>
  178. <entry>Dutch (nl)</entry>
  179. <entry>ISO-8859-1</entry>
  180. <entry>Serbian (sr)</entry>
  181. <entry>ISO-8859-5</entry>
  182. </row>
  183. <row>
  184. <entry>Norwegian Nynorsk (nn)</entry>
  185. <entry>ISO-8859-1</entry>
  186. <entry>Turkish (tr)</entry>
  187. <entry>ISO-8859-9</entry>
  188. </row>
  189. <row>
  190. <entry>Norwegian (no)</entry>
  191. <entry>ISO-8859-1</entry>
  192. <entry>Ukrainian (uk)</entry>
  193. <entry>KOI8-U</entry>
  194. </row>
  195. <row>
  196. <entry>Portuguese (pt)</entry>
  197. <entry>ISO-8859-1</entry>
  198. <entry>Vietnamese (vi)</entry>
  199. <entry>TCVN5712-1</entry>
  200. </row>
  201. <row>
  202. <entry>Swedish (sv)</entry>
  203. <entry>ISO-8859-1</entry>
  204. <entry>Simplified Chinese (zh_CN)</entry>
  205. <entry>GBK</entry>
  206. </row>
  207. <row>
  208. <entry>Belarusian (be)</entry>
  209. <entry>CP1251</entry>
  210. <entry>Simplified Chinese, Singapore (zh_SG)</entry>
  211. <entry>GBK</entry>
  212. </row>
  213. <row>
  214. <entry>Bulgarian (bg)</entry>
  215. <entry>CP1251</entry>
  216. <entry>Traditional Chinese, Hong Kong (zh_HK)</entry>
  217. <entry>BIG5HKSCS</entry>
  218. </row>
  219. <row>
  220. <entry>Czech (cs)</entry>
  221. <entry>ISO-8859-2</entry>
  222. <entry>Traditional Chinese (zh_TW)</entry>
  223. <entry>BIG5</entry>
  224. </row>
  225. <row>
  226. <entry>Greek (el)</entry>
  227. <entry>ISO-8859-7</entry>
  228. <entry></entry>
  229. <entry></entry>
  230. </row>
  231. </tbody>
  232. </tgroup>
  233. </table>
  234. <note>
  235. <para>Manual pages in languages not in the list are not supported.</para>
  236. </note>
  237. </sect2>
  238. <sect2 id="contents-man-db" role="content">
  239. <title>Contents of Man-DB</title>
  240. <segmentedlist>
  241. <segtitle>Installed programs</segtitle>
  242. <segtitle>Installed libraries</segtitle>
  243. <segtitle>Installed directories</segtitle>
  244. <seglistitem>
  245. <seg>accessdb, apropos (link to whatis), catman, lexgrog, man, mandb,
  246. manpath, and whatis</seg>
  247. <seg>libman.so and libmandb.so</seg>
  248. <seg>/usr/lib/man-db, /usr/lib/tmpfiles.d, /usr/libexec/man-db,
  249. and /usr/share/doc/man-db-&man-db-version;</seg>
  250. </seglistitem>
  251. </segmentedlist>
  252. <variablelist>
  253. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  254. <?dbfo list-presentation="list"?>
  255. <?dbhtml list-presentation="table"?>
  256. <varlistentry id="accessdb">
  257. <term><command>accessdb</command></term>
  258. <listitem>
  259. <para>Dumps the <command>whatis</command> database contents in
  260. human-readable form</para>
  261. <indexterm zone="ch-system-man-db accessdb">
  262. <primary sortas="b-accessdb">accessdb</primary>
  263. </indexterm>
  264. </listitem>
  265. </varlistentry>
  266. <varlistentry id="apropos">
  267. <term><command>apropos</command></term>
  268. <listitem>
  269. <para>Searches the <command>whatis</command> database and displays
  270. the short descriptions of system commands that contain a given
  271. string</para>
  272. <indexterm zone="ch-system-man-db apropos">
  273. <primary sortas="b-apropos">apropos</primary>
  274. </indexterm>
  275. </listitem>
  276. </varlistentry>
  277. <varlistentry id="catman">
  278. <term><command>catman</command></term>
  279. <listitem>
  280. <para>Creates or updates the pre-formatted manual pages</para>
  281. <indexterm zone="ch-system-man-db catman">
  282. <primary sortas="b-catman">catman</primary>
  283. </indexterm>
  284. </listitem>
  285. </varlistentry>
  286. <varlistentry id="lexgrog">
  287. <term><command>lexgrog</command></term>
  288. <listitem>
  289. <para>Displays one-line summary information about a given manual
  290. page</para>
  291. <indexterm zone="ch-system-man-db lexgrog">
  292. <primary sortas="b-lexgrog">lexgrog</primary>
  293. </indexterm>
  294. </listitem>
  295. </varlistentry>
  296. <varlistentry id="man">
  297. <term><command>man</command></term>
  298. <listitem>
  299. <para>Formats and displays the requested manual page</para>
  300. <indexterm zone="ch-system-man-db man">
  301. <primary sortas="b-man">man</primary>
  302. </indexterm>
  303. </listitem>
  304. </varlistentry>
  305. <varlistentry id="mandb">
  306. <term><command>mandb</command></term>
  307. <listitem>
  308. <para>Creates or updates the <command>whatis</command> database</para>
  309. <indexterm zone="ch-system-man-db mandb">
  310. <primary sortas="b-mandb">mandb</primary>
  311. </indexterm>
  312. </listitem>
  313. </varlistentry>
  314. <varlistentry id="manpath">
  315. <term><command>manpath</command></term>
  316. <listitem>
  317. <para>Displays the contents of $MANPATH or (if $MANPATH is not set)
  318. a suitable search path based on the settings in man.conf and the
  319. user's environment</para>
  320. <indexterm zone="ch-system-man-db manpath">
  321. <primary sortas="b-manpath">manpath</primary>
  322. </indexterm>
  323. </listitem>
  324. </varlistentry>
  325. <varlistentry id="whatis">
  326. <term><command>whatis</command></term>
  327. <listitem>
  328. <para>Searches the <command>whatis</command> database and displays
  329. the short descriptions of system commands that contain the given
  330. keyword as a separate word</para>
  331. <indexterm zone="ch-system-man-db whatis">
  332. <primary sortas="b-whatis">whatis</primary>
  333. </indexterm>
  334. </listitem>
  335. </varlistentry>
  336. <varlistentry id="libman">
  337. <term><filename class="libraryfile">libman</filename></term>
  338. <listitem>
  339. <para>Contains run-time support for <command>man</command></para>
  340. <indexterm zone="ch-system-man-db libman">
  341. <primary sortas="c-libman">libman</primary>
  342. </indexterm>
  343. </listitem>
  344. </varlistentry>
  345. <varlistentry id="libmandb">
  346. <term><filename class="libraryfile">libmandb</filename></term>
  347. <listitem>
  348. <para>Contains run-time support for <command>man</command></para>
  349. <indexterm zone="ch-system-man-db libmandb">
  350. <primary sortas="c-libmandb">libmandb</primary>
  351. </indexterm>
  352. </listitem>
  353. </varlistentry>
  354. </variablelist>
  355. </sect2>
  356. </sect1>