ALPM::DB::Sync - Synchronized remote databases.
$SUCCESS = $DB->add_server($URL) $SUCCESS = $DB->remove_server($URL) $SUCCESS = $DB->set_servers(@URLS) @URLS = $DB->get_servers()
A plethora of accessors and mutators for the repo URLs of databases.
$URL
The base url where database files are publicly available.
@URLS
Like $URL, only more so.
$SUCCESS
Returns 1 on success, undef on failure.
$UPDATE_STATUS = $DB->update() $SUCCESS = $DB->force_update()
Updating the database is like pacman -Su. Forcing an update will download a new copy of the database even if it seems that we do not need to.
$UPDATE_STATUS
Returns 1 on success, -1 if the update was unnecessary, or 0 on error.
SUCCESS
Returns 1 on success or 0 on error.
$VALID = $DB->valid()
Perform validity checks upon the database, such as a signature check.
$SIGLEVEL = $DB->siglvl()
Retrieve the signature level requirements that package and database files of this database must fulfill.
$SUCCESS = $DB->unregister()
Unregister the sync database. You probably shouldn't try to use the $DB object anymore. Right now there are no safety checks.
Returns 1 on success or undef on error.
ALPM::DB, ALPM, ALPM::Package
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.