man-db.xml 15 KB

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