Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

cpan> o conf settings

by Steve_BZ (Hermit)
on Sep 06, 2011 at 18:12 UTC ( #924442=perlquestion: print w/ replies, xml ) Need Help??
Steve_BZ has asked for the wisdom of the Perl Monks concerning the following question:

Hi Guys,

I am currently testing an install script, and I run it several times a day. I'd like to automate:

$ cpan cpan> o conf build_requires_install_policy yes cpan> o conf prerequisites_policy follow cpan> o conf commit

Are there any prescribed mantras for this?

Regards

Steve

Comment on cpan> o conf settings
Download Code
Re: cpan> o conf settings
by ikegami (Pope) on Sep 06, 2011 at 22:50 UTC
    o conf commit makes the changes permanent, so I'm assuming something else is changing these settings and also using o conf commit?
    perl -MCPAN -E' CPAN::Shell->o("conf", "build_requires_install_policy", "yes"); CPAN::Shell->o("conf", "prerequisites_policy", "follow"); CPAN::Shell->o("conf", "commit"); '

      Hi Ikegami,

      Thanks for your post.

      I don't think anything else changes the settings, but I always use the form:

      $ cpan -i My::Mod

      So it comes in and out of cpan. This makes it easier for me to maintain the code. In fact I should probably turn it into a single Perl script, so I can standardise the error handling, and resume from the point of any crashes.

      Thanks again.

      Regards

      Steve

        I don't think anything else changes the settings,

        Then you don't need to run any of the commands you specified. o conf commit specifically instructs cpan to remember the changes you made.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://924442]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2014-08-01 23:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (53 votes), past polls