Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
"be consistent"
 
PerlMonks  

CPAN Favorites

by jettero (Monsignor)
on Mar 28, 2004 at 07:58 UTC ( [id://340381]=perlquestion: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.

jettero has asked for the wisdom of the Perl Monks concerning the following question:

I'm looking for a good solution for installing my CPAN favorites. I use about 20 modules really regularly and when I set up new machines or new perl installations, I find myself manually typing from a list of favorites -- a text file I keep in cvs.

It seems to me that I could easilly CPAN::Shell->install("them all"), but I'm wondering if there's a better way.

Someone suggested autobundle. And actually, simpler than that, I find that building a Bundle::JetsFavorites is really tempting, but I can't think of a way install Bundle::JetsFavorites without uploading the module to J/JE/JETTERO. I don't think uploading my list of favorites to CPAN is a good solution either.

I'm really asking two questions:

  1. Is there a really easy solution for a CPAN favorites list?
  2. How could I install CPAN::JetsFavorites without uploading it to CPAN?

If nothing else, I'm tempted to write a CPAN::Favorites -- or something like that -- so I can make this easier on me and others. I doubt it would be much more than CPAN::Shell->install($_) foreach @favorites though.

Replies are listed 'Best First'.
Re: CPAN Favorites
by Abigail-II (Bishop) on Mar 28, 2004 at 08:06 UTC
    How could I install CPAN::JetsFavorites without uploading it to CPAN?
    I really fail to understand the question. Assuming you're using MakeMaker, it's simple a matter of 'perl Makefile.PL; make; make test; make install'.

    Abigail

      It's like lim says below... I want for the CPAN shell to auto fetch dependencies.
Re: CPAN Favorites
by Limbic~Region (Chancellor) on Mar 28, 2004 at 11:08 UTC
    jettero,
    Ok, so this boils down to laziness. You want to say install my_favorites and have all the dependencies automatically handled for you. I am guessing that this is not too hard once you have built your bundle. Take a look at the following modules: Basically you would fool CPAN.pm into thinking your Bundle::JetsFavorites was uploaded by modifying locally. I am not sure how much work is involved, but it should be a nudge in the right direction.

    Cheers - L~R

Re: CPAN Favorites
by Mr. Muskrat (Canon) on Mar 28, 2004 at 15:32 UTC
    autobundle

    Update: I know it was suggested but it was suggested for a reason. It works well.

    Update2:

    1. Create your autobundle.
    2. Copy it to the computer you wish to install it on.
    3. Use CPAN.pm to install the module. Maybe something like:
      perl -I ~/.cpan -MCPAN -e install Bundle::JetsFavorites

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://340381]
Approved by b10m
Front-paged by bart
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.