Linux-Utils

 view release on metacpan or  search on metacpan

lib/Linux/Utils/RPM.pm  view on Meta::CPAN

package Linux::Utils::RPM;
$Linux::Utils::RPM::VERSION = '0.002';
use Modern::Perl;
use Moose;
use namespace::autoclean;
use Data::Printer alias => 'pdump';
use Kavorka 'method';

with
  'Util::Medley::Roles::Attributes::Spawn',
  'Util::Medley::Roles::Attributes::String';

=head1 NAME

Linux::Utils::RPM - Wrapper class for the 'rpm' command.

=head1 VERSION

version 0.002

=cut

=head1 SYNOPSIS

  $rpm = Linux::Utils::RPM->new;
  
  $aref = $rpm->queryAll(rpmName => $rpmName);

=cut

########################################################

=head1 ATTRIBUTES

none

=head1 METHODS

=head2 queryAll

Query all installed packages.

Returns: ArrayRef[Str]

=over

=item usage:

 $aref = $rpm->queryAll([rpmName => $rpmName]);
 
=item args:

=over

=item rpmName [Str] (optional)

The name of the rpm package to query.  This arg can contain wildcards.

=back

=back

=cut



( run in 0.522 second using v1.01-cache-2.11-cpan-5a3173703d6 )