三生石@ 2010-09-16 14:42 采纳率: 100%
浏览 407
已采纳

如何将所有 CPAN 模块更新为其最新版本?

How do I update all my CPAN modules to their latest versions?

转载于:https://stackoverflow.com/questions/3727795/how-do-i-update-all-my-cpan-modules-to-their-latest-versions

  • 写回答

5条回答 默认 最新

  • local-host 2010-09-16 15:10
    关注

    An alternative method to using upgrade from the default CPAN shell is to use cpanminus and cpan-outdated.

    These are so easy & nimble to use that I hardly ever go back to CPAN shell. To upgrade all your modules in one go is:

    cpan-outdated -p | cpanm
    


    I recommend you install cpanminus like the docs describe:

    curl -L http://cpanmin.us | perl - App::cpanminus
    

    And then install cpan-outdated along with all other CPAN modules using cpanm:

    cpanm App::cpanoutdated
    

    BTW: If you are using perlbrew then you will need to repeat this for every Perl you have installed under it.

    You can find out more about cpanminus and cpan-outdated at the Github repos here:

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度