man-db.xml 13 KB

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