Alien::Packages::Cygwin - Get information from Cygwin's packages via cygcheck
version 0.03
# without Alien::Packages use Alien::Packages::Cygwin; foreach my $package (Alien::Packages::Cygwin->list_packages) { say 'Name: ' . $package->{Name}; say 'Version: ' . $package->{Version}; } my $perl_package = Alien::Packages::Cygwin->list_owners('/usr/bin/perl'); say 'Perl package is ' . $perl_package->{"/usr/bin/perl"}->[0]->{Package}; # with Alien::Packages use Alien::Packages; my $packages = Alien::Packages->new; foreach my $package ($packages->list_packages) { say 'Name: ' . $package->{Name}; say 'Version: ' . $package->{Version}; } my $perl_package = $packages->list_owners('/usr/bin/perl'); say 'Perl package is ' . $perl_package->{"/usr/bin/perl"}->[0]->{Package};
This module provides package information for the Cygwin environment. It can also be used as a plugin for Alien::Packages, and will be used automatically if the environment is detected.
my $usable = Alien::Packages::Cygwin->usable
Returns true when when cygcheck command was found in the path.
my @packages = Alien::Packages::Cygwin->list_packages
Returns the list of installed cygwin packages. Each package is returned as a hashref containing a
the name of the package
The version of the package
Empty string (descriptions are not available).
my %owners = Alien::Packages::Cygwin->list_fileowners
Returns the cygwin packages that are associated with the requested files.
Graham Ollis <plicease@cpan.org>
This software is copyright (c) 2013 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Alien::Packages::Cygwin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Alien::Packages::Cygwin
CPAN shell
perl -MCPAN -e shell install Alien::Packages::Cygwin
For more information on module installation, please visit the detailed CPAN module installation guide.