source: chapter06/man-db.xml@ 6ba8e55

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

Upgrade to Glibc-2.16.0. Fixes #3131.

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

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