ALPM::DB::Local - Machine-local package database.
$db = $alpm->localdb; $pkg = $db->find('perl'); $db->set_install_reason($pkg, 'implicit') or die $alpm->strerror;
This is a subclass of ALPM::DB and inherits all of its methods.
$SUCCESS = $DB->set_install_reason($PKG, $REASON);
The installation reason records whether the package was installed explicitly or implicitly. Packages installed as requested on the command line are installed explicitly. Packages installed as dependencies are installed implicitly. You can override the reason here.
$PKG
An ALPM::Package object.
$REASON
This must be either "explicit" or "implicit".
"explicit"
"implicit"
$SUCCESS
Returns truthy on success, false on error.
ALPM::DB
Justin Davis, <juster at cpan dot org>
<juster at cpan dot org>
Andrew Gregory <apg@cpan.org>
Copyright (C) 2015 by Justin Davis
Copyright (C) 2015 by Andrew Gregory <apg@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
To install ALPM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ALPM
CPAN shell
perl -MCPAN -e shell install ALPM
For more information on module installation, please visit the detailed CPAN module installation guide.