Debian::DpkgLists(3pm) | User Contributed Perl Documentation | Debian::DpkgLists(3pm) |
Debian::DpkgLists - scan dpkg database for files/patterns
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');
Debian::DpkgLists is a module for easy searching of dpkg(1)'s package database which contains 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 database 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.
Returns a (possibly empty) list of packages containing path.
Returns a (possibly empty) list of packages containing files whose full path ends with path.
Returns a (possibly empty) list of packages containing files whose full path matches pattern.
Returns a (possibly empty) list of packages containing possible Module::Name files.
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.
2023-02-21 | perl v5.36.0 |