source: chapter06/man-db.xml@ 1310170

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

Add a patch to fix some internal problems
n Man-DB when viewing some pages. Thanks to William Immendorf
for posting the patch.

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