CBAIS::Actions::Rpm - install an RPM package
$rpm = new CBAIS::Actions::Rpm(PACKAGE => 'squid' FILE => 'squid-v2.04.rpm');
if ($rpm->execute())
{
print ``installed squid-v2.04 rpm\n'';
}
if ($rpm->verify())
{
print ``squid-v2.04 is installed\n'';
}
if ($rpm->undo())
{
print ``squid-v2.04 is removed\n'';
}
The CBAIS::Actions::Rpm class implements a CBAIS action which manages RPM files. It enables the installation, upgrade and removal of RPP packages. It is not intended as a replacement for thr rpm system.