man-db.xml 13 KB

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