Cheating CPAN, or how to let CPAN do the right thing on update

Posted by Andrew Denner on November 26, 2013 · 1 min read

One of the biggest issues I have when I update my perl packages in clan is that it takes for ever to sit there and always answer y to all of the questions. It turns out that there is a way to answer the default answer always (which is what I was doing manually before). Before you run ‘upgrade’ simply type:</p>

cpan> o conf prerequisites_policy ‘follow’
cpan> o conf build_requires_install_policy yes
cpan> o conf commit

then type

cpan> upgrade

and then go get a cup of coffee as it will be a while until it finishes.