You can do all these things via CPAN.pm using the cpan binary.  cpanm is
very nice as well, here's some work I did with an off-system perl that
provides stubs for automated testing and such:

https://github.com/reyjrar/optperl/tree/master/optperl.puppet

This repo has a lot more stuff, like the RPM specfile for building the
off-system perl without ridiculous dependency injection into your RPMDB.
 Generally speaking, you should manage CPAN Modules either *completely*
with CPAN/CPANM/CPANPLUS or with a .rpm / .deb, never with both.  The
reason I mention this, is if you're mucking about with the included Perl on
RedHat-based distributions you will introduce all sorts of pain upon
yourself by installing *anything* with CPAN.




On Wed, Mar 13, 2013 at 11:59 AM, chenlin rao <rao.chen...@gmail.com> wrote:

> Hi all!
>    I found some modules like App::CPANMinus, App::pmodinfo,
> App::pmuninstall and so on. But why there aren't one CPAN module to do
> these together?
>    I'm writing a puppet provider for cpan, but now I found I need to
> pre-install several modules for '--list', '--install', '--update',
> '--uninstall' while rubygems can do these all.
>    Any help?
>



-- 
Brad Lhotsky

Reply via email to