http://www.perlmonks.org?node_id=1047083


in reply to migrate cpan from AIX to Red Hat

find /usr/lib/perl5 -name \*.pm | xargs yum whatprovides will not work because the prefix will be different. But it is a good idea. dists can be named differently to modules.

I thought of using CPAN or a simple script like instmodsh (from ExtUtils::Installed) to get the list of your modules, and then mangle the names to find the rpm's.

perldoc ExtUtils::Installed