pkg-locate [ --cache=/some/dir ] PACKAGE_NAME_OR_DIST_PATH ...
pkg-locate is a simple command line tool demonstrating the use of Package::Locator. For each package, pkg-locate will report the URL of a distribution that will provide that package.
The arguments are the names of packages (e.g. 'FOO::Bar') or paths to distributions as they would appear in a CPAN-like index file (e.g. 'F/FO/FOO/Bar-1.2.tar.gz').
A directory that will be used to cache index files for future lookups. If this directory does not exist it will be created for you.
To install Package::Locator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Package::Locator
CPAN shell
perl -MCPAN -e shell install Package::Locator
For more information on module installation, please visit the detailed CPAN module installation guide.