++ed by:

1 non-PAUSE user(s).

Justin Davis

NAME

ALPM::DB::Local - Machine-local package database.

SYNOPSIS

  $db = $alpm->localdb;
  $pkg = $db->find('perl');
  $db->set_install_reason($pkg, 'implicit') or die $alpm->strerror;

OBJECT METHODS

This is a subclass of ALPM::DB and inherits all of its methods.

set_install_reason

  $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".

$SUCCESS

Returns truthy on success, false on error.

SEE ALSO

ALPM::DB

AUTHOR

Justin Davis, <juster at cpan dot org>

COPYRIGHT AND LICENSE

Copyright (C) 2013 by Justin Davis

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.




Hosting generously
sponsored by Bytemark