dlocate --version (return code: 0)
dlocate version 1.02
dlocate --help (return code: 1)
Usage: dlocate [option...] [command] [PATTERN...]
Commands:
DEFAULT/none PATTERN list records that match either package or files names
-S PATTERN list records that match filenames
-L package list all files in package
-l package regexp-enhanced emulation of 'dpkg -l'
-s package print package's status
-ls package 'ls -ldF' of all files in package
-du package 'du -sck' of all files in package
-conf package list conffiles in package
-lsconf package 'ls -ldF' of conffiles in package
-md5sum package list package's md5sums (if any)
-md5check package check package's md5sums (if any)
-man package list package's man pages (if any)
-lsman package list full path/filenames of man pages
-lsbin package list full path/filenames of executable files
-K list installed kernel & related packages
-k detailed list of installed kernel & related packages
-- stop processing commands and options. remainder of
command-line is filename(s)
The -l, and -S commands are approximately the same as the equivalent dpkg
options except that the search is performed using regular expressions
rather than fixed strings.
Options
--filename-only only output file names when searching for files
--package-only only output package names when searching for files
Regular Expression Options (see grep(1) for details):
-E, --extended-regexp
-F, --fixed-strings
-G, --basic-regexp
-P, --perl-regexp
-w, --word-regexp restrict matches to whole words
-i, --ignore-case case-insensitive match
Miscellaneous Options:
-h, -H, --help display this help message and exit.
-V, --version display dlocate's version number and exit.
-v, --verbose, --debug verbose/debug output