How do I automate CPAN configuration?

前端 未结 5 2079
礼貌的吻别
礼貌的吻别 2020-12-24 00:58

The first time you run cpan from the command line, you are prompted for answers to various questions. How do you automate cpan and install modules non-interactively from the

5条回答
  •  失恋的感觉
    2020-12-24 01:35

    I was looking for an easy solution for this as well and found that this works:

    (echo y;echo o conf prerequisites_policy follow;echo o conf commit)|cpan
    

    Just thought I would post it here in case anyone else comes along.

提交回复
热议问题