Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

debian::dpkglists(3pm) [debian man page]

Debian::DpkgLists(3pm)					User Contributed Perl Documentation				    Debian::DpkgLists(3pm)

NAME
Debian::DpkgLists - scan /var/lib/dpkg/info/*.list for files/patterns SYNOPSIS
my @packages = Debian::DpkgLists->scan_full_path('/full/file/path'); my @packages = Debian::DpkgLists->scan_partial_path('file/path'); my @packages = Debian::DpkgLists->scan_pattern(qr{freedom$}); my @packages = Debian::DpkgLists->scan_perl_mod('Some::Module'); DESCRIPTION
Debian::DpkgLists is a module for easy searching of dpkg(1)'s package file lists. These are located in /var/lib/dpkg/info/*.list and contain a simple list of full file names (including the leading slash). There are a couple of different class methods for searching by full or partial path, a regular expression or a Perl module name. Note that dpkg's file lists represent only dpkg's idea of what is installed on the system. If you want to also search in packages, available from the Debian archive but not installed locally, see Debian::AptContents. CLASS-METHODS scan_full_path ( path ) Scans dpkg file lists for files, whose full path is equal to path. Use when you have the full path of the file you want, like "/usr/bin/perl". Returns a (possibly empty) list of packages containing path. scan_partial_path ( path ) Scans dpkg file lists for files, whose full path ends with path. Use when you only care about the file name or other trailing portion of the full path like "bin/perl" (matches "/usr/bin/perl" and "/sbin/perl"). Returns a (possibly empty) list of packages containing files whose full path ends with path. scan_pattern ( pattern ) Scans dpkg file lists for files, whose full path matched pattern. Returns a (possibly empty) list of packages containing files whose full path matches pattern. scan_perl_mod ( Module::Name ) Scans dpkg file lists for files, corresponding to given Module::Name. This is a shorthand method for "scan_pattern" with a pattern that matches "/Module/Name.pm$" in all directories in @INC. Returns a (possibly empty) list of packages containing possible Module::Name files. AUTHOR
Damyan Ivanov <dmn@debian.org> COPYRIGHT &; LICENSE Copyright (C) 2010 Damyan Ivanov <dmn@debian.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. perl v5.14.2 2012-01-15 Debian::DpkgLists(3pm)

Check Out this Related Man Page

DGLOB(1)						   Debian-goodies documentation 						  DGLOB(1)

NAME
dglob - Expand package names or files matching a pattern SYNOPSIS
dglob [-a] pattern dglob [-0] -f pattern DESCRIPTION
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 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 '' instead of a newline. OPTIONS
dglob supports the following options: -a Search through all available packages, not just installed ones. If set, grep-aptavail(1) is used. -f List all files in the matched packages. By default, this lists only installed (i.e. locally existing) files from installed packages. If used together with -a then it will list all files both of installed and non-installed packages by mean of apt-file(1). If apt-file is not installed, using -f together with -a is rather pointless. -0 When listing files (with -f) use '' 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) or to grep-aptavail(1) to modify how the pattern is matched. See grep-dctrl(1). FILES
/var/lib/dpkg/status dpkg(8) status file, which serves as source for the list of available and installed packages. AUTHOR
Matt Zimmerman <mdz@debian.org> This manpage was written by Frank Lichtenheld <frank@lichtenheld.de>, and further enhanced by Javier Fernandez-Sanguino <jfs@debian.org>. 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), grep-available(1), apt-file(1), dpkg(8) perl v5.14.2 2012-03-21 DGLOB(1)
Man Page