man.xml 6.1 KB

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