Doit::Fbsdpkg - commands for dealing with the FreeBSD package system
use Doit; my $doit = Doit->init; $doit->add_component('fbsdpkg'); $doit->fbsdpkg_install_packages(qw(zsh wget)); my @missing_packages = $doit->fbsdpkg_missing_packages(qw(zsh wget));
Doit::Fbsdpkg is a Doit component providing commands for dealing with FreeBSD packages. It has to be added to a script using Doit's add_component:
$doit->add_component('fbsdpkg');
The following commands are added to the Doit runner object:
$doit->fbsdpkg_install_packages(@packages);
Make sure that the listed FreeBSD packages are installed (currently using pkg(8)). Return a list of the packages which were actually installed during the execution of this command (or the number of packages in scalar context).
my @missing_packages = $doit->fbsdpkg_missing_packages(@packages);
Return the packages out of @packages which are not yet installed. This is an "informational" command and runs even in dry-run mode.
Slaven Rezic <srezic@cpan.org>
Copyright (c) 2017 Slaven Rezic. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Doit, pkg(8).
To install Doit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Doit
CPAN shell
perl -MCPAN -e shell install Doit
For more information on module installation, please visit the detailed CPAN module installation guide.