source: chapter06/man-db.xml@ 3439f16d

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 3439f16d was 3439f16d, checked in by Matthew Burgess <matthew@…>, 12 years ago

Remove description of PKG_CONFIG variables that are no longer used in Man-DB.

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

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