265 lines
8.0 KiB
HTML
265 lines
8.0 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: Værktøjer til manualsider (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>NAVN</H2>
|
|
|
|
mandb - opret eller opdater manualsidernes indeksmellemlagre
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>mandb</B> [<B>-dqsucpt?V</B>] [<B>-C</B> <I>fil</I>] [<I>manualsti</I>]
|
|
<BR>
|
|
|
|
<B>mandb</B> [<B>-dqsut</B>] [<B>-C</B> <I>fil</I>] <B>-f</B> <I>filnavn</I> ...
|
|
<A NAME="lbAD"> </A>
|
|
<H2>BESKRIVELSE</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>DATABASE-MELLEMLAGRE</H2>
|
|
|
|
<B>mandb</B> kan kompileres med understøttelse for enhver af de følgende
|
|
databasetyper.
|
|
<P>
|
|
<TABLE>
|
|
<TR VALIGN=top><TD>Navn</TD><TD>Type</TD><TD>Asynk.</TD><TD>Filnavn<BR></TD></TR>
|
|
<TR VALIGN=top><TD COLSPAN=4><HR></TD></TR>
|
|
<TR VALIGN=top><TD>Berkeley db</TD><TD>
|
|
Binært træ
|
|
</TD><TD>Ja</TD><TD><I>index.bt</I><BR></TD></TR>
|
|
<TR VALIGN=top><TD>GNU gdbm</TD><TD>
|
|
Hashet
|
|
</TD><TD>Ja</TD><TD><I>index.db</I><BR></TD></TR>
|
|
<TR VALIGN=top><TD>UNIX ndbm</TD><TD>
|
|
Hashet
|
|
</TD><TD>Nej</TD><TD><I>index.(dir|pag)</I><BR></TD></TR>
|
|
</TABLE>
|
|
|
|
<P>
|
|
De databasetyper som understøtter asynkrone opdateringer tilbyder forbedret
|
|
hastighed på bekostning af muligheden for korruption i tilfælde af
|
|
usædvanlig afslutning. I et usædvanligt tilfælde, hvor dette er opstået, kan
|
|
det være nødvendigt at genkøre <B>mandb</B> med tilvalget <B>-c</B> for at
|
|
genskabe databaserne fra bunden af.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>TILVALG</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-d</B>, <B>--debug</B>
|
|
|
|
|
|
<DD>
|
|
Vis fejlsøgningsinformation.
|
|
<DT id="2"><B>-q</B>, <B>--quiet</B>
|
|
|
|
|
|
<DD>
|
|
Lav ingen advarsler.
|
|
<DT id="3"><B>-s</B>, <B>--no-straycats</B>
|
|
|
|
|
|
<DD>
|
|
Brug ikke tid på at kigge efter eller tilføje information til databaserne
|
|
angående vildfarne katalogsider.
|
|
<DT id="4"><B>-p</B>, <B>--no-purge</B>
|
|
|
|
|
|
<DD>
|
|
Brug ikke tid på at kontrollere for slettede manualsider og fjerne dem fra
|
|
databaserne.
|
|
<DT id="5"><B>-c</B>, <B>--create</B>
|
|
|
|
|
|
<DD>
|
|
By default, <B>mandb</B> will try to update any previously created databases.
|
|
If a database does not exist, it will create it. This option forces
|
|
<B>mandb</B> to delete previous databases and re-create them from scratch, and
|
|
implies <B>--no-purge.</B> This may be necessary if a database becomes corrupt
|
|
or if a new database storage scheme is introduced in the future.
|
|
<DT id="6"><B>-u</B>, <B>--user-db</B>
|
|
|
|
|
|
<DD>
|
|
Opret kun brugerdatabaser, selv med skriverettigheder nødvendige for at
|
|
oprette systemdatabaser.
|
|
<DT id="7"><B>-t</B>, <B>--test</B>
|
|
|
|
|
|
<DD>
|
|
Udfør kontrol af korrekthed på manualsider i søgestien for hierarkiet. Med
|
|
dette tilvalg vil <B>mandb</B> ikke ændre eksisterende databaser.
|
|
<DT id="8"><B>-f</B>, <B>--filename</B>
|
|
|
|
|
|
<DD>
|
|
Update only the entries for the given filename. This option is not for
|
|
general use; it is used internally by <B>man</B> when it has been compiled
|
|
with the <B>MAN_DB_UPDATES</B> option and finds that a page is out of date. It
|
|
implies <B>-p</B> and disables <B>-c</B> and <B>-s</B>.
|
|
<DT id="9"><B>-C </B><I>fil</I>, <B>--config-file=</B><I>fil</I><DD>
|
|
Brug denne brugerkonfigurationsfil frem for standarden <I>~/.manpath</I>.
|
|
<DT id="10"><B>-?</B>, <B>--help</B>
|
|
|
|
|
|
<DD>
|
|
Vis brugsbeskeden, afslut så.
|
|
<DT id="11"><B>--usage</B>
|
|
|
|
|
|
<DD>
|
|
Vis en kort hjælpebesked og afslut.
|
|
<DT id="12"><B>-V</B>, <B>--version</B>
|
|
|
|
|
|
<DD>
|
|
Vis versionen og afslut.
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>AFSLUT-STATUS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="13"><B>0</B>
|
|
|
|
|
|
<DD>
|
|
Programkørsel endt uden fejl.
|
|
<DT id="14"><B>1</B>
|
|
|
|
|
|
<DD>
|
|
Brugs- syntaks- eller konfigurationsfilfejl.
|
|
<DT id="15"><B>2</B>
|
|
|
|
|
|
<DD>
|
|
Operationel fejl.
|
|
<DT id="16"><B>3</B>
|
|
|
|
|
|
<DD>
|
|
En underproces mislykkedes.
|
|
</DL>
|
|
<A NAME="lbAH"> </A>
|
|
<H2>DIAGNOSTICS</H2>
|
|
|
|
De følgende advarselsbeskeder kan udelades under opbygning af database.
|
|
<DL COMPACT>
|
|
<DT id="17"><B><filename>: whatis-fortolkning for page(sec) mislykkedes</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><filename>: is a dangling symlink</B><DD>
|
|
<filename> does not exist but is referenced by a symbolic link.
|
|
Further diagnostics are usually emitted to identify the <filename>
|
|
of the offending link.
|
|
<DT id="19"><B><filename>: ugyldig symbolsk henvisning eller ROFF ».so«-forespørgsel</B><DD>
|
|
<filename> er enten en symbolsk henvisning til, eller indeholder en
|
|
ROFF include-forespørgsel til, en ikkeeksisterende fil.
|
|
<DT id="20"><B><filnavn>: ignorerer falske filnavne</B><DD>
|
|
The <filename> may or may not be a valid manual page but its name is
|
|
invalid. This is usually due to a manual page with sectional extension
|
|
<x> being put in manual page section <y>.
|
|
<DT id="21"><B><filename_mask>: konkurrerende udvidelser</B><DD>
|
|
Jokertegnet <filename_mask> er ikke unik. Dette skyldes normalt
|
|
eksistensen af både en pakket og udpakket version af den samme
|
|
manualside. Alle undtagen de seneste ignoreres
|
|
</DL>
|
|
<A NAME="lbAI"> </A>
|
|
<H2>FILER</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="22"><I>/etc/manpath.config</I>
|
|
|
|
|
|
<DD>
|
|
konfigurationsfil for man-db.
|
|
<DT id="23"><I>/var/cache/man/index.(bt|db|dir|pag)</I>
|
|
|
|
|
|
<DD>
|
|
Et FHS-overholdende globalt <I>index</I>-databasemellemlager.
|
|
</DL>
|
|
<P>
|
|
|
|
Tidligere placeringer for databasens mellemlager inkluderede:
|
|
<DL COMPACT>
|
|
<DT id="24"><I>/usr/man/index.(bt|db|dir|pag)</I>
|
|
|
|
|
|
<DD>
|
|
Et traditionelt globalt <I>index</I>-databasemellemlager.
|
|
<DT id="25"><I>/var/catman/index.(bt|db|dir|pag)</I>
|
|
|
|
|
|
<DD>
|
|
Et alternativt eller FSSTND-overholdende globalt
|
|
<I>index</I>-databasemellemlager.
|
|
</DL>
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>SE OGSÅ</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>WHATIS PARSING</B>-afsnittet tidligere på denne manualside er nu en del af
|
|
<B><A HREF="/cgi-bin/man/man2html?1+lexgrog">lexgrog</A></B>(1).
|
|
<A NAME="lbAK"> </A>
|
|
<H2>FORFATTER</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">NAVN</A><DD>
|
|
<DT id="27"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="28"><A HREF="#lbAD">BESKRIVELSE</A><DD>
|
|
<DT id="29"><A HREF="#lbAE">DATABASE-MELLEMLAGRE</A><DD>
|
|
<DT id="30"><A HREF="#lbAF">TILVALG</A><DD>
|
|
<DT id="31"><A HREF="#lbAG">AFSLUT-STATUS</A><DD>
|
|
<DT id="32"><A HREF="#lbAH">DIAGNOSTICS</A><DD>
|
|
<DT id="33"><A HREF="#lbAI">FILER</A><DD>
|
|
<DT id="34"><A HREF="#lbAJ">SE OGSÅ</A><DD>
|
|
<DT id="35"><A HREF="#lbAK">FORFATTER</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:04:55 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|