The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

#
# (c) Jan Gehring <jan.gehring@gmail.com>
#
# vim: set ts=2 sw=2 tw=0:
# vim: set expandtab:
use strict;
our $VERSION = '1.3.1_1'; # TRIAL VERSION
sub new {
my $that = shift;
my $proto = ref($that) || $that;
my $self = $proto->SUPER::new(@_);
bless( $self, $proto );
$self->{commands} = {
install => $self->_pkgutil() . ' --yes -i %s',
install_version => $self->_pkgutil() . ' --yes -i %s',
remove => $self->_pkgutil() . ' --yes -r %s',
update_package_db => $self->_pkgutil() . " -U",
};
return $self;
}
sub _pkgutil {
return "/opt/csw/bin/pkgutil";
}
1;