NAME

Util::Medley::PkgManager::RPM - Class for interacting with RPM

VERSION

version 0.051

SYNOPSIS

my $rpm = Util::Medley::PkgManager::RPM->new;

#
# positional  
#
$aref = $yum->queryAll([$rpmName]);
$aref = $rpm->queryList($rpmName);
                      
#
# named pair
#
$aref = $yum->queryAll([rpmName => $rpmName]);
$aref = $rpm->queryList(rpmName => $rpmName);

DESCRIPTION

A simple wrapper library for the Redhat Package Manager.

ATTRIBUTES

none

METHODS

queryAll

Query all installed packages.

Returns: ArrayRef[Str]

usage:
$aref = $yum->queryAll([$rpmName]);
$aref = $yum->queryAll([rpmName => $rpmName]);
args:
rpmName [Str] (optional)

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

queryList

List files in package.

Returns: ArrayRef[Str]

usage:
$aref = $yum->queryList($rpmName);

$aref = $yum->queryList(rpmName => $rpmName);
args:
rpmName [Str] (required)

The name of the rpm package to query.