How do I automate CPAN configuration?

前端 未结 5 2091
礼貌的吻别
礼貌的吻别 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:38

    Since it hasn't been mentioned yet, cpanminus is a zero-conf cpan installer. And you can download a self-contained executable if it isn't available for your version control.

    The cpanm executable is easily installed (as documented in the executable itself) with:

    curl -L http://cpanmin.us | perl - --self-upgrade
    # or
    wget -O - http://cpanmin.us | perl - --self-upgrade
    

提交回复
热议问题