254 lines
9.4 KiB
HTML
254 lines
9.4 KiB
HTML
|
||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
<HTML><HEAD><TITLE>Man page of MANDB</TITLE>
|
||
</HEAD><BODY>
|
||
<H1>MANDB</H1>
|
||
Section: マニュアルページユーティリティー (8)<BR>Updated: 2020-02-25<BR><A HREF="#index">Index</A>
|
||
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
||
|
||
<A NAME="lbAB"> </A>
|
||
<H2>名前</H2>
|
||
|
||
mandb - マニュアルページのインデックスキャッシュを作成、更新する
|
||
<A NAME="lbAC"> </A>
|
||
<H2>書式</H2>
|
||
|
||
<B>mandb</B> [<B>-dqsucpt?V</B>] [<B>-C</B> <I>file</I>] [<I>manpath</I>]
|
||
<BR>
|
||
|
||
<B>mandb</B> [<B>-dqsut</B>] [<B>-C</B> <I>file</I>] <B>-f</B> <I>filename</I> ...
|
||
<A NAME="lbAD"> </A>
|
||
<H2>説明</H2>
|
||
|
||
<B>mandb</B> is used to initialise or manually update <B>index</B> database
|
||
caches. The caches contain information relevant to the current state of the
|
||
manual page system and the information stored within them is used by the
|
||
man-db utilities to enhance their speed and functionality.
|
||
<P>
|
||
When creating or updating an <B>index</B>, <B>mandb</B> will warn of bad ROFF .so
|
||
requests, bogus manual page filenames and manual pages from which the
|
||
<B>whatis</B> cannot be parsed.
|
||
<P>
|
||
Supplying <B>mandb</B> with an optional colon-delimited path will override the
|
||
internal system manual page hierarchy search path, determined from
|
||
information found within the man-db configuration file.
|
||
<A NAME="lbAE"> </A>
|
||
<H2>データベースキャッシュ</H2>
|
||
|
||
<B>mandb</B> は次のうち一つのデータベースタイプをサポートするようにコンパイルされます。
|
||
<P>
|
||
<TABLE>
|
||
<TR VALIGN=top><TD>名前</TD><TD>型</TD><TD>非同期</TD><TD>ファイル名<BR></TD></TR>
|
||
<TR VALIGN=top><TD COLSPAN=4><HR></TD></TR>
|
||
<TR VALIGN=top><TD>Berkeley db</TD><TD>
|
||
二分木
|
||
</TD><TD>○</TD><TD><I>index.bt</I><BR></TD></TR>
|
||
<TR VALIGN=top><TD>GNU gdbm</TD><TD>
|
||
ハッシュ
|
||
</TD><TD>○</TD><TD><I>index.db</I><BR></TD></TR>
|
||
<TR VALIGN=top><TD>UNIX ndbm</TD><TD>
|
||
ハッシュ
|
||
</TD><TD>×</TD><TD><I>index.(dir|pag)</I><BR></TD></TR>
|
||
</TABLE>
|
||
|
||
<P>
|
||
Those database types that support asynchronous updates provide enhanced
|
||
speed at the cost of possible corruption in the event of unusual
|
||
termination. In an unusual case where this has occurred, it may be
|
||
necessary to rerun <B>mandb</B> with the <B>-c</B> option to re-create the
|
||
databases from scratch.
|
||
<A NAME="lbAF"> </A>
|
||
<H2>オプション</H2>
|
||
|
||
<DL COMPACT>
|
||
<DT id="1"><B>-d</B>, <B>--debug</B>
|
||
|
||
|
||
<DD>
|
||
デバッグ情報を表示します。
|
||
<DT id="2"><B>-q</B>, <B>--quiet</B>
|
||
|
||
|
||
<DD>
|
||
警告を表示しません。
|
||
<DT id="3"><B>-s</B>, <B>--no-straycats</B>
|
||
|
||
|
||
<DD>
|
||
Do not spend time looking for or adding information to the databases
|
||
regarding stray cats.
|
||
<DT id="4"><B>-p</B>, <B>--no-purge</B>
|
||
|
||
|
||
<DD>
|
||
削除されたマニュアルページの検索と、それに伴うデータベースのデータ削除を行いません。
|
||
<DT id="5"><B>-c</B>, <B>--create</B>
|
||
|
||
|
||
<DD>
|
||
デフォルトでは、 <B>mandb</B>
|
||
ま作成済みのデータベースを更新します。データベースが存在しない場合、データベースを作成します。このオプションを使用した場合、 <B>mandb</B>
|
||
はこれまでに作成されたデータベースを削除し、新規にデータベースを作成します。また、暗黙的に <B>--no-purge</B>
|
||
が指定されます。これの作業は、データベースが破損したか、新機能によりデータベースのスキーマが変更された場合に必要となります。
|
||
<DT id="6"><B>-u</B>, <B>--user-db</B>
|
||
|
||
|
||
<DD>
|
||
ユーザー用データベースの作成のみ行います。システム用データベースの作成権限があったとしても、システム用データベースの作成は行いません。
|
||
<DT id="7"><B>-t</B>, <B>--test</B>
|
||
|
||
|
||
<DD>
|
||
検索パス内の階層にあるマニュアルページとデータベース情報が正確に合っているかの確認をします。このオプションを使用した場合、 <B>mandb</B>
|
||
は既存のデータベースの変更は行いません。
|
||
<DT id="8"><B>-f</B>, <B>--filename</B>
|
||
|
||
|
||
<DD>
|
||
指定したファイル名に関するデータベースの項目のみ更新します。このオプションは一般的には使用しません。 <B>MAN_DB_UPDATES</B>
|
||
オプションを有効にしてコンパイルした場合、ページが古いかどうかを確認するために、 <B>man</B> の内部で使用されます。このオプションは、暗黙的に、
|
||
<B>-p</B> を有効にし、 <B>-c</B> および <B>-s</B> を無効にします。
|
||
<DT id="9"><B>-C </B><I>file</I>, <B>--config-file=</B><I>file</I><DD>
|
||
デフォルトの <I>~/.manpath</I> ではなく指定したユーザ設定ファイルを使用します。
|
||
<DT id="10"><B>-?</B>, <B>--help</B>
|
||
|
||
|
||
<DD>
|
||
使用法を表示して終了します。
|
||
<DT id="11"><B>--usage</B>
|
||
|
||
|
||
<DD>
|
||
Print a short usage message and exit.
|
||
<DT id="12"><B>-V</B>, <B>--version</B>
|
||
|
||
|
||
<DD>
|
||
バージョン情報を表示して終了します。
|
||
</DL>
|
||
<A NAME="lbAG"> </A>
|
||
<H2>終了ステータス</H2>
|
||
|
||
<DL COMPACT>
|
||
<DT id="13"><B>0</B>
|
||
|
||
|
||
<DD>
|
||
プログラムが正常に実行されました。
|
||
<DT id="14"><B>1</B>
|
||
|
||
|
||
<DD>
|
||
使用法、構文、または設定ファイルのエラーです。
|
||
<DT id="15"><B>2</B>
|
||
|
||
|
||
<DD>
|
||
操作のエラーです。
|
||
<DT id="16"><B>3</B>
|
||
|
||
|
||
<DD>
|
||
子プロセスが異常終了しました。
|
||
</DL>
|
||
<A NAME="lbAH"> </A>
|
||
<H2>診断</H2>
|
||
|
||
データベースを構築中に次の警告メッセージが表示されることがあります。
|
||
<DL COMPACT>
|
||
<DT id="17"><B><filename>: whatis parse for page(sec) failed</B><DD>
|
||
An attempt to extract whatis line(s) from the given <filename>
|
||
failed. This is usually due to a poorly written manual page, but if many
|
||
such messages are emitted it is likely that the system contains non-standard
|
||
manual pages which are incompatible with the man-db whatis parser. See the
|
||
<B>WHATIS PARSING</B> section in <B><A HREF="/cgi-bin/man/man2html?1+lexgrog">lexgrog</A></B>(1) for more information.
|
||
<DT id="18"><B><ファイル名> はシンボリックリンクが切れています</B><DD>
|
||
<ファイル名>が参照しているシンボリックリンクの先が存在しません。通常、<ファイル名>の参照しているリンク先を特定するための追加の診断メッセージが表示されます。
|
||
<DT id="19"><B><ファイル名>: : シンボリックリンクまたは ROFF の `.so' 要求に誤りがあります</B><DD>
|
||
シンボリックリンクの参照先または ROFF のインクルード (.so) 要求に含まれる<ファイル名>が存在しません。
|
||
<DT id="20"><B><ファイル名>: おかしなファイル名を無視しています</B><DD>
|
||
<ファイル名>を持つマニュアルページが有効であるか無効であるかにかかわらず、名前が無効です。これは通常、マニュアルページがセクション拡張名
|
||
<x> であるのに、マニュアルページセクション <y> に配置されている時に発生します。
|
||
<DT id="21"><B><filename_mask>: competing extensions</B><DD>
|
||
The wildcard <filename_mask> is not unique. This is usually caused
|
||
by the existence of both a compressed and uncompressed version of the same
|
||
manual page. All but the most recent are ignored.
|
||
</DL>
|
||
<A NAME="lbAI"> </A>
|
||
<H2>ファイル</H2>
|
||
|
||
<DL COMPACT>
|
||
<DT id="22"><I>/etc/manpath.config</I>
|
||
|
||
|
||
<DD>
|
||
man-db 設定ファイルです。
|
||
<DT id="23"><I>/var/cache/man/index.(bt|db|dir|pag)</I>
|
||
|
||
|
||
<DD>
|
||
FHS 準拠の大域<I>インデックス型</I>データベースキャッシュです。
|
||
</DL>
|
||
<P>
|
||
|
||
過去に使用されていたデータベースキャッシュの位置:
|
||
<DL COMPACT>
|
||
<DT id="24"><I>/usr/man/index.(bt|db|dir|pag)</I>
|
||
|
||
|
||
<DD>
|
||
伝統的な大域<I>インデックス型</I>データベースキャッシュです。
|
||
<DT id="25"><I>/var/catman/index.(bt|db|dir|pag)</I>
|
||
|
||
|
||
<DD>
|
||
代替または FSSTND 準拠の大域<I>インデックス型</I>データベースキャッシュです。
|
||
</DL>
|
||
<A NAME="lbAJ"> </A>
|
||
<H2>関連項目</H2>
|
||
|
||
<B><A HREF="/cgi-bin/man/man2html?1+lexgrog">lexgrog</A></B>(1),
|
||
|
||
|
||
<B><A HREF="/cgi-bin/man/man2html?1+man">man</A></B>(1),
|
||
|
||
|
||
<B><A HREF="/cgi-bin/man/man2html?5+manpath">manpath</A></B>(5),
|
||
|
||
|
||
<B><A HREF="/cgi-bin/man/man2html?8+catman">catman</A></B>(8)
|
||
|
||
|
||
<P>
|
||
|
||
このマニュアルページにあった<B>処理されるデータ</B>節は <B><A HREF="/cgi-bin/man/man2html?1+lexgrog">lexgrog</A></B>(1) ページに移動しました。
|
||
<A NAME="lbAK"> </A>
|
||
<H2>著者</H2>
|
||
|
||
<PRE>
|
||
Wilf. (<A HREF="mailto:G.Wilford@ee.surrey.ac.uk">G.Wilford@ee.surrey.ac.uk</A>).Fabrizio Polacco (<A HREF="mailto:fpolacco@debian.org">fpolacco@debian.org</A>).Colin Watson (<A HREF="mailto:cjwatson@debian.org">cjwatson@debian.org</A>).</PRE>
|
||
|
||
<P>
|
||
|
||
<HR>
|
||
<A NAME="index"> </A><H2>Index</H2>
|
||
<DL>
|
||
<DT id="26"><A HREF="#lbAB">名前</A><DD>
|
||
<DT id="27"><A HREF="#lbAC">書式</A><DD>
|
||
<DT id="28"><A HREF="#lbAD">説明</A><DD>
|
||
<DT id="29"><A HREF="#lbAE">データベースキャッシュ</A><DD>
|
||
<DT id="30"><A HREF="#lbAF">オプション</A><DD>
|
||
<DT id="31"><A HREF="#lbAG">終了ステータス</A><DD>
|
||
<DT id="32"><A HREF="#lbAH">診断</A><DD>
|
||
<DT id="33"><A HREF="#lbAI">ファイル</A><DD>
|
||
<DT id="34"><A HREF="#lbAJ">関連項目</A><DD>
|
||
<DT id="35"><A HREF="#lbAK">著者</A><DD>
|
||
</DL>
|
||
<HR>
|
||
This document was created by
|
||
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
||
using the manual pages.<BR>
|
||
Time: 00:05:06 GMT, March 31, 2021
|
||
</BODY>
|
||
</HTML>
|