http://qs321.pair.com?node_id=11115227


in reply to Re^2: Install perl packages using yum
in thread Install perl packages using yum

I tend to avoid using the OS perl whenever possible. When dealing with the system perl, the OS package manager should use used.

"It is not an enterprise solution since most companies will not let you install software from the Internet for production systems and you will just have to figure out some other way to package your software anyway."

This depends upon your environment. We have no direct internet connections. A cpan mirror (crated using minicpan on a system which does have interwebs access) allows us to build what we need before deploying fleet wide.

$ wget https://cpan.metacpan.org/authors/id/J/JM/JMCNAMARA/Excel-Write +r-XLSX-1.03.tar.gz $ cpanspec -b Excel-Writer-XLSX-1.03.tar.gz

Here you are still just downloading software from the internet, repackaging it and later deploying it, albeit with the OS package manager, Archive::Zip isn't core so I think you'd have to use cpanspec --follow to ensure you satisfy dependencies:

"If you are feeling really lucky (or maybe crazy), you can also have cpanspec build a binary rpm by passing the -b (or --build) option. As of version 1.66, you can also use --follow to have cpanspec fetch any build dependencies that aren't already available."

https://fedoraproject.org/wiki/Perl/cpanspec.