man-db.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  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. </sect2>
  72. <sect2>
  73. <title>Non-English Manual Pages in LFS</title>
  74. <para>The following table shows the character set that Man-DB assumes
  75. manual pages installed under
  76. <filename class="directory">/usr/share/man/&lt;ll&gt;</filename> will be
  77. encoded with. In addition to this, Man-DB correctly determines if manual
  78. pages installed in that directory are UTF-8 encoded.</para>
  79. <!-- Origin: man-db-2.5.9/lib/encodings.c -->
  80. <table>
  81. <title>Expected character encoding of legacy 8-bit manual pages</title>
  82. <?dbfo table-width="6in" ?>
  83. <tgroup cols="4">
  84. <colspec colnum="1" colwidth="1.5in"/>
  85. <colspec colnum="2" colwidth="1in"/>
  86. <colspec colnum="3" colwidth="2.5in"/>
  87. <colspec colnum="4" colwidth="1in"/>
  88. <thead>
  89. <row>
  90. <entry>Language (code)</entry>
  91. <entry>Encoding</entry>
  92. <entry>Language (code)</entry>
  93. <entry>Encoding</entry>
  94. </row>
  95. </thead>
  96. <tbody>
  97. <row>
  98. <entry>Danish (da)</entry>
  99. <entry>ISO-8859-1</entry>
  100. <entry>Croatian (hr)</entry>
  101. <entry>ISO-8859-2</entry>
  102. </row>
  103. <row>
  104. <entry>German (de)</entry>
  105. <entry>ISO-8859-1</entry>
  106. <entry>Hungarian (hu)</entry>
  107. <entry>ISO-8859-2</entry>
  108. </row>
  109. <row>
  110. <entry>English (en)</entry>
  111. <entry>ISO-8859-1</entry>
  112. <entry>Japanese (ja)</entry>
  113. <entry>EUC-JP</entry>
  114. </row>
  115. <row>
  116. <entry>Spanish (es)</entry>
  117. <entry>ISO-8859-1</entry>
  118. <entry>Korean (ko)</entry>
  119. <entry>EUC-KR</entry>
  120. </row>
  121. <row>
  122. <entry>Estonian (et)</entry>
  123. <entry>ISO-8859-1</entry>
  124. <entry>Lithuanian (lt)</entry>
  125. <entry>ISO-8859-13</entry>
  126. </row>
  127. <row>
  128. <entry>Finnish (fi)</entry>
  129. <entry>ISO-8859-1</entry>
  130. <entry>Latvian (lv)</entry>
  131. <entry>ISO-8859-13</entry>
  132. </row>
  133. <row>
  134. <entry>French (fr)</entry>
  135. <entry>ISO-8859-1</entry>
  136. <entry>Macedonian (mk)</entry>
  137. <entry>ISO-8859-5</entry>
  138. </row>
  139. <row>
  140. <entry>Irish (ga)</entry>
  141. <entry>ISO-8859-1</entry>
  142. <entry>Polish (pl)</entry>
  143. <entry>ISO-8859-2</entry>
  144. </row>
  145. <row>
  146. <entry>Galician (gl)</entry>
  147. <entry>ISO-8859-1</entry>
  148. <entry>Romanian (ro)</entry>
  149. <entry>ISO-8859-2</entry>
  150. </row>
  151. <row>
  152. <entry>Indonesian (id)</entry>
  153. <entry>ISO-8859-1</entry>
  154. <entry>Russian (ru)</entry>
  155. <entry>KOI8-R</entry>
  156. </row>
  157. <row>
  158. <entry>Icelandic (is)</entry>
  159. <entry>ISO-8859-1</entry>
  160. <entry>Slovak (sk)</entry>
  161. <entry>ISO-8859-2</entry>
  162. </row>
  163. <row>
  164. <entry>Italian (it)</entry>
  165. <entry>ISO-8859-1</entry>
  166. <entry>Slovenian (sl)</entry>
  167. <entry>ISO-8859-2</entry>
  168. </row>
  169. <row>
  170. <entry>Norwegian Bokmal (nb)</entry>
  171. <entry>ISO-8859-1</entry>
  172. <entry>Serbian Latin (sr@latin)</entry>
  173. <entry>ISO-8859-2</entry>
  174. </row>
  175. <row>
  176. <entry>Dutch (nl)</entry>
  177. <entry>ISO-8859-1</entry>
  178. <entry>Serbian (sr)</entry>
  179. <entry>ISO-8859-5</entry>
  180. </row>
  181. <row>
  182. <entry>Norwegian Nynorsk (nn)</entry>
  183. <entry>ISO-8859-1</entry>
  184. <entry>Turkish (tr)</entry>
  185. <entry>ISO-8859-9</entry>
  186. </row>
  187. <row>
  188. <entry>Norwegian (no)</entry>
  189. <entry>ISO-8859-1</entry>
  190. <entry>Ukrainian (uk)</entry>
  191. <entry>KOI8-U</entry>
  192. </row>
  193. <row>
  194. <entry>Portuguese (pt)</entry>
  195. <entry>ISO-8859-1</entry>
  196. <entry>Vietnamese (vi)</entry>
  197. <entry>TCVN5712-1</entry>
  198. </row>
  199. <row>
  200. <entry>Swedish (sv)</entry>
  201. <entry>ISO-8859-1</entry>
  202. <entry>Simplified Chinese (zh_CN)</entry>
  203. <entry>GBK</entry>
  204. </row>
  205. <row>
  206. <entry>Belarusian (be)</entry>
  207. <entry>CP1251</entry>
  208. <entry>Simplified Chinese, Singapore (zh_SG)</entry>
  209. <entry>GBK</entry>
  210. </row>
  211. <row>
  212. <entry>Bulgarian (bg)</entry>
  213. <entry>CP1251</entry>
  214. <entry>Traditional Chinese, Hong Kong (zh_HK)</entry>
  215. <entry>BIG5HKSCS</entry>
  216. </row>
  217. <row>
  218. <entry>Czech (cs)</entry>
  219. <entry>ISO-8859-2</entry>
  220. <entry>Traditional Chinese (zh_TW)</entry>
  221. <entry>BIG5</entry>
  222. </row>
  223. <row>
  224. <entry>Greek (el)</entry>
  225. <entry>ISO-8859-7</entry>
  226. <entry></entry>
  227. <entry></entry>
  228. </row>
  229. </tbody>
  230. </tgroup>
  231. </table>
  232. <note>
  233. <para>Manual pages in languages not in the list are not supported.</para>
  234. </note>
  235. </sect2>
  236. <sect2 id="contents-man-db" role="content">
  237. <title>Contents of Man-DB</title>
  238. <segmentedlist>
  239. <segtitle>Installed programs</segtitle>
  240. <segtitle>Installed libraries</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>libman.so, libmandb.so</seg>
  246. <seg>/usr/lib/man-db, /usr/libexec/man-db, /usr/share/doc/man-db-&man-db-version;</seg>
  247. </seglistitem>
  248. </segmentedlist>
  249. <variablelist>
  250. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  251. <?dbfo list-presentation="list"?>
  252. <?dbhtml list-presentation="table"?>
  253. <varlistentry id="accessdb">
  254. <term><command>accessdb</command></term>
  255. <listitem>
  256. <para>Dumps the <command>whatis</command> database contents in
  257. human-readable form</para>
  258. <indexterm zone="ch-system-man-db accessdb">
  259. <primary sortas="b-accessdb">accessdb</primary>
  260. </indexterm>
  261. </listitem>
  262. </varlistentry>
  263. <varlistentry id="apropos">
  264. <term><command>apropos</command></term>
  265. <listitem>
  266. <para>Searches the <command>whatis</command> database and displays
  267. the short descriptions of system commands that contain a given
  268. string</para>
  269. <indexterm zone="ch-system-man-db apropos">
  270. <primary sortas="b-apropos">apropos</primary>
  271. </indexterm>
  272. </listitem>
  273. </varlistentry>
  274. <varlistentry id="catman">
  275. <term><command>catman</command></term>
  276. <listitem>
  277. <para>Creates or updates the pre-formatted manual pages</para>
  278. <indexterm zone="ch-system-man-db catman">
  279. <primary sortas="b-catman">catman</primary>
  280. </indexterm>
  281. </listitem>
  282. </varlistentry>
  283. <varlistentry id="lexgrog">
  284. <term><command>lexgrog</command></term>
  285. <listitem>
  286. <para>Displays one-line summary information about a given manual
  287. page</para>
  288. <indexterm zone="ch-system-man-db lexgrog">
  289. <primary sortas="b-lexgrog">lexgrog</primary>
  290. </indexterm>
  291. </listitem>
  292. </varlistentry>
  293. <varlistentry id="man">
  294. <term><command>man</command></term>
  295. <listitem>
  296. <para>Formats and displays the requested manual page</para>
  297. <indexterm zone="ch-system-man-db man">
  298. <primary sortas="b-man">man</primary>
  299. </indexterm>
  300. </listitem>
  301. </varlistentry>
  302. <varlistentry id="mandb">
  303. <term><command>mandb</command></term>
  304. <listitem>
  305. <para>Creates or updates the <command>whatis</command> database</para>
  306. <indexterm zone="ch-system-man-db mandb">
  307. <primary sortas="b-mandb">mandb</primary>
  308. </indexterm>
  309. </listitem>
  310. </varlistentry>
  311. <varlistentry id="manpath">
  312. <term><command>manpath</command></term>
  313. <listitem>
  314. <para>Displays the contents of $MANPATH or (if $MANPATH is not set)
  315. a suitable search path based on the settings in man.conf and the
  316. user's environment</para>
  317. <indexterm zone="ch-system-man-db manpath">
  318. <primary sortas="b-manpath">manpath</primary>
  319. </indexterm>
  320. </listitem>
  321. </varlistentry>
  322. <varlistentry id="whatis">
  323. <term><command>whatis</command></term>
  324. <listitem>
  325. <para>Searches the <command>whatis</command> database and displays
  326. the short descriptions of system commands that contain the given
  327. keyword as a separate word</para>
  328. <indexterm zone="ch-system-man-db whatis">
  329. <primary sortas="b-whatis">whatis</primary>
  330. </indexterm>
  331. </listitem>
  332. </varlistentry>
  333. <varlistentry id="zsoelim">
  334. <term><command>zsoelim</command></term>
  335. <listitem>
  336. <para>Reads files and replaces lines of the form <emphasis>.so
  337. file</emphasis> by the contents of the mentioned
  338. <emphasis>file</emphasis></para>
  339. <indexterm zone="ch-system-man-db zsoelim">
  340. <primary sortas="b-zsoelim">zsoelim</primary>
  341. </indexterm>
  342. </listitem>
  343. </varlistentry>
  344. <varlistentry id="libman">
  345. <term><filename class="libraryfile">libman</filename></term>
  346. <listitem>
  347. <para>Contains run-time support for <command>man</command></para>
  348. <indexterm zone="ch-system-man-db libman">
  349. <primary sortas="c-libman">libman</primary>
  350. </indexterm>
  351. </listitem>
  352. </varlistentry>
  353. <varlistentry id="libmandb">
  354. <term><filename class="libraryfile">libmandb</filename></term>
  355. <listitem>
  356. <para>Contains run-time support for <command>man</command></para>
  357. <indexterm zone="ch-system-man-db libmandb">
  358. <primary sortas="c-libmandb">libmandb</primary>
  359. </indexterm>
  360. </listitem>
  361. </varlistentry>
  362. </variablelist>
  363. </sect2>
  364. </sect1>