Sys::OsPackage::Driver - parent class for packaging handler drivers for Sys::OsPackage
version 0.1.0
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);
⛔ 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.
GitHub repository for Sys::OsPackage: https://github.com/ikluft/Sys-OsPackage
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
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.
Ian Kluft <cpan-dev@iankluft.com>
This software is Copyright (c) 2022 by Ian Kluft.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Sys::OsPackage, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sys::OsPackage
CPAN shell
perl -MCPAN -e shell install Sys::OsPackage
For more information on module installation, please visit the detailed CPAN module installation guide.