RPM::Query - Perl object overlay of an RPM package
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; }
Returns the the long package name which is the unique package token that rpm uses for this package.
Returns a list of RPM::Query::Capability objects that the package requires
Returns a list of RPM::Query::Capability objects that the package provides
Returns a Boolean value on whether or not the installed RPM passes the verify command.
Returns select rpm tags as a hash reference where the key is a lower case tag.
Note: Not all tags are supported.
Returns the short package name
Returns the package description (multiline)
Michael R. Davis
MIT License
Copyright (c) 2023 Michael R. Davis
To install RPM::Query, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RPM::Query
CPAN shell
perl -MCPAN -e shell install RPM::Query
For more information on module installation, please visit the detailed CPAN module installation guide.