NAME

RPM::Query - Perl object overlay of an RPM package

SYNOPSIS

use RPM::Query::Package;
my $package      = RPM::Query::Package->new(package_name=>'perl-5.16.3-299.el7_9.x86_64');
my $name         = $rpm->name;         #is short name e.g. "perl"
my $capabilities = $rpm->requires;     #isa list of RPM::Query::Capability
foreach my $capability (@$capabilities) {
  printf "%s - %s\n", $capability->name, $capability->package->package_name;
}

DESCRIPTION

METHODS

package_name

Returns the the long package name which is the unique package token that rpm uses for this package.

requires

Returns a list of RPM::Query::Capability objects that the package requires

provides

Returns a list of RPM::Query::Capability objects that the package provides

verify

Returns a Boolean value on whether or not the installed RPM passes the verify command.

details

Returns select rpm tags as a hash reference where the key is a lower case tag.

Note: Not all tags are supported.

name

Returns the short package name

description

Returns the package description (multiline)

summary

url

version

sourcerpm

license

sigmd5

ACCESSORS

parent

SEE ALSO

AUTHOR

Michael R. Davis

COPYRIGHT AND LICENSE

MIT License

Copyright (c) 2023 Michael R. Davis