source: chapter06/man-db.xml@ daed5a3

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 12.2 12.2-rc1 7.0 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/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since daed5a3 was 3fffa40, checked in by Matthew Burgess <matthew@…>, 13 years ago

Remove warning about Man-DB's tests. They don't fail anymore.

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

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