* utils.sgml: Update cygcheck options

This commit is contained in:
Joshua Daniel Franklin 2004-02-11 04:10:47 +00:00
parent 0ccf5430f2
commit 49a4f409df

View File

@ -13,30 +13,70 @@ command-line utilities support the <literal>--help</literal> and
<sect2 id="cygcheck"><title>cygcheck</title> <sect2 id="cygcheck"><title>cygcheck</title>
<screen> <screen>
Usage: cygcheck [OPTIONS] [program ...] Usage: cygcheck [OPTIONS] [PROGRAM...]
Check system information or PROGRAM library dependencies Check system information or PROGRAM library dependencies
-c, --check-setup check packages installed via setup.exe -c, --check-setup check packages installed via setup.exe
-s, --sysinfo system information (not with -k) -d, --dump-only no integrity checking of package contents (requires -c)
-v, --verbose verbose output (indented) (for -s or programs) -s, --sysinfo system information (not with -k)
-r, --registry registry search (requires -s) -v, --verbose verbose output (indented) (for -[cfls] or programs)
-k, --keycheck perform a keyboard check session (not with -s) -r, --registry registry search (requires -s)
-h, --help give help about the info (not with -c) -k, --keycheck perform a keyboard check session (not with -[scfl])
-V, --version output version information and exit -f, --find-package find installed packages containing files (not with -[cl])
You must at least give either -s or -k or a program name -l, --list-package list the contents of installed packages (not with -[cf])
-h, --help give help about the info (not with -[cfl])
-V, --version output version information and exit
</screen> </screen>
<para>The <command>cygcheck</command> program is a diagnostic utility <para>
that examines your system and reports the information that is The <command>cygcheck</command> program is a diagnostic utility for
significant to the proper operation of Cygwin programs. It can give dealing with Cygwin programs. If you are familiar with
information about specific programs or libraries you are trying to <command>dpkg</command> or <command>rpm</command>,
run, general system information, or both. If you list one or more <command>cygcheck</command> is similar in many ways. (The major difference
programs on the command line, it will diagnose the runtime environment is that <command>setup.exe</command> handles installing and uninstalling
of that program or programs, providing the names of DLL files on which packages; see <xref linkend="internet-setup"> for more information.)
the program depends. If you specify the <literal>-s</literal> </para>
option, it will give general system information. If you specify <para>
<literal>-s</literal> and list one or more programs on the command line, The <literal>-c</literal> option checks the version and status of
it reports on both.</para> installed Cygwin packages. If you specify one or more package names,
<command>cygcheck</command> will limit its output to those packages,
or with no arguments it lists all packages. A package will be marked
<literal>Incomplete</literal> if files originally installed are no longer
present. The best thing to do in that situation is reinstall the package
with <command>setup.exe</command>. To see which files are missing, use the
<literal>-v</literal> option. If you do not need to know the status
of each package and want <command>cygcheck</command> to run faster, add the
<literal>-d</literal> option and <command>cygcheck</command> will only
output the name and version for each package.
</para>
<para>
If you list one or more programs on the command line,
<command>cygcheck</command> will diagnose the runtime environment of that
program or programs, providing the names of DLL files on which the program
depends. If you specify the <literal>-s</literal> option,
<command>cygcheck</command> will give general system information. If you
list one or more programs on the command line and specify
<literal>-s</literal>, <command>cygcheck</command> will report on
both.</para>
<para>
The <literal>-f</literal> option helps you to track down which package a
file came from, and <literal>-l</literal> lists all files in a package.
For example, to find out about <filename>/usr/bin/less</filename> and its
package:
<example><title>Example <command>cygcheck</command> usage</title>
<screen>
$ cygcheck.exe -f /usr/bin/less
less-381-1
$ cygcheck.exe -l less
/usr/bin/less.exe
/usr/bin/lessecho.exe
/usr/bin/lesskey.exe
/usr/man/man1/less.1
/usr/man/man1/lesskey.1
</screen>
</example>
</para>
<para>The <literal>-h</literal> option prints additional helpful <para>The <literal>-h</literal> option prints additional helpful
messages in the report, at the beginning of each section. It also messages in the report, at the beginning of each section. It also
@ -58,11 +98,6 @@ ones that have "Cygwin" in the name. If you are paranoid about
privacy, you may remove information from this report, but please keep privacy, you may remove information from this report, but please keep
in mind that doing so makes it harder to diagnose your problems.</para> in mind that doing so makes it harder to diagnose your problems.</para>
<para>The <literal>-c</literal> option causes the arguments
to be interpreted as package names. <command>cygcheck</command> will
report the current version of the package that you specify, or with no
arguments, on all packages.</para>
<para>The <command>cygcheck</command> program should be used to send <para>The <command>cygcheck</command> program should be used to send
information about your system for troubleshooting when requested. information about your system for troubleshooting when requested.
When asked to run this command save the output so that you can email it, When asked to run this command save the output so that you can email it,
@ -146,7 +181,7 @@ contain spaces (C:\Program Files) so should be enclosed in quotes.
</para> </para>
<example><title>Example cygpath usage</title> <example><title>Example <command>cygpath</command> usage</title>
<screen> <screen>
<![CDATA[ <![CDATA[
#!/bin/sh #!/bin/sh
@ -155,8 +190,8 @@ if [ "${1}" = "" ];
XPATH="."; XPATH=".";
else else
XPATH="$(cygpath -w "${1}")"; XPATH="$(cygpath -w "${1}")";
fi fi
explorer $XPATH & explorer $XPATH &
]]> ]]>
</screen> </screen>
</example> </example>