NAME
RPM::Query - Perl object overlay of an RPM capability
SYNOPSIS
use RPM::Query;
my $rpm = RPM::Query->new;
my $capabilities = $rpm->requires('perl'); #isa ARRAY of RPM::Query::Capability
foreach my $capability (@$capabilities) {
printf "%s - %s\n", $capability->name, $capability->package->name;
}
DESCRIPTION
METHODS
capability_name
Returns the capability name with optional version as returns by the rpm command.
perl(Scalar::Util) >= 1.10
perl(strict)
name
version
package
Returns the first package (alphabetically) that provides this capability
whatprovides
Returns a list of package objects that provides this capability.
ACCESSORS
parent
SEE ALSO
AUTHOR
Michael R. Davis
COPYRIGHT AND LICENSE
MIT License
Copyright (c) 2023 Michael R. Davis