source: chapter06/man-db.xml@ 2767b17

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 6.6 6.7 6.8 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/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 2767b17 was 2767b17, checked in by Matthew Burgess <matthew@…>, 15 years ago

Upgrade to Man-DB-2.5.6. Fixes #2481.

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

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