dlocate

Langue: en

Autres versions - même langue

Version: 314894 (ubuntu - 07/07/09)

Section: 1 (Commandes utilisateur)

NAME

dlocate - program to view debian package information

SYNOPSIS

dlocate [ option ] [ package | string ]

DESCRIPTION

dlocate is a fast alternative to dpkg for queries like `dpkg -L' and `dpkg -S'

OPTIONS

(none)
List all records where either the package name or the filename matches string.

Note that dlocate uses GNU locate for this search, so locate's caveats about metacharacters needs to be taken into account.

For example, to search for `/usr/bin/[', you need to type:

dlocate '*\['

-h
Produces a short help message and exits.
-h
Display dlocate's version number and exits.
-S
list all records where only the filename matches string.

Note that dlocate uses GNU locate for this search, so locate's caveats about metacharacters needs to be taken into account.

For example, to search for `/usr/bin/[', you need to type:

dlocate -S '*\['

-l
Simplistic emulation of `dpkg -l'. Shows all packages which match package.

Internally this uses egrep on a file containing the reformatted output of `dpkg -l' (four fields separated by one space-character: status, package-name, installed version, description) so it will return packages whose tag-line matches, too.

Extended regular expression are allowed. For example,

dlocate -l '^.. libc5'

will list all the package names starting with `libc5'.

Note that because of the difference between regular expressions and dpkg's shell-style pattern matching, the output from dlocate -l is occasionally different to the output from dpkg -l.

This is not a bug, regular expressions are far more flexible than shell pattern matching. This is the way dlocate is supposed to run, but it may require some knowledge of regular expressions to get the output you want.

-L
List all files in package.
-s
Print status of package.
-ls
`ls -ldF' of all files in package.
-lsconf
`ls -ldF' of conffiles in package.
-conf
List conffiles in package.
-du
`du -sck' of all files in package.
-md5sum
List md5sums (if any) of package.
-md5check
Check md5sums (if any) of package.
-man
List man pages (if any) in package.
-lsman
List full path/filenames of man pages (if any) in package.
-lsbin
List full path/filenames of executable files (if any) in package.

ENVIRONMENT VARIABLES

COLUMNS
Sets the number of columns dlocate should use when displaying formatted text. Currently only used by -l. Values lower than 80 are ignored.

SEE ALSO

locate(1), dpkg(1), update-dlocatedb(8), egrep(1) and grep-dctrl(1).

AUTHOR

dlocate was written by Jim Pick <jim@pick.com> and Craig Sanders <cas@taz.net.au>. dlocate is Free Software licensed under the GNU General Public License.