DGLOB(1) | Debian-goodies documentation | DGLOB(1) |
dglob - Expand package names or files matching a pattern
dglob [-a] pattern
dglob [-0] -f pattern
dglob lists packages names matching a pattern. It can also list all the files they contain. By default dglob only searches installed packages; the -a and -n switch widens the search (see "OPTIONS"). The list is written to stdout, one name per line.
grep-dctrl(1) and grep-aptavail(1) are 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. If you do not use de -a switch, only existing, plain (i.e. no symlinks, directories or other special ones) files are listed. If the -a switch is use then all files will be listed both for installed and non-installed packages. 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.
dglob supports the following options:
$ dglob libc6 libc6-dbg:amd64 libc6:amd64 libc6:i386 libc6-i386:amd64 libc6-dev:amd64 $ dglob libc6:amd64 libc6-dbg:amd64 libc6:amd64 libc6-i386:amd64 libc6-dev:amd64 $ dglob zsh:all zsh-syntax-highlighting:all zsh-theme-powerlevel9k:all zsh-doc:all zsh-common:all zsh-antigen:all fizsh:all $ dglob -n libc6:i386 libc6-amd64-dbgsym:i386 libc6-amd64:i386 libc6-dbg:i386 libc6-dev-amd64:i386 libc6-dev-x32:i386 libc6-dev:i386 libc6-pic:i386 libc6-x32-dbgsym:i386 libc6-x32:i386 libc6-xen:i386 $ dglob -a :amd64 | wc -l 45846 $ dglob -a :i386 | wc -l 45185 $ dglob -a :all | wc -l 28995
Matt Zimmerman <mdz@debian.org> Axel Beckert <abe@debian.org>
This manpage was written by Frank Lichtenheld <frank@lichtenheld.de>, and further enhanced by Javier Fernandez-Sanguino <jfs@debian.org>.
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 version 2 can be found in /usr/share/common-licenses/GPL-2.
2018-11-18 | perl v5.28.0 |