source: chapter06/man-db.xml@ 450e682e

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.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 450e682e was 450e682e, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Add pkg-config-0.26-internal-glib
Add popt-1.16
Fix problem building perl in some environments

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