source: chapter06/man-db.xml@ 90ee3c0

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.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 90ee3c0 was 90ee3c0, checked in by Bruce Dubbs <bdubbs@…>, 13 years ago

Spacing updates for pdf

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