source: chapter06/man-db.xml@ 040ecb6

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

Update to man-db-2.7.4.
Update to linux-4.2.3.
Update to tzdata2015g.
Many updates to installed files and directories. Huge thanks to Fernando.

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

  • Property mode set to 100644
File size: 12.9 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 --docdir=/usr/share/doc/man-db-&man-db-version; \
48 --sysconfdir=/etc \
49 --disable-setuid \
50 --with-browser=/usr/bin/lynx \
51 --with-vgrind=/usr/bin/vgrind \
52 --with-grap=/usr/bin/grap</userinput></screen>
53
54 <variablelist>
55 <title>The meaning of the configure options:</title>
56
57 <varlistentry>
58 <term><parameter>--disable-setuid</parameter></term>
59 <listitem>
60 <para>This disables making the <command>man</command> program setuid
61 to user <systemitem class="username">man</systemitem>.</para>
62 </listitem>
63 </varlistentry>
64
65 <varlistentry>
66 <term><parameter>--with-...</parameter></term>
67 <listitem>
68 <para>These three parameters are used to set some default programs.
69 <command>lynx</command> is a text-based web browser (see
70 BLFS for installation instructions), <command>vgrind</command>
71 converts program sources to Groff input, and <command>grap</command>
72 is useful for typesetting graphs in Groff documents. The
73 <command>vgrind</command> and <command>grap</command> programs are
74 not normally needed for viewing manual pages. They are not part of
75 LFS or BLFS, but you should be able to install them yourself after
76 finishing LFS if you wish to do so.</para>
77 </listitem>
78 </varlistentry>
79
80 </variablelist>
81
82 <para>Compile the package:</para>
83
84<screen><userinput remap="make">make</userinput></screen>
85
86 <para>To test the results, issue:</para>
87
88<screen><userinput remap="test">make check</userinput></screen>
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 libraries</segtitle>
278 <segtitle>Installed directories</segtitle>
279
280 <seglistitem>
281 <seg>accessdb, apropos (link to whatis), catman, lexgrog, man, mandb,
282 manpath, and whatis</seg>
283 <seg>libman.so and libmandb.so</seg>
284 <seg>/usr/lib/man-db, /usr/lib/tmpfiles.d, /usr/libexec/man-db,
285 and /usr/share/doc/man-db-&man-db-version;</seg>
286 </seglistitem>
287 </segmentedlist>
288
289 <variablelist>
290 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
291 <?dbfo list-presentation="list"?>
292 <?dbhtml list-presentation="table"?>
293
294 <varlistentry id="accessdb">
295 <term><command>accessdb</command></term>
296 <listitem>
297 <para>Dumps the <command>whatis</command> database contents in
298 human-readable form</para>
299 <indexterm zone="ch-system-man-db accessdb">
300 <primary sortas="b-accessdb">accessdb</primary>
301 </indexterm>
302 </listitem>
303 </varlistentry>
304
305 <varlistentry id="apropos">
306 <term><command>apropos</command></term>
307 <listitem>
308 <para>Searches the <command>whatis</command> database and displays
309 the short descriptions of system commands that contain a given
310 string</para>
311 <indexterm zone="ch-system-man-db apropos">
312 <primary sortas="b-apropos">apropos</primary>
313 </indexterm>
314 </listitem>
315 </varlistentry>
316
317 <varlistentry id="catman">
318 <term><command>catman</command></term>
319 <listitem>
320 <para>Creates or updates the pre-formatted manual pages</para>
321 <indexterm zone="ch-system-man-db catman">
322 <primary sortas="b-catman">catman</primary>
323 </indexterm>
324 </listitem>
325 </varlistentry>
326
327 <varlistentry id="lexgrog">
328 <term><command>lexgrog</command></term>
329 <listitem>
330 <para>Displays one-line summary information about a given manual
331 page</para>
332 <indexterm zone="ch-system-man-db lexgrog">
333 <primary sortas="b-lexgrog">lexgrog</primary>
334 </indexterm>
335 </listitem>
336 </varlistentry>
337
338 <varlistentry id="man">
339 <term><command>man</command></term>
340 <listitem>
341 <para>Formats and displays the requested manual page</para>
342 <indexterm zone="ch-system-man-db man">
343 <primary sortas="b-man">man</primary>
344 </indexterm>
345 </listitem>
346 </varlistentry>
347
348 <varlistentry id="mandb">
349 <term><command>mandb</command></term>
350 <listitem>
351 <para>Creates or updates the <command>whatis</command> database</para>
352 <indexterm zone="ch-system-man-db mandb">
353 <primary sortas="b-mandb">mandb</primary>
354 </indexterm>
355 </listitem>
356 </varlistentry>
357
358 <varlistentry id="manpath">
359 <term><command>manpath</command></term>
360 <listitem>
361 <para>Displays the contents of $MANPATH or (if $MANPATH is not set)
362 a suitable search path based on the settings in man.conf and the
363 user's environment</para>
364 <indexterm zone="ch-system-man-db manpath">
365 <primary sortas="b-manpath">manpath</primary>
366 </indexterm>
367 </listitem>
368 </varlistentry>
369
370 <varlistentry id="whatis">
371 <term><command>whatis</command></term>
372 <listitem>
373 <para>Searches the <command>whatis</command> database and displays
374 the short descriptions of system commands that contain the given
375 keyword as a separate word</para>
376 <indexterm zone="ch-system-man-db whatis">
377 <primary sortas="b-whatis">whatis</primary>
378 </indexterm>
379 </listitem>
380 </varlistentry>
381
382 <varlistentry id="libman">
383 <term><filename class="libraryfile">libman</filename></term>
384 <listitem>
385 <para>Contains run-time support for <command>man</command></para>
386 <indexterm zone="ch-system-man-db libman">
387 <primary sortas="c-libman">libman</primary>
388 </indexterm>
389 </listitem>
390 </varlistentry>
391
392 <varlistentry id="libmandb">
393 <term><filename class="libraryfile">libmandb</filename></term>
394 <listitem>
395 <para>Contains run-time support for <command>man</command></para>
396 <indexterm zone="ch-system-man-db libmandb">
397 <primary sortas="c-libmandb">libmandb</primary>
398 </indexterm>
399 </listitem>
400 </varlistentry>
401
402 </variablelist>
403
404 </sect2>
405
406</sect1>
Note: See TracBrowser for help on using the repository browser.