[fa21b3d] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[fa21b3d] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[2fa922f] | 7 |
|
---|
[fa21b3d] | 8 | <sect1 id="ch-system-man-db" role="wrap">
|
---|
[2fa922f] | 9 | <?dbhtml filename="man-db.html"?>
|
---|
| 10 |
|
---|
[e747759] | 11 | <sect1info condition="script">
|
---|
| 12 | <productname>man-db</productname>
|
---|
| 13 | <productnumber>&man-db-version;</productnumber>
|
---|
| 14 | <address>&man-db-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
[2fa922f] | 17 | <title>Man-DB-&man-db-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-system-man-db">
|
---|
| 20 | <primary sortas="a-Man-DB">Man-DB</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
| 25 |
|
---|
| 26 | <para>The Man-DB package contains programs for finding and viewing man
|
---|
| 27 | pages.</para>
|
---|
[fa21b3d] | 28 |
|
---|
[2fa922f] | 29 | <segmentedlist>
|
---|
| 30 | <segtitle>&buildtime;</segtitle>
|
---|
| 31 | <segtitle>&diskspace;</segtitle>
|
---|
[fa21b3d] | 32 |
|
---|
[2fa922f] | 33 | <seglistitem>
|
---|
[e4a5635] | 34 | <seg>&man-db-ch6-sbu;</seg>
|
---|
| 35 | <seg>&man-db-ch6-du;</seg>
|
---|
[2fa922f] | 36 | </seglistitem>
|
---|
| 37 | </segmentedlist>
|
---|
[fa21b3d] | 38 |
|
---|
[2fa922f] | 39 | </sect2>
|
---|
[fa21b3d] | 40 |
|
---|
[2fa922f] | 41 | <sect2 role="installation">
|
---|
| 42 | <title>Installation of Man-DB</title>
|
---|
[fa21b3d] | 43 |
|
---|
[2fa922f] | 44 | <para>Prepare Man-DB for compilation:</para>
|
---|
[fa21b3d] | 45 |
|
---|
[729afb9] | 46 | <screen><userinput remap="configure">./configure --prefix=/usr \
|
---|
[9f5aaf7] | 47 | --docdir=/usr/share/doc/man-db-&man-db-version; \
|
---|
[729afb9] | 48 | --sysconfdir=/etc \
|
---|
| 49 | --disable-setuid \
|
---|
| 50 | --with-browser=/usr/bin/lynx \
|
---|
| 51 | --with-vgrind=/usr/bin/vgrind \
|
---|
[9f5aaf7] | 52 | --with-grap=/usr/bin/grap</userinput></screen>
|
---|
[fa21b3d] | 53 |
|
---|
[2fa922f] | 54 | <variablelist>
|
---|
| 55 | <title>The meaning of the configure options:</title>
|
---|
| 56 |
|
---|
| 57 | <varlistentry>
|
---|
| 58 | <term><parameter>--disable-setuid</parameter></term>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>This disables making the <command>man</command> program setuid
|
---|
| 61 | to user <systemitem class="username">man</systemitem>.</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | </varlistentry>
|
---|
[fa21b3d] | 64 |
|
---|
[f2f15e5] | 65 | <varlistentry>
|
---|
| 66 | <term><parameter>--with-...</parameter></term>
|
---|
| 67 | <listitem>
|
---|
[d35b7f3] | 68 | <para>These three parameters are used to set some default programs.
|
---|
| 69 | <command>lynx</command> is a text-based web browser (see
|
---|
[862c5ae] | 70 | BLFS for installation instructions), <command>vgrind</command>
|
---|
| 71 | converts program sources to Groff input, and <command>grap</command>
|
---|
| 72 | is useful for typesetting graphs in Groff documents. The
|
---|
| 73 | <command>vgrind</command> and <command>grap</command> programs are
|
---|
| 74 | not normally needed for viewing manual pages. They are not part of
|
---|
| 75 | LFS or BLFS, but you should be able to install them yourself after
|
---|
| 76 | finishing LFS if you wish to do so.</para>
|
---|
[f2f15e5] | 77 | </listitem>
|
---|
| 78 | </varlistentry>
|
---|
| 79 |
|
---|
[2fa922f] | 80 | </variablelist>
|
---|
| 81 |
|
---|
| 82 | <para>Compile the package:</para>
|
---|
[fa21b3d] | 83 |
|
---|
[0445a3d] | 84 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[fa21b3d] | 85 |
|
---|
[9f405998] | 86 | <para>To test the results, issue:</para>
|
---|
| 87 |
|
---|
[3fffa40] | 88 | <screen><userinput remap="test">make check</userinput></screen>
|
---|
[fffff97] | 89 |
|
---|
[2fa922f] | 90 | <para>Install the package:</para>
|
---|
[fa21b3d] | 91 |
|
---|
[0445a3d] | 92 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
[fa21b3d] | 93 |
|
---|
[2fa922f] | 94 | </sect2>
|
---|
| 95 |
|
---|
| 96 | <sect2>
|
---|
| 97 | <title>Non-English Manual Pages in LFS</title>
|
---|
[bc81164] | 98 |
|
---|
[9f405998] | 99 | <para>The following table shows the character set that Man-DB assumes
|
---|
| 100 | manual pages installed under
|
---|
| 101 | <filename class="directory">/usr/share/man/<ll></filename> will be
|
---|
| 102 | encoded with. In addition to this, Man-DB correctly determines if manual
|
---|
| 103 | pages installed in that directory are UTF-8 encoded.</para>
|
---|
| 104 |
|
---|
[745c588] | 105 | <!-- Origin: man-db-2.5.9/lib/encodings.c -->
|
---|
[2fa922f] | 106 | <table>
|
---|
[4c0c012] | 107 | <title>Expected character encoding of legacy 8-bit manual pages</title>
|
---|
| 108 | <?dbfo table-width="6in" ?>
|
---|
[2fa922f] | 109 |
|
---|
[4c0c012] | 110 | <tgroup cols="4">
|
---|
[1652151] | 111 |
|
---|
[7c6314d4] | 112 | <colspec colnum="1" colwidth="1.5in"/>
|
---|
| 113 | <colspec colnum="2" colwidth="1in"/>
|
---|
[4c0c012] | 114 | <colspec colnum="3" colwidth="2.5in"/>
|
---|
| 115 | <colspec colnum="4" colwidth="1in"/>
|
---|
[2fa922f] | 116 |
|
---|
| 117 | <thead>
|
---|
| 118 | <row>
|
---|
| 119 | <entry>Language (code)</entry>
|
---|
| 120 | <entry>Encoding</entry>
|
---|
[4c0c012] | 121 | <entry>Language (code)</entry>
|
---|
| 122 | <entry>Encoding</entry>
|
---|
[2fa922f] | 123 | </row>
|
---|
| 124 | </thead>
|
---|
| 125 |
|
---|
| 126 | <tbody>
|
---|
| 127 | <row>
|
---|
| 128 | <entry>Danish (da)</entry>
|
---|
| 129 | <entry>ISO-8859-1</entry>
|
---|
[e8d5e91] | 130 | <entry>Croatian (hr)</entry>
|
---|
[2b45119] | 131 | <entry>ISO-8859-2</entry>
|
---|
[2fa922f] | 132 | </row>
|
---|
| 133 | <row>
|
---|
| 134 | <entry>German (de)</entry>
|
---|
| 135 | <entry>ISO-8859-1</entry>
|
---|
[9f405998] | 136 | <entry>Hungarian (hu)</entry>
|
---|
[4c0c012] | 137 | <entry>ISO-8859-2</entry>
|
---|
[2fa922f] | 138 | </row>
|
---|
| 139 | <row>
|
---|
| 140 | <entry>English (en)</entry>
|
---|
| 141 | <entry>ISO-8859-1</entry>
|
---|
[9f405998] | 142 | <entry>Japanese (ja)</entry>
|
---|
| 143 | <entry>EUC-JP</entry>
|
---|
[2fa922f] | 144 | </row>
|
---|
| 145 | <row>
|
---|
| 146 | <entry>Spanish (es)</entry>
|
---|
| 147 | <entry>ISO-8859-1</entry>
|
---|
[9f405998] | 148 | <entry>Korean (ko)</entry>
|
---|
| 149 | <entry>EUC-KR</entry>
|
---|
| 150 | </row>
|
---|
| 151 | <row>
|
---|
| 152 | <entry>Estonian (et)</entry>
|
---|
| 153 | <entry>ISO-8859-1</entry>
|
---|
| 154 | <entry>Lithuanian (lt)</entry>
|
---|
| 155 | <entry>ISO-8859-13</entry>
|
---|
[2fa922f] | 156 | </row>
|
---|
| 157 | <row>
|
---|
| 158 | <entry>Finnish (fi)</entry>
|
---|
| 159 | <entry>ISO-8859-1</entry>
|
---|
[9f405998] | 160 | <entry>Latvian (lv)</entry>
|
---|
| 161 | <entry>ISO-8859-13</entry>
|
---|
[2fa922f] | 162 | </row>
|
---|
| 163 | <row>
|
---|
| 164 | <entry>French (fr)</entry>
|
---|
| 165 | <entry>ISO-8859-1</entry>
|
---|
[9f405998] | 166 | <entry>Macedonian (mk)</entry>
|
---|
| 167 | <entry>ISO-8859-5</entry>
|
---|
[2fa922f] | 168 | </row>
|
---|
| 169 | <row>
|
---|
| 170 | <entry>Irish (ga)</entry>
|
---|
| 171 | <entry>ISO-8859-1</entry>
|
---|
[4c0c012] | 172 | <entry>Polish (pl)</entry>
|
---|
| 173 | <entry>ISO-8859-2</entry>
|
---|
[2fa922f] | 174 | </row>
|
---|
| 175 | <row>
|
---|
| 176 | <entry>Galician (gl)</entry>
|
---|
| 177 | <entry>ISO-8859-1</entry>
|
---|
[9f405998] | 178 | <entry>Romanian (ro)</entry>
|
---|
| 179 | <entry>ISO-8859-2</entry>
|
---|
| 180 | </row>
|
---|
| 181 | <row>
|
---|
| 182 | <entry>Indonesian (id)</entry>
|
---|
| 183 | <entry>ISO-8859-1</entry>
|
---|
[4c0c012] | 184 | <entry>Russian (ru)</entry>
|
---|
| 185 | <entry>KOI8-R</entry>
|
---|
[2fa922f] | 186 | </row>
|
---|
| 187 | <row>
|
---|
[9f405998] | 188 | <entry>Icelandic (is)</entry>
|
---|
[2fa922f] | 189 | <entry>ISO-8859-1</entry>
|
---|
[4c0c012] | 190 | <entry>Slovak (sk)</entry>
|
---|
| 191 | <entry>ISO-8859-2</entry>
|
---|
[2fa922f] | 192 | </row>
|
---|
| 193 | <row>
|
---|
[9f405998] | 194 | <entry>Italian (it)</entry>
|
---|
[2fa922f] | 195 | <entry>ISO-8859-1</entry>
|
---|
[9f405998] | 196 | <entry>Slovenian (sl)</entry>
|
---|
| 197 | <entry>ISO-8859-2</entry>
|
---|
[2fa922f] | 198 | </row>
|
---|
| 199 | <row>
|
---|
[9f405998] | 200 | <entry>Norwegian Bokmal (nb)</entry>
|
---|
[2fa922f] | 201 | <entry>ISO-8859-1</entry>
|
---|
[9f405998] | 202 | <entry>Serbian Latin (sr@latin)</entry>
|
---|
| 203 | <entry>ISO-8859-2</entry>
|
---|
[2fa922f] | 204 | </row>
|
---|
| 205 | <row>
|
---|
| 206 | <entry>Dutch (nl)</entry>
|
---|
| 207 | <entry>ISO-8859-1</entry>
|
---|
[9f405998] | 208 | <entry>Serbian (sr)</entry>
|
---|
| 209 | <entry>ISO-8859-5</entry>
|
---|
| 210 | </row>
|
---|
| 211 | <row>
|
---|
| 212 | <entry>Norwegian Nynorsk (nn)</entry>
|
---|
| 213 | <entry>ISO-8859-1</entry>
|
---|
| 214 | <entry>Turkish (tr)</entry>
|
---|
| 215 | <entry>ISO-8859-9</entry>
|
---|
[2fa922f] | 216 | </row>
|
---|
| 217 | <row>
|
---|
| 218 | <entry>Norwegian (no)</entry>
|
---|
| 219 | <entry>ISO-8859-1</entry>
|
---|
[9f405998] | 220 | <entry>Ukrainian (uk)</entry>
|
---|
| 221 | <entry>KOI8-U</entry>
|
---|
[2fa922f] | 222 | </row>
|
---|
| 223 | <row>
|
---|
| 224 | <entry>Portuguese (pt)</entry>
|
---|
| 225 | <entry>ISO-8859-1</entry>
|
---|
[9f405998] | 226 | <entry>Vietnamese (vi)</entry>
|
---|
| 227 | <entry>TCVN5712-1</entry>
|
---|
[2fa922f] | 228 | </row>
|
---|
| 229 | <row>
|
---|
| 230 | <entry>Swedish (sv)</entry>
|
---|
| 231 | <entry>ISO-8859-1</entry>
|
---|
[862c5ae] | 232 | <entry>Simplified Chinese (zh_CN)</entry>
|
---|
| 233 | <entry>GBK</entry>
|
---|
| 234 | </row>
|
---|
| 235 | <row>
|
---|
[9f405998] | 236 | <entry>Belarusian (be)</entry>
|
---|
| 237 | <entry>CP1251</entry>
|
---|
[7f89db8] | 238 | <entry>Simplified Chinese, Singapore (zh_SG)</entry>
|
---|
[862c5ae] | 239 | <entry>GBK</entry>
|
---|
| 240 | </row>
|
---|
| 241 | <row>
|
---|
[9f405998] | 242 | <entry>Bulgarian (bg)</entry>
|
---|
| 243 | <entry>CP1251</entry>
|
---|
| 244 | <entry>Traditional Chinese, Hong Kong (zh_HK)</entry>
|
---|
| 245 | <entry>BIG5HKSCS</entry>
|
---|
| 246 | </row>
|
---|
| 247 | <row>
|
---|
| 248 | <entry>Czech (cs)</entry>
|
---|
| 249 | <entry>ISO-8859-2</entry>
|
---|
[862c5ae] | 250 | <entry>Traditional Chinese (zh_TW)</entry>
|
---|
| 251 | <entry>BIG5</entry>
|
---|
| 252 | </row>
|
---|
| 253 | <row>
|
---|
[9f405998] | 254 | <entry>Greek (el)</entry>
|
---|
| 255 | <entry>ISO-8859-7</entry>
|
---|
| 256 | <entry></entry>
|
---|
| 257 | <entry></entry>
|
---|
| 258 | </row>
|
---|
| 259 |
|
---|
[2fa922f] | 260 | </tbody>
|
---|
| 261 |
|
---|
| 262 | </tgroup>
|
---|
| 263 |
|
---|
| 264 | </table>
|
---|
| 265 |
|
---|
| 266 | <note>
|
---|
[9f405998] | 267 | <para>Manual pages in languages not in the list are not supported.</para>
|
---|
[2fa922f] | 268 | </note>
|
---|
| 269 |
|
---|
| 270 | </sect2>
|
---|
| 271 |
|
---|
| 272 | <sect2 id="contents-man-db" role="content">
|
---|
| 273 | <title>Contents of Man-DB</title>
|
---|
| 274 |
|
---|
| 275 | <segmentedlist>
|
---|
| 276 | <segtitle>Installed programs</segtitle>
|
---|
[ca101ad] | 277 | <segtitle>Installed libraries</segtitle>
|
---|
[fe05b08] | 278 | <segtitle>Installed directories</segtitle>
|
---|
[2fa922f] | 279 |
|
---|
| 280 | <seglistitem>
|
---|
[8f85d251] | 281 | <seg>accessdb, apropos (link to whatis), catman, lexgrog, man, mandb,
|
---|
[c1b231c9] | 282 | manpath, whatis, and zsoelim</seg>
|
---|
[ca101ad] | 283 | <seg>libman.so, libmandb.so</seg>
|
---|
[4e8a532] | 284 | <seg>/usr/lib/man-db, /usr/libexec/man-db, /usr/share/doc/man-db-&man-db-version;</seg>
|
---|
[2fa922f] | 285 | </seglistitem>
|
---|
| 286 | </segmentedlist>
|
---|
| 287 |
|
---|
| 288 | <variablelist>
|
---|
| 289 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 290 | <?dbfo list-presentation="list"?>
|
---|
| 291 | <?dbhtml list-presentation="table"?>
|
---|
| 292 |
|
---|
[90aae6b] | 293 | <varlistentry id="accessdb">
|
---|
[2fa922f] | 294 | <term><command>accessdb</command></term>
|
---|
| 295 | <listitem>
|
---|
| 296 | <para>Dumps the <command>whatis</command> database contents in
|
---|
| 297 | human-readable form</para>
|
---|
| 298 | <indexterm zone="ch-system-man-db accessdb">
|
---|
| 299 | <primary sortas="b-accessdb">accessdb</primary>
|
---|
| 300 | </indexterm>
|
---|
| 301 | </listitem>
|
---|
[90aae6b] | 302 | </varlistentry>
|
---|
[2fa922f] | 303 |
|
---|
| 304 | <varlistentry id="apropos">
|
---|
| 305 | <term><command>apropos</command></term>
|
---|
| 306 | <listitem>
|
---|
| 307 | <para>Searches the <command>whatis</command> database and displays
|
---|
| 308 | the short descriptions of system commands that contain a given
|
---|
| 309 | string</para>
|
---|
| 310 | <indexterm zone="ch-system-man-db apropos">
|
---|
| 311 | <primary sortas="b-apropos">apropos</primary>
|
---|
| 312 | </indexterm>
|
---|
| 313 | </listitem>
|
---|
| 314 | </varlistentry>
|
---|
| 315 |
|
---|
| 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 |
|
---|
| 326 | <varlistentry id="lexgrog">
|
---|
| 327 | <term><command>lexgrog</command></term>
|
---|
| 328 | <listitem>
|
---|
| 329 | <para>Displays one-line summary information about a given manual
|
---|
| 330 | page</para>
|
---|
| 331 | <indexterm zone="ch-system-man-db lexgrog">
|
---|
| 332 | <primary sortas="b-lexgrog">lexgrog</primary>
|
---|
| 333 | </indexterm>
|
---|
| 334 | </listitem>
|
---|
| 335 | </varlistentry>
|
---|
| 336 |
|
---|
| 337 | <varlistentry id="man">
|
---|
| 338 | <term><command>man</command></term>
|
---|
| 339 | <listitem>
|
---|
| 340 | <para>Formats and displays the requested manual page</para>
|
---|
| 341 | <indexterm zone="ch-system-man-db man">
|
---|
| 342 | <primary sortas="b-man">man</primary>
|
---|
| 343 | </indexterm>
|
---|
| 344 | </listitem>
|
---|
| 345 | </varlistentry>
|
---|
| 346 |
|
---|
| 347 | <varlistentry id="mandb">
|
---|
| 348 | <term><command>mandb</command></term>
|
---|
| 349 | <listitem>
|
---|
| 350 | <para>Creates or updates the <command>whatis</command> database</para>
|
---|
| 351 | <indexterm zone="ch-system-man-db mandb">
|
---|
| 352 | <primary sortas="b-mandb">mandb</primary>
|
---|
| 353 | </indexterm>
|
---|
[8bc46a5] | 354 | </listitem>
|
---|
| 355 | </varlistentry>
|
---|
| 356 |
|
---|
| 357 | <varlistentry id="manpath">
|
---|
| 358 | <term><command>manpath</command></term>
|
---|
| 359 | <listitem>
|
---|
| 360 | <para>Displays the contents of $MANPATH or (if $MANPATH is not set)
|
---|
| 361 | a suitable search path based on the settings in man.conf and the
|
---|
| 362 | user's environment</para>
|
---|
| 363 | <indexterm zone="ch-system-man-db manpath">
|
---|
| 364 | <primary sortas="b-manpath">manpath</primary>
|
---|
| 365 | </indexterm>
|
---|
[2fa922f] | 366 | </listitem>
|
---|
| 367 | </varlistentry>
|
---|
| 368 |
|
---|
| 369 | <varlistentry id="whatis">
|
---|
| 370 | <term><command>whatis</command></term>
|
---|
| 371 | <listitem>
|
---|
| 372 | <para>Searches the <command>whatis</command> database and displays
|
---|
| 373 | the short descriptions of system commands that contain the given
|
---|
| 374 | keyword as a separate word</para>
|
---|
| 375 | <indexterm zone="ch-system-man-db whatis">
|
---|
| 376 | <primary sortas="b-whatis">whatis</primary>
|
---|
| 377 | </indexterm>
|
---|
| 378 | </listitem>
|
---|
| 379 | </varlistentry>
|
---|
| 380 |
|
---|
[c1b231c9] | 381 | <varlistentry id="zsoelim">
|
---|
| 382 | <term><command>zsoelim</command></term>
|
---|
| 383 | <listitem>
|
---|
| 384 | <para>Reads files and replaces lines of the form <emphasis>.so
|
---|
| 385 | file</emphasis> by the contents of the mentioned
|
---|
| 386 | <emphasis>file</emphasis></para>
|
---|
| 387 | <indexterm zone="ch-system-man-db zsoelim">
|
---|
| 388 | <primary sortas="b-zsoelim">zsoelim</primary>
|
---|
| 389 | </indexterm>
|
---|
| 390 | </listitem>
|
---|
| 391 | </varlistentry>
|
---|
| 392 |
|
---|
[ca101ad] | 393 | <varlistentry id="libman">
|
---|
| 394 | <term><filename class="libraryfile">libman</filename></term>
|
---|
| 395 | <listitem>
|
---|
| 396 | <para>Contains run-time support for <command>man</command></para>
|
---|
| 397 | <indexterm zone="ch-system-man-db libman">
|
---|
| 398 | <primary sortas="c-libman">libman</primary>
|
---|
| 399 | </indexterm>
|
---|
| 400 | </listitem>
|
---|
| 401 | </varlistentry>
|
---|
| 402 |
|
---|
| 403 | <varlistentry id="libmandb">
|
---|
| 404 | <term><filename class="libraryfile">libmandb</filename></term>
|
---|
| 405 | <listitem>
|
---|
| 406 | <para>Contains run-time support for <command>man</command></para>
|
---|
| 407 | <indexterm zone="ch-system-man-db libmandb">
|
---|
| 408 | <primary sortas="c-libmandb">libmandb</primary>
|
---|
| 409 | </indexterm>
|
---|
| 410 | </listitem>
|
---|
| 411 | </varlistentry>
|
---|
| 412 |
|
---|
[2fa922f] | 413 | </variablelist>
|
---|
| 414 |
|
---|
| 415 | </sect2>
|
---|
[fa21b3d] | 416 |
|
---|
| 417 | </sect1>
|
---|