|
@@ -23,8 +23,7 @@
|
|
|
<sect2 role="package">
|
|
|
<title/>
|
|
|
|
|
|
- <para>The Man-DB package contains programs for finding and viewing man
|
|
|
- pages.</para>
|
|
|
+ <para>Man-DB 软件包包含查找和阅读 man 页面的程序。</para>
|
|
|
|
|
|
<segmentedlist>
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
@@ -39,7 +38,7 @@
|
|
|
</sect2>
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
- <title>安装Man-DB</title>
|
|
|
+ <title>安装 Man-DB</title>
|
|
|
|
|
|
<para>准备安装 Man-DB:</para>
|
|
|
|
|
@@ -63,36 +62,34 @@
|
|
|
--with-systemdtmpfilesdir=</userinput></screen>
|
|
|
|
|
|
<variablelist>
|
|
|
- <title>The meaning of the configure options:</title>
|
|
|
+ <title>配置选项的含义:</title>
|
|
|
|
|
|
<varlistentry>
|
|
|
<term><parameter>--disable-setuid</parameter></term>
|
|
|
<listitem>
|
|
|
- <para>This disables making the <command>man</command> program setuid
|
|
|
- to user <systemitem class="username">man</systemitem>.</para>
|
|
|
+ <para>该选项防止将 <command>man</command> 程序 setuid
|
|
|
+ 到用户 <systemitem class="username">man</systemitem>。</para>
|
|
|
</listitem>
|
|
|
</varlistentry>
|
|
|
|
|
|
<varlistentry>
|
|
|
<term><parameter>--enable-cache-owner=bin</parameter></term>
|
|
|
<listitem>
|
|
|
- <para>This makes the system-wide cache files be owned by user
|
|
|
- bin.</para>
|
|
|
+ <para>该选项使得系统范围的缓存文件所有者为用户 bin。</para>
|
|
|
</listitem>
|
|
|
</varlistentry>
|
|
|
|
|
|
<varlistentry>
|
|
|
<term><parameter>--with-...</parameter></term>
|
|
|
<listitem>
|
|
|
- <para>These three parameters are used to set some default programs.
|
|
|
- <command>lynx</command> is a text-based web browser (see
|
|
|
- BLFS for installation instructions), <command>vgrind</command>
|
|
|
- converts program sources to Groff input, and <command>grap</command>
|
|
|
- is useful for typesetting graphs in Groff documents. The
|
|
|
- <command>vgrind</command> and <command>grap</command> programs are
|
|
|
- not normally needed for viewing manual pages. They are not part of
|
|
|
- LFS or BLFS, but you should be able to install them yourself after
|
|
|
- finishing LFS if you wish to do so.</para>
|
|
|
+ <para>这三个选项设定一些默认程序。
|
|
|
+ <command>lynx</command> 是基于文本的 web 浏览器 (安装过程可在
|
|
|
+ BLFS 中查阅), <command>vgrind</command>
|
|
|
+ 将程序源代码转换成 Groff 输入,<command>grap</command>
|
|
|
+ 用于在 Groff 文档中画图。
|
|
|
+ <command>vgrind</command> 和 <command>grap</command>
|
|
|
+ 在阅读 man 手册页面时一般用不到,它们不是 LFS 或 BLFS 的一部分,
|
|
|
+ 但如果需要的话,您应该可以在完成 LFS 的构建后自行安装它们。</para>
|
|
|
</listitem>
|
|
|
</varlistentry>
|
|
|
|
|
@@ -110,24 +107,23 @@
|
|
|
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
|
|
|
|
|
- <para revision="systemd">Remove a reference to a non-existent user:</para>
|
|
|
+ <para revision="systemd">删除一个对不存在用户的引用:</para>
|
|
|
|
|
|
<screen revision="systemd"><userinput remap="install">sed -i "s:man man:root root:g" /usr/lib/tmpfiles.d/man-db.conf</userinput></screen>
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
<sect2>
|
|
|
- <title>Non-English Manual Pages in LFS</title>
|
|
|
+ <title>LFS 中的非英文 man 手册页面</title>
|
|
|
|
|
|
- <para>The following table shows the character set that Man-DB assumes
|
|
|
- manual pages installed under
|
|
|
- <filename class="directory">/usr/share/man/<ll></filename> will be
|
|
|
- encoded with. In addition to this, Man-DB correctly determines if manual
|
|
|
- pages installed in that directory are UTF-8 encoded.</para>
|
|
|
+ <para>下表展示了 Man-DB 假定的安装在
|
|
|
+ <filename class="directory">/usr/share/man/<ll></filename>
|
|
|
+ 中的 man 手册页面的编码字符集。
|
|
|
+ 另外,Man-DB 还能正确地判断出这些页面是否为 UTF-8 编码。</para>
|
|
|
|
|
|
<!-- Origin: man-db-2.5.9/lib/encodings.c -->
|
|
|
<table>
|
|
|
-<title>Expected character encoding of legacy 8-bit manual pages</title>
|
|
|
+<title>传统 8 位 man 手册页面的预期字符编码</title>
|
|
|
<?dbfo table-width="6in" ?>
|
|
|
|
|
|
<tgroup cols="4">
|
|
@@ -139,142 +135,142 @@
|
|
|
|
|
|
<thead>
|
|
|
<row>
|
|
|
- <entry>Language (code)</entry>
|
|
|
- <entry>Encoding</entry>
|
|
|
- <entry>Language (code)</entry>
|
|
|
- <entry>Encoding</entry>
|
|
|
+ <entry>语言 (代号)</entry>
|
|
|
+ <entry>编码</entry>
|
|
|
+ <entry>语言 (代号)</entry>
|
|
|
+ <entry>编码</entry>
|
|
|
</row>
|
|
|
</thead>
|
|
|
|
|
|
<tbody>
|
|
|
<row>
|
|
|
- <entry>Danish (da)</entry>
|
|
|
+ <entry>丹麦语 (da)</entry>
|
|
|
<entry>ISO-8859-1</entry>
|
|
|
- <entry>Croatian (hr)</entry>
|
|
|
+ <entry>克罗地亚语 (hr)</entry>
|
|
|
<entry>ISO-8859-2</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry>German (de)</entry>
|
|
|
+ <entry>德语 (de)</entry>
|
|
|
<entry>ISO-8859-1</entry>
|
|
|
- <entry>Hungarian (hu)</entry>
|
|
|
+ <entry>匈牙利语 (hu)</entry>
|
|
|
<entry>ISO-8859-2</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry>English (en)</entry>
|
|
|
+ <entry>英语 (en)</entry>
|
|
|
<entry>ISO-8859-1</entry>
|
|
|
- <entry>Japanese (ja)</entry>
|
|
|
+ <entry>日语 (ja)</entry>
|
|
|
<entry>EUC-JP</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry>Spanish (es)</entry>
|
|
|
+ <entry>西班牙语 (es)</entry>
|
|
|
<entry>ISO-8859-1</entry>
|
|
|
- <entry>Korean (ko)</entry>
|
|
|
+ <entry>朝鲜语 (ko)</entry>
|
|
|
<entry>EUC-KR</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry>Estonian (et)</entry>
|
|
|
+ <entry>爱沙尼亚语 (et)</entry>
|
|
|
<entry>ISO-8859-1</entry>
|
|
|
- <entry>Lithuanian (lt)</entry>
|
|
|
+ <entry>立陶宛语 (lt)</entry>
|
|
|
<entry>ISO-8859-13</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry>Finnish (fi)</entry>
|
|
|
+ <entry>芬兰语 (fi)</entry>
|
|
|
<entry>ISO-8859-1</entry>
|
|
|
- <entry>Latvian (lv)</entry>
|
|
|
+ <entry>拉脱维亚语 (lv)</entry>
|
|
|
<entry>ISO-8859-13</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry>French (fr)</entry>
|
|
|
+ <entry>法语 (fr)</entry>
|
|
|
<entry>ISO-8859-1</entry>
|
|
|
- <entry>Macedonian (mk)</entry>
|
|
|
+ <entry>马其顿语 (mk)</entry>
|
|
|
<entry>ISO-8859-5</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry>Irish (ga)</entry>
|
|
|
+ <entry>爱尔兰语 (ga)</entry>
|
|
|
<entry>ISO-8859-1</entry>
|
|
|
- <entry>Polish (pl)</entry>
|
|
|
+ <entry>波兰语 (pl)</entry>
|
|
|
<entry>ISO-8859-2</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry>Galician (gl)</entry>
|
|
|
+ <entry>加利西亚语 (gl)</entry>
|
|
|
<entry>ISO-8859-1</entry>
|
|
|
- <entry>Romanian (ro)</entry>
|
|
|
+ <entry>罗马尼亚语 (ro)</entry>
|
|
|
<entry>ISO-8859-2</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry>Indonesian (id)</entry>
|
|
|
+ <entry>印尼语 (id)</entry>
|
|
|
<entry>ISO-8859-1</entry>
|
|
|
- <entry>Russian (ru)</entry>
|
|
|
+ <entry>俄语 (ru)</entry>
|
|
|
<entry>KOI8-R</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry>Icelandic (is)</entry>
|
|
|
+ <entry>冰岛语 (is)</entry>
|
|
|
<entry>ISO-8859-1</entry>
|
|
|
- <entry>Slovak (sk)</entry>
|
|
|
+ <entry>斯洛伐克语 (sk)</entry>
|
|
|
<entry>ISO-8859-2</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry>Italian (it)</entry>
|
|
|
+ <entry>意大利语 (it)</entry>
|
|
|
<entry>ISO-8859-1</entry>
|
|
|
- <entry>Slovenian (sl)</entry>
|
|
|
+ <entry>斯洛文尼亚语 (sl)</entry>
|
|
|
<entry>ISO-8859-2</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry>Norwegian Bokmal (nb)</entry>
|
|
|
+ <entry>挪威语(波克默尔语) (nb)</entry>
|
|
|
<entry>ISO-8859-1</entry>
|
|
|
- <entry>Serbian Latin (sr@latin)</entry>
|
|
|
+ <entry>塞尔维亚语(拉丁文) (sr@latin)</entry>
|
|
|
<entry>ISO-8859-2</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry>Dutch (nl)</entry>
|
|
|
+ <entry>荷兰语 (nl)</entry>
|
|
|
<entry>ISO-8859-1</entry>
|
|
|
- <entry>Serbian (sr)</entry>
|
|
|
+ <entry>塞尔维亚语 (sr)</entry>
|
|
|
<entry>ISO-8859-5</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry>Norwegian Nynorsk (nn)</entry>
|
|
|
+ <entry>新挪威语 (nn)</entry>
|
|
|
<entry>ISO-8859-1</entry>
|
|
|
- <entry>Turkish (tr)</entry>
|
|
|
+ <entry>土耳其语 (tr)</entry>
|
|
|
<entry>ISO-8859-9</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry>Norwegian (no)</entry>
|
|
|
+ <entry>挪威语 (no)</entry>
|
|
|
<entry>ISO-8859-1</entry>
|
|
|
- <entry>Ukrainian (uk)</entry>
|
|
|
+ <entry>乌克兰语 (uk)</entry>
|
|
|
<entry>KOI8-U</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry>Portuguese (pt)</entry>
|
|
|
+ <entry>葡萄牙语 (pt)</entry>
|
|
|
<entry>ISO-8859-1</entry>
|
|
|
- <entry>Vietnamese (vi)</entry>
|
|
|
+ <entry>越南语 (vi)</entry>
|
|
|
<entry>TCVN5712-1</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry>Swedish (sv)</entry>
|
|
|
+ <entry>瑞典语 (sv)</entry>
|
|
|
<entry>ISO-8859-1</entry>
|
|
|
- <entry>Simplified Chinese (zh_CN)</entry>
|
|
|
+ <entry>简体中文 (zh_CN)</entry>
|
|
|
<entry>GBK</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry>Belarusian (be)</entry>
|
|
|
+ <entry>白罗斯语 (be)</entry>
|
|
|
<entry>CP1251</entry>
|
|
|
- <entry>Simplified Chinese, Singapore (zh_SG)</entry>
|
|
|
+ <entry>简体中文,新加坡 (zh_SG)</entry>
|
|
|
<entry>GBK</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry>Bulgarian (bg)</entry>
|
|
|
+ <entry>保加利亚语 (bg)</entry>
|
|
|
<entry>CP1251</entry>
|
|
|
- <entry>Traditional Chinese, Hong Kong (zh_HK)</entry>
|
|
|
+ <entry>繁体中文,香港特别行政区 (zh_HK)</entry>
|
|
|
<entry>BIG5HKSCS</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry>Czech (cs)</entry>
|
|
|
+ <entry>捷克语 (cs)</entry>
|
|
|
<entry>ISO-8859-2</entry>
|
|
|
- <entry>Traditional Chinese (zh_TW)</entry>
|
|
|
+ <entry>繁体中文,台湾省 (zh_TW)</entry>
|
|
|
<entry>BIG5</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry>Greek (el)</entry>
|
|
|
+ <entry>希腊文 (el)</entry>
|
|
|
<entry>ISO-8859-7</entry>
|
|
|
<entry></entry>
|
|
|
<entry></entry>
|
|
@@ -287,7 +283,7 @@
|
|
|
</table>
|
|
|
|
|
|
<note>
|
|
|
- <para>Manual pages in languages not in the list are not supported.</para>
|
|
|
+ <para>用该表之外的语言编写的 man 手册页面不被支持。</para>
|
|
|
</note>
|
|
|
|
|
|
</sect2>
|
|
@@ -301,11 +297,11 @@
|
|
|
<segtitle>安装的目录</segtitle>
|
|
|
|
|
|
<seglistitem>
|
|
|
- <seg>accessdb, apropos (link to whatis), catman, lexgrog, man, mandb,
|
|
|
- manpath, and whatis</seg>
|
|
|
- <seg>libman.so and libmandb.so</seg>
|
|
|
+ <seg>accessdb, apropos (到 whatis 的链接), catman, lexgrog, man, mandb,
|
|
|
+ manpath, 以及 whatis</seg>
|
|
|
+ <seg>libman.so 和 libmandb.so</seg>
|
|
|
<seg>/usr/lib/man-db, /usr/lib/tmpfiles.d, /usr/libexec/man-db,
|
|
|
- and /usr/share/doc/man-db-&man-db-version;</seg>
|
|
|
+ 以及 /usr/share/doc/man-db-&man-db-version;</seg>
|
|
|
</seglistitem>
|
|
|
</segmentedlist>
|
|
|
|
|
@@ -317,8 +313,8 @@
|
|
|
<varlistentry id="accessdb">
|
|
|
<term><command>accessdb</command></term>
|
|
|
<listitem>
|
|
|
- <para>Dumps the <command>whatis</command> database contents in
|
|
|
- human-readable form</para>
|
|
|
+ <para>将 <command>whatis</command> 数据库内容转储为人类可读格式
|
|
|
+ </para>
|
|
|
<indexterm zone="ch-system-man-db accessdb">
|
|
|
<primary sortas="b-accessdb">accessdb</primary>
|
|
|
</indexterm>
|
|
@@ -328,9 +324,8 @@
|
|
|
<varlistentry id="apropos">
|
|
|
<term><command>apropos</command></term>
|
|
|
<listitem>
|
|
|
- <para>Searches the <command>whatis</command> database and displays
|
|
|
- the short descriptions of system commands that contain a given
|
|
|
- string</para>
|
|
|
+ <para>搜索 <command>whatis</command> 数据库,
|
|
|
+ 显示包含给定字符串的系统命令的简要描述</para>
|
|
|
<indexterm zone="ch-system-man-db apropos">
|
|
|
<primary sortas="b-apropos">apropos</primary>
|
|
|
</indexterm>
|
|
@@ -340,7 +335,7 @@
|
|
|
<varlistentry id="catman">
|
|
|
<term><command>catman</command></term>
|
|
|
<listitem>
|
|
|
- <para>Creates or updates the pre-formatted manual pages</para>
|
|
|
+ <para>创建或更新预先格式化的 man 手册页面</para>
|
|
|
<indexterm zone="ch-system-man-db catman">
|
|
|
<primary sortas="b-catman">catman</primary>
|
|
|
</indexterm>
|
|
@@ -350,8 +345,7 @@
|
|
|
<varlistentry id="lexgrog">
|
|
|
<term><command>lexgrog</command></term>
|
|
|
<listitem>
|
|
|
- <para>Displays one-line summary information about a given manual
|
|
|
- page</para>
|
|
|
+ <para>显示给定 man 手册页面的单行摘要信息</para>
|
|
|
<indexterm zone="ch-system-man-db lexgrog">
|
|
|
<primary sortas="b-lexgrog">lexgrog</primary>
|
|
|
</indexterm>
|
|
@@ -361,7 +355,7 @@
|
|
|
<varlistentry id="man">
|
|
|
<term><command>man</command></term>
|
|
|
<listitem>
|
|
|
- <para>Formats and displays the requested manual page</para>
|
|
|
+ <para>格式化并显示请求的 man 手册页面</para>
|
|
|
<indexterm zone="ch-system-man-db man">
|
|
|
<primary sortas="b-man">man</primary>
|
|
|
</indexterm>
|
|
@@ -371,7 +365,7 @@
|
|
|
<varlistentry id="mandb">
|
|
|
<term><command>mandb</command></term>
|
|
|
<listitem>
|
|
|
- <para>Creates or updates the <command>whatis</command> database</para>
|
|
|
+ <para>创建或更新 <command>whatis</command> 数据库</para>
|
|
|
<indexterm zone="ch-system-man-db mandb">
|
|
|
<primary sortas="b-mandb">mandb</primary>
|
|
|
</indexterm>
|
|
@@ -381,9 +375,8 @@
|
|
|
<varlistentry id="manpath">
|
|
|
<term><command>manpath</command></term>
|
|
|
<listitem>
|
|
|
- <para>Displays the contents of $MANPATH or (if $MANPATH is not set)
|
|
|
- a suitable search path based on the settings in man.conf and the
|
|
|
- user's environment</para>
|
|
|
+ <para>显示 $MANPATH 的内容,或者(如果 $MATHPATH 未设定)
|
|
|
+ 根据 man.conf 和用户环境确定的合适搜索路径</para>
|
|
|
<indexterm zone="ch-system-man-db manpath">
|
|
|
<primary sortas="b-manpath">manpath</primary>
|
|
|
</indexterm>
|
|
@@ -393,9 +386,8 @@
|
|
|
<varlistentry id="whatis">
|
|
|
<term><command>whatis</command></term>
|
|
|
<listitem>
|
|
|
- <para>Searches the <command>whatis</command> database and displays
|
|
|
- the short descriptions of system commands that contain the given
|
|
|
- keyword as a separate word</para>
|
|
|
+ <para>搜索 <command>whatis</command> 数据库,
|
|
|
+ 显示包含给定关键词的系统命令的简要描述</para>
|
|
|
<indexterm zone="ch-system-man-db whatis">
|
|
|
<primary sortas="b-whatis">whatis</primary>
|
|
|
</indexterm>
|
|
@@ -405,7 +397,7 @@
|
|
|
<varlistentry id="libman">
|
|
|
<term><filename class="libraryfile">libman</filename></term>
|
|
|
<listitem>
|
|
|
- <para>Contains run-time support for <command>man</command></para>
|
|
|
+ <para>包含 <command>man</command> 运行时支持</para>
|
|
|
<indexterm zone="ch-system-man-db libman">
|
|
|
<primary sortas="c-libman">libman</primary>
|
|
|
</indexterm>
|
|
@@ -415,7 +407,7 @@
|
|
|
<varlistentry id="libmandb">
|
|
|
<term><filename class="libraryfile">libmandb</filename></term>
|
|
|
<listitem>
|
|
|
- <para>Contains run-time support for <command>man</command></para>
|
|
|
+ <para>包含 <command>man</command> 运行时支持</para>
|
|
|
<indexterm zone="ch-system-man-db libmandb">
|
|
|
<primary sortas="c-libmandb">libmandb</primary>
|
|
|
</indexterm>
|