Friday, August 19, 2011

Installing Perl modules from CPAN non interactively

Another bookmark post. Make the process of installing perl modules automatic or non interactive with the following commands. You won't be asked any confirmation in the middle of the process.

c:>cpan

cpan shell -- CPAN exploration and modules installation (v1.9205)
ReadLine support enabled
cpan[1]> o conf connect_to_internet_ok yes
    connect_to_internet_ok [yes]
Please use 'o conf commit' to make the config permanent!


cpan[2]> o conf prerequisites_policy follow
    prerequisites_policy [follow]
Please use 'o conf commit' to make the config permanent!


cpan[3]> o conf build_requires_install_policy yes
    build_requires_install_policy [yes]
Please use 'o conf commit' to make the config permanent!


cpan[4]> o conf commit
commit: wrote 'C:/Perl58/lib/CPAN/Config.pm'

No comments:

Post a Comment