man-db.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  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 and libmandb.so</seg>
  246. <seg>/usr/lib/man-db, /usr/libexec/man-db,
  247. and /usr/share/doc/man-db-&man-db-version;</seg>
  248. </seglistitem>
  249. </segmentedlist>
  250. <variablelist>
  251. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  252. <?dbfo list-presentation="list"?>
  253. <?dbhtml list-presentation="table"?>
  254. <varlistentry id="accessdb">
  255. <term><command>accessdb</command></term>
  256. <listitem>
  257. <para>Dumps the <command>whatis</command> database contents in
  258. human-readable form</para>
  259. <indexterm zone="ch-system-man-db accessdb">
  260. <primary sortas="b-accessdb">accessdb</primary>
  261. </indexterm>
  262. </listitem>
  263. </varlistentry>
  264. <varlistentry id="apropos">
  265. <term><command>apropos</command></term>
  266. <listitem>
  267. <para>Searches the <command>whatis</command> database and displays
  268. the short descriptions of system commands that contain a given
  269. string</para>
  270. <indexterm zone="ch-system-man-db apropos">
  271. <primary sortas="b-apropos">apropos</primary>
  272. </indexterm>
  273. </listitem>
  274. </varlistentry>
  275. <varlistentry id="catman">
  276. <term><command>catman</command></term>
  277. <listitem>
  278. <para>Creates or updates the pre-formatted manual pages</para>
  279. <indexterm zone="ch-system-man-db catman">
  280. <primary sortas="b-catman">catman</primary>
  281. </indexterm>
  282. </listitem>
  283. </varlistentry>
  284. <varlistentry id="lexgrog">
  285. <term><command>lexgrog</command></term>
  286. <listitem>
  287. <para>Displays one-line summary information about a given manual
  288. page</para>
  289. <indexterm zone="ch-system-man-db lexgrog">
  290. <primary sortas="b-lexgrog">lexgrog</primary>
  291. </indexterm>
  292. </listitem>
  293. </varlistentry>
  294. <varlistentry id="man">
  295. <term><command>man</command></term>
  296. <listitem>
  297. <para>Formats and displays the requested manual page</para>
  298. <indexterm zone="ch-system-man-db man">
  299. <primary sortas="b-man">man</primary>
  300. </indexterm>
  301. </listitem>
  302. </varlistentry>
  303. <varlistentry id="mandb">
  304. <term><command>mandb</command></term>
  305. <listitem>
  306. <para>Creates or updates the <command>whatis</command> database</para>
  307. <indexterm zone="ch-system-man-db mandb">
  308. <primary sortas="b-mandb">mandb</primary>
  309. </indexterm>
  310. </listitem>
  311. </varlistentry>
  312. <varlistentry id="manpath">
  313. <term><command>manpath</command></term>
  314. <listitem>
  315. <para>Displays the contents of $MANPATH or (if $MANPATH is not set)
  316. a suitable search path based on the settings in man.conf and the
  317. user's environment</para>
  318. <indexterm zone="ch-system-man-db manpath">
  319. <primary sortas="b-manpath">manpath</primary>
  320. </indexterm>
  321. </listitem>
  322. </varlistentry>
  323. <varlistentry id="whatis">
  324. <term><command>whatis</command></term>
  325. <listitem>
  326. <para>Searches the <command>whatis</command> database and displays
  327. the short descriptions of system commands that contain the given
  328. keyword as a separate word</para>
  329. <indexterm zone="ch-system-man-db whatis">
  330. <primary sortas="b-whatis">whatis</primary>
  331. </indexterm>
  332. </listitem>
  333. </varlistentry>
  334. <varlistentry id="zsoelim">
  335. <term><command>zsoelim</command></term>
  336. <listitem>
  337. <para>Reads files and replaces lines of the form <emphasis>.so
  338. file</emphasis> by the contents of the mentioned
  339. <emphasis>file</emphasis></para>
  340. <indexterm zone="ch-system-man-db zsoelim">
  341. <primary sortas="b-zsoelim">zsoelim</primary>
  342. </indexterm>
  343. </listitem>
  344. </varlistentry>
  345. <varlistentry id="libman">
  346. <term><filename class="libraryfile">libman</filename></term>
  347. <listitem>
  348. <para>Contains run-time support for <command>man</command></para>
  349. <indexterm zone="ch-system-man-db libman">
  350. <primary sortas="c-libman">libman</primary>
  351. </indexterm>
  352. </listitem>
  353. </varlistentry>
  354. <varlistentry id="libmandb">
  355. <term><filename class="libraryfile">libmandb</filename></term>
  356. <listitem>
  357. <para>Contains run-time support for <command>man</command></para>
  358. <indexterm zone="ch-system-man-db libmandb">
  359. <primary sortas="c-libmandb">libmandb</primary>
  360. </indexterm>
  361. </listitem>
  362. </varlistentry>
  363. </variablelist>
  364. </sect2>
  365. </sect1>