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