ALPM

 view release on metacpan or  search on metacpan

ex/ownzors  view on Meta::CPAN

#!/usr/bin/perl -s
##
# Give a list of files as command line arguments (i.e. use shell wildcards)
# The owners of each file is printed alphabetically, with owned files grouped
# by package. Files are also printed alphabetically.
# Pass the -q flag to only print the owning package names.
#

use ALPM::Conf qw(/etc/pacman.conf);
use File::Spec;

unless(@ARGV){
    print STDERR "usage: ownzors [file paths]\n";

lib/ALPM/Conf.pod  view on Meta::CPAN

	$conf->custom_fields(%fields);
	$alpm = $conf->parse();
	print "$value\n";

	# When imported with an argument, a conf file is loaded and
	# an alpm instance (named $alpm) is imported into the caller's
	# namespace.
	use ALPM::Conf '/etc/pacman.conf';
	print $alpm->get_arch, "\n";

	# This is handy for the command line or shell scripts.
	% perl -MALPM::Conf=/etc/pacman.conf -e '
	for $p ($alpm->localdb->pkgs){
		print $p->name, " ", $p->version, "\n";
	}
	'

=head1 DESCRIPTION

This class is used to parse the pacman.conf files which are used by ArchLinux's
pacman for config files.  The configuration fields are used to set ALPM options.

lib/ALPM/Conf.pod  view on Meta::CPAN

name of the C<$alpm> scalar. See the synopsis for an example. If you are
not familiar, you can give import arguments the following ways:

	# Using use:
	use ALPM::Conf '/etc/pacman.conf';
	
	# Require is more transparent:
	require ALPM::Conf;
	ALPM::Conf->import('/etc/pacman.conf');
	
	# On the command-line (see perlrun(1) manpage):
	perl -MALPM::Conf=/etc/pacman.conf -e '...'

=head1 SEE ALSO

L<ALPM>

=head1 AUTHOR

Justin Davis, C<< <juster at cpan dot org> >>

lib/ALPM/DB/Local.pod  view on Meta::CPAN


=head1 OBJECT METHODS

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

=head2 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.

=over 4

=item C<$PKG>

An I<ALPM::Package> object.

=item C<$REASON>

ppport.h  view on Meta::CPAN

call_pv|5.006000||p
call_sv|5.006000||p
calloc||5.007002|n
cando|||
cast_i32||5.006000|
cast_iv||5.006000|
cast_ulong||5.006000|
cast_uv||5.006000|
check_type_and_open|||
check_uni|||
checkcomma|||
checkposixcc|||
ckWARN|5.006000||p
ck_anoncode|||
ck_bitop|||
ck_concat|||
ck_defined|||
ck_delete|||
ck_die|||
ck_each|||
ck_eof|||



( run in 1.629 second using v1.01-cache-2.11-cpan-f56aa216473 )