pkg-locate [ --cache=/some/dir ] PACKAGE_NAME_OR_DIST_PATH ...
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').
--cache = /some/path
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.