man.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-man" role="wrap">
  7. <title>Man-&man-version;</title>
  8. <?dbhtml filename="man.html"?>
  9. <indexterm zone="ch-system-man"><primary sortas="a-Man">Man</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Man package contains programs for finding and viewing man pages.</para>
  12. <segmentedlist>
  13. <segtitle>&buildtime;</segtitle>
  14. <segtitle>&diskspace;</segtitle>
  15. <seglistitem><seg>0.1 SBU</seg><seg>1.3 MB</seg></seglistitem>
  16. </segmentedlist>
  17. <segmentedlist>
  18. <segtitle>&dependencies;</segtitle>
  19. <seglistitem><seg>Bash, Binutils, Coreutils, Gawk, GCC,
  20. Glibc, Grep, Make, and Sed</seg></seglistitem>
  21. </segmentedlist>
  22. </sect2>
  23. <sect2 role="installation">
  24. <title>Installation of Man</title>
  25. <para>Two adjustments need to be made to the sources of Man.</para>
  26. <para>The first is a <command>sed</command> substitution to add the
  27. <parameter>-R</parameter> switch to the <envar>PAGER</envar>
  28. variable so that escape sequences are properly handled by Less:</para>
  29. <screen><userinput>sed -i 's@-is@&amp;R@g' configure</userinput></screen>
  30. <para>The second is also a <command>sed</command> substitution to comment out the
  31. <quote>MANPATH /usr/man</quote> line in the
  32. <filename>man.conf</filename> file to prevent redundant results when
  33. using programs such as <command>whatis</command>:</para>
  34. <screen><userinput>sed -i 's@MANPATH./usr/man@#&amp;@g' src/man.conf.in</userinput></screen>
  35. <para>Prepare Man for compilation:</para>
  36. <screen><userinput>./configure -confdir=/etc</userinput></screen>
  37. <para>The meaning of the configure options:</para>
  38. <variablelist>
  39. <varlistentry>
  40. <term><parameter>-confdir=/etc</parameter></term>
  41. <listitem><para>This tells the <command>man</command> program to look for the
  42. <filename>man.conf</filename> configuration file in the <filename
  43. class="directory">/etc</filename> directory.</para></listitem>
  44. </varlistentry>
  45. </variablelist>
  46. <para>Compile the package:</para>
  47. <screen><userinput>make</userinput></screen>
  48. <para>Install the package:</para>
  49. <screen><userinput>make install</userinput></screen>
  50. <note><para>If you will be working on a terminal that does not support text
  51. attributes such as color and bold, you can disable Select Graphic Rendition
  52. (SGR) escape sequences by editing the <filename>man.conf</filename> file and
  53. adding the <parameter>-c</parameter> option to the <envar>NROFF</envar>
  54. variable. If you use multiple terminal types for one computer it may be better
  55. to selectively add the <envar>GROFF_NO_SGR</envar> environment variable for the
  56. terminals that do not support SGR.</para></note>
  57. <para>If the character set of the locale uses 8-bit characters, search for the
  58. line beginning with <quote>NROFF</quote> in <filename>/etc/man.conf</filename>,
  59. and verify that it matches the following:</para>
  60. <screen>NROFF /usr/bin/nroff -Tlatin1 -mandoc</screen>
  61. <para>Note that <quote>latin1</quote> should be used even if it is not
  62. the character set of the locale. The reason is that, according to the
  63. specification, <command>groff</command> has no means of typesetting
  64. characters outside International Organization for Standards
  65. (ISO) 8859-1 without some strange escape codes. When formatting man
  66. pages, <command>groff</command> thinks that they are in the ISO 8859-1
  67. encoding and this <parameter>-Tlatin1</parameter> switch tells
  68. <command>groff</command> to use the same encoding for output. Since
  69. <command>groff</command> does no recoding of input characters, the
  70. formatted result is really in the same encoding as input, and therefore
  71. it is usable as the input for a pager.</para>
  72. <para>This does not solve the problem of a non-working
  73. <command>man2dvi</command> program for localized man pages in
  74. non-ISO 8859-1 locales. Also, it does not work with multibyte
  75. character sets. The first problem does not currently have a solution.
  76. The second issue is not of concern because the LFS installation does
  77. not support multibyte character sets.</para>
  78. <para>Additional information with regards to the compression of
  79. man and info pages can be found in the BLFS book at
  80. <ulink url="&blfs-root;view/cvs/postlfs/compressdoc.html"/>.</para>
  81. </sect2>
  82. <sect2 id="contents-man" role="content"><title>Contents of Man</title>
  83. <segmentedlist>
  84. <segtitle>Installed programs</segtitle>
  85. <seglistitem><seg>apropos, makewhatis, man,
  86. man2dvi, man2html, and whatis</seg></seglistitem>
  87. </segmentedlist>
  88. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  89. <?dbfo list-presentation="list"?>
  90. <?dbhtml list-presentation="table"?>
  91. <varlistentry id="apropos">
  92. <term><command>apropos</command></term>
  93. <listitem>
  94. <para>Searches the <command>whatis</command> database and displays the short descriptions
  95. of system commands that contain a given string</para>
  96. <indexterm zone="ch-system-man apropos"><primary sortas="b-apropos">apropos</primary></indexterm>
  97. </listitem>
  98. </varlistentry>
  99. <varlistentry id="makewhatis">
  100. <term><command>makewhatis</command></term>
  101. <listitem>
  102. <para>Builds the <command>whatis</command> database; it reads all the man pages
  103. in the <envar>MANPATH</envar> and writes the name and a short description in the
  104. <command>whatis</command> database for each page</para>
  105. <indexterm zone="ch-system-man makewhatis"><primary sortas="b-makewhatis">makewhatis</primary></indexterm>
  106. </listitem>
  107. </varlistentry>
  108. <varlistentry id="man">
  109. <term><command>man</command></term>
  110. <listitem>
  111. <para>Formats and displays the requested on-line man page</para>
  112. <indexterm zone="ch-system-man man"><primary sortas="b-man">man</primary></indexterm>
  113. </listitem>
  114. </varlistentry>
  115. <varlistentry id="man2dvi">
  116. <term><command>man2dvi</command></term>
  117. <listitem>
  118. <para>Converts a man page into dvi format</para>
  119. <indexterm zone="ch-system-man man2dvi"><primary sortas="b-man2dvi">man2dvi</primary></indexterm>
  120. </listitem>
  121. </varlistentry>
  122. <varlistentry id="man2html">
  123. <term><command>man2html</command></term>
  124. <listitem>
  125. <para>Converts a man page into HTML</para>
  126. <indexterm zone="ch-system-man man2html"><primary sortas="b-man2html">man2html</primary></indexterm>
  127. </listitem>
  128. </varlistentry>
  129. <varlistentry id="whatis">
  130. <term><command>whatis</command></term>
  131. <listitem>
  132. <para>Searches the <command>whatis</command> database and displays the short descriptions
  133. of system commands that contain the given keyword as a separate
  134. word</para>
  135. <indexterm zone="ch-system-man whatis"><primary sortas="b-whatis">whatis</primary></indexterm>
  136. </listitem>
  137. </varlistentry>
  138. </variablelist>
  139. </sect2>
  140. </sect1>