source: chapter06/man-db.xml@ fe05b08

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

Add installed directories information to
each package. Thanks to Chris Staub for the patch.

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

  • Property mode set to 100644
File size: 12.3 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 --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.7/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-2</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 <segtitle>Installed directories</segtitle>
275
276 <seglistitem>
277 <seg>accessdb, apropos (link to whatis), catman, lexgrog, man, mandb,
278 manpath, whatis, and zsoelim</seg>
279 <seg>/usr/lib/man-db, /usr/share/doc/man-db</seg>
280 </seglistitem>
281 </segmentedlist>
282
283 <variablelist>
284 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
285 <?dbfo list-presentation="list"?>
286 <?dbhtml list-presentation="table"?>
287
288 <varlistentry id="accessdb">
289 <term><command>accessdb</command></term>
290 <listitem>
291 <para>Dumps the <command>whatis</command> database contents in
292 human-readable form</para>
293 <indexterm zone="ch-system-man-db accessdb">
294 <primary sortas="b-accessdb">accessdb</primary>
295 </indexterm>
296 </listitem>
297 </varlistentry>
298
299 <varlistentry id="apropos">
300 <term><command>apropos</command></term>
301 <listitem>
302 <para>Searches the <command>whatis</command> database and displays
303 the short descriptions of system commands that contain a given
304 string</para>
305 <indexterm zone="ch-system-man-db apropos">
306 <primary sortas="b-apropos">apropos</primary>
307 </indexterm>
308 </listitem>
309 </varlistentry>
310
311 <varlistentry id="catman">
312 <term><command>catman</command></term>
313 <listitem>
314 <para>Creates or updates the pre-formatted manual pages</para>
315 <indexterm zone="ch-system-man-db catman">
316 <primary sortas="b-catman">catman</primary>
317 </indexterm>
318 </listitem>
319 </varlistentry>
320
321 <varlistentry id="lexgrog">
322 <term><command>lexgrog</command></term>
323 <listitem>
324 <para>Displays one-line summary information about a given manual
325 page</para>
326 <indexterm zone="ch-system-man-db lexgrog">
327 <primary sortas="b-lexgrog">lexgrog</primary>
328 </indexterm>
329 </listitem>
330 </varlistentry>
331
332 <varlistentry id="man">
333 <term><command>man</command></term>
334 <listitem>
335 <para>Formats and displays the requested manual page</para>
336 <indexterm zone="ch-system-man-db man">
337 <primary sortas="b-man">man</primary>
338 </indexterm>
339 </listitem>
340 </varlistentry>
341
342 <varlistentry id="mandb">
343 <term><command>mandb</command></term>
344 <listitem>
345 <para>Creates or updates the <command>whatis</command> database</para>
346 <indexterm zone="ch-system-man-db mandb">
347 <primary sortas="b-mandb">mandb</primary>
348 </indexterm>
349 </listitem>
350 </varlistentry>
351
352 <varlistentry id="manpath">
353 <term><command>manpath</command></term>
354 <listitem>
355 <para>Displays the contents of $MANPATH or (if $MANPATH is not set)
356 a suitable search path based on the settings in man.conf and the
357 user's environment</para>
358 <indexterm zone="ch-system-man-db manpath">
359 <primary sortas="b-manpath">manpath</primary>
360 </indexterm>
361 </listitem>
362 </varlistentry>
363
364 <varlistentry id="whatis">
365 <term><command>whatis</command></term>
366 <listitem>
367 <para>Searches the <command>whatis</command> database and displays
368 the short descriptions of system commands that contain the given
369 keyword as a separate word</para>
370 <indexterm zone="ch-system-man-db whatis">
371 <primary sortas="b-whatis">whatis</primary>
372 </indexterm>
373 </listitem>
374 </varlistentry>
375
376 <varlistentry id="zsoelim">
377 <term><command>zsoelim</command></term>
378 <listitem>
379 <para>Reads files and replaces lines of the form <emphasis>.so
380 file</emphasis> by the contents of the mentioned
381 <emphasis>file</emphasis></para>
382 <indexterm zone="ch-system-man-db zsoelim">
383 <primary sortas="b-zsoelim">zsoelim</primary>
384 </indexterm>
385 </listitem>
386 </varlistentry>
387
388 </variablelist>
389
390 </sect2>
391
392</sect1>
Note: See TracBrowser for help on using the repository browser.