man.xml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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>This package does not come with a test suite.</para>
  49. <para>Install the package:</para>
  50. <screen><userinput>make install</userinput></screen>
  51. <note><para>If you will be working on a terminal that does not support text
  52. attributes such as color and bold, you can disable Select Graphic Rendition
  53. (SGR) escape sequences by editing the <filename>man.conf</filename> file and
  54. adding the <parameter>-c</parameter> option to the <envar>NROFF</envar>
  55. variable. If you use multiple terminal types for one computer it may be better
  56. to selectively add the <envar>GROFF_NO_SGR</envar> environment variable for the
  57. terminals that do not support SGR.</para></note>
  58. <para>If the character set of the locale uses 8-bit characters, search for the
  59. line beginning with <quote>NROFF</quote> in <filename>/etc/man.conf</filename>,
  60. and verify that it matches the following:</para>
  61. <screen>NROFF /usr/bin/nroff -Tlatin1 -mandoc</screen>
  62. <para>Note that <quote>latin1</quote> should be used even if it is not
  63. the character set of the locale. The reason is that, according to the
  64. specification, <command>groff</command> has no means of typesetting
  65. characters outside International Organization for Standards
  66. (ISO) 8859-1 without some strange escape codes. When formatting man
  67. pages, <command>groff</command> thinks that they are in the ISO 8859-1
  68. encoding and this <parameter>-Tlatin1</parameter> switch tells
  69. <command>groff</command> to use the same encoding for output. Since
  70. <command>groff</command> does no recoding of input characters, the
  71. formatted result is really in the same encoding as input, and therefore
  72. it is usable as the input for a pager.</para>
  73. <para>This does not solve the problem of a non-working
  74. <command>man2dvi</command> program for localized man pages in
  75. non-ISO 8859-1 locales. Also, it does not work with multibyte
  76. character sets. The first problem does not currently have a solution.
  77. The second issue is not of concern because the LFS installation does
  78. not support multibyte character sets.</para>
  79. <para>Additional information with regards to the compression of
  80. man and info pages can be found in the BLFS book at
  81. <ulink url="&blfs-root;view/cvs/postlfs/compressdoc.html"/>.</para>
  82. </sect2>
  83. <sect2 id="contents-man" role="content"><title>Contents of Man</title>
  84. <segmentedlist>
  85. <segtitle>Installed programs</segtitle>
  86. <seglistitem><seg>apropos, makewhatis, man,
  87. man2dvi, man2html, and whatis</seg></seglistitem>
  88. </segmentedlist>
  89. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  90. <?dbfo list-presentation="list"?>
  91. <?dbhtml list-presentation="table"?>
  92. <varlistentry id="apropos">
  93. <term><command>apropos</command></term>
  94. <listitem>
  95. <para>Searches the <command>whatis</command> database and displays the short descriptions
  96. of system commands that contain a given string</para>
  97. <indexterm zone="ch-system-man apropos"><primary sortas="b-apropos">apropos</primary></indexterm>
  98. </listitem>
  99. </varlistentry>
  100. <varlistentry id="makewhatis">
  101. <term><command>makewhatis</command></term>
  102. <listitem>
  103. <para>Builds the <command>whatis</command> database; it reads all the man pages
  104. in the <envar>MANPATH</envar> and writes the name and a short description in the
  105. <command>whatis</command> database for each page</para>
  106. <indexterm zone="ch-system-man makewhatis"><primary sortas="b-makewhatis">makewhatis</primary></indexterm>
  107. </listitem>
  108. </varlistentry>
  109. <varlistentry id="man">
  110. <term><command>man</command></term>
  111. <listitem>
  112. <para>Formats and displays the requested on-line man page</para>
  113. <indexterm zone="ch-system-man man"><primary sortas="b-man">man</primary></indexterm>
  114. </listitem>
  115. </varlistentry>
  116. <varlistentry id="man2dvi">
  117. <term><command>man2dvi</command></term>
  118. <listitem>
  119. <para>Converts a man page into dvi format</para>
  120. <indexterm zone="ch-system-man man2dvi"><primary sortas="b-man2dvi">man2dvi</primary></indexterm>
  121. </listitem>
  122. </varlistentry>
  123. <varlistentry id="man2html">
  124. <term><command>man2html</command></term>
  125. <listitem>
  126. <para>Converts a man page into HTML</para>
  127. <indexterm zone="ch-system-man man2html"><primary sortas="b-man2html">man2html</primary></indexterm>
  128. </listitem>
  129. </varlistentry>
  130. <varlistentry id="whatis">
  131. <term><command>whatis</command></term>
  132. <listitem>
  133. <para>Searches the <command>whatis</command> database and displays the short descriptions
  134. of system commands that contain the given keyword as a separate
  135. word</para>
  136. <indexterm zone="ch-system-man whatis"><primary sortas="b-whatis">whatis</primary></indexterm>
  137. </listitem>
  138. </varlistentry>
  139. </variablelist>
  140. </sect2>
  141. </sect1>