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.
An ALPM::Package object.
This must be either
Returns truthy on success, false on error.
<juster at cpan dot org>
Andrew Gregory <firstname.lastname@example.org>
Copyright (C) 2015 by Justin Davis
Copyright (C) 2015 by Andrew Gregory <email@example.com>
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.