man dglob (Commandes) - Expand package names or files matching a pattern
NAME
dglob - Expand package names or files matching a pattern
SYNOPSIS
dglob [-a] pattern
dglob [-0] -f pattern
DESCRIPTION
dglob searches for packages whose names match a pattern, and can either output their names, or a list of the files they contain. Per default, only installed packages are matched, unless you use the -a option (see OPTIONS). The list of packages is written to stdout, one package per line.
grep-dctrl(1) is used to search the list of packages, so you should refer to its documentation for information on how patterns are matched. By default, all packages whose name contains the given string will be matched, but several options are available to modify this behavior (see OPTIONS).
If you use dglob with the -f option, all files in the matched packages are listed instead of their names. Only existing, plain (i.e. no symlinks, directories or other special ones) files are listed. The filenames are written to stdout, one file per line. You can use the -0 option to get the filenames separated by '\0' instead of a newline.
OPTIONS
dglob suppports the following options:
- -a
- Search through all available packages, not just installed ones.
- -f
- List all files in the matched packages. This list only installed (i.e. locallly existing) files from installed packages, so using it together with -a is rather pointless.
- -0
- When listing files (with -f) use '\0' as a separator instead of a newline. When specified without -f, this options does nothing.
- -r, -e, -i, -X, -v
- These options are passed directly to grep-dctrl(1) to modify how the pattern is matched. See grep-dctrl(1).
FILES
AUTHOR
Matt Zimmerman <mdz@debian.org>
This manpage was written by Frank Lichtenheld <frank@lichtenheld>.
COPYRIGHT AND LICENCE
Copyright (C) 2001 Matt Zimmerman <mdz@debian.org>.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
On Debian systems, a copy of the GNU General Public License may be found in /usr/share/common-licenses/GPL.
SEE ALSO
grep-dctrl(1), dpkg(8)