The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

VERSION

version 0.002

SYNOPSIS

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

ATTRIBUTES

none

METHODS

queryAll

Query all installed packages.

Returns: ArrayRef[Str]

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

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

queryFileOwner

Query for the package owner of a given file.

Returns: Str|Undef

usage:
 $owner = $rpm->queryFileOwner(file => $file);
 
args:
file [Str]

The name of the file you wish to search with.

queryList

List files in package.

Returns: ArrayRef[Str]

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

The name of the rpm package to query.