source: chapter06/man-db.xml@ bf10add

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since bf10add was bb0f266, checked in by Bruce Dubbs <bdubbs@…>, 13 years ago

Update to man-pages-3.35.
Add additional environment variable to man-db.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9619 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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