NAME

Sys::OsPackage::Driver - parent class for packaging handler drivers for Sys::OsPackage

VERSION

version 0.3.1

SYNOPSIS

my $ospkg = Sys::OsPackage->instance();

# check if packaging commands exist for this system
if (not $ospkg->call_pkg_driver(op => "implemented")) {
  return 0;
}

# find OS package name for Perl module
my $pkgname = $ospkg->call_pkg_driver(op => "find", module => $module);

# install a Perl module as an OS package
my $result1 = $ospkg->call_pkg_driver(op => "modpkg", module => $module);

# install an OS package
my $result2 = $ospkg->call_pkg_driver(op => "install", pkg => $pkgname);

DESCRIPTION

⛔ This is for Sys::OsPackage internal use only.

The Sys::OsPackage method call_pkg_driver() will call the correct driver for the running platform.

All the platforms' packaging drivers must use this class as their parent class.

SEE ALSO

"pacman/Rosetta" at Arch Linux Wiki compares commands of 5 Linux packaging systems https://wiki.archlinux.org/title/Pacman/Rosetta

GitHub repository for Sys::OsPackage: https://github.com/ikluft/Sys-OsPackage

BUGS AND LIMITATIONS

Please report bugs via GitHub at https://github.com/ikluft/Sys-OsPackage/issues

Patches and enhancements may be submitted via a pull request at https://github.com/ikluft/Sys-OsPackage/pulls

LICENSE INFORMATION

Copyright (c) 2022 by Ian Kluft

This module is distributed in the hope that it will be useful, but it is provided “as is” and without any express or implied warranties. For details, see the full text of the license in the file LICENSE or at https://www.perlfoundation.org/artistic-license-20.html.

AUTHOR

Ian Kluft <cpan-dev@iankluft.com>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2022 by Ian Kluft.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)