如何将所有CPAN模块更新为最新版本? [英] How do I update all my CPAN modules to their latest versions?

查看:60
本文介绍了如何将所有CPAN模块更新为最新版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

推荐答案

从默认CPAN shell使用upgrade的另一种方法是使用

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

这些是如此简单易用,以至于我几乎再也没有回到CPAN shell了.要一次性升级所有模块,命令是:

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

cpan-outdated -p | cpanm

我建议您像文档中描述的那样安装cpanminus:

I recommend you install cpanminus like the docs describe:

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

,然后使用cpanm安装cpan-outdated以及所有其他CPAN模块:

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

cpanm App::cpanoutdated

BTW:如果您使用的是perlbrew,则需要对在其下安装的每个Perl重复此操作.

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

您可以在Github存储库中找到有关cpanminuscpan-outdated的更多信息:

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

  • https://github.com/miyagawa/cpanminus
  • https://github.com/tokuhirom/cpan-outdated

这篇关于如何将所有CPAN模块更新为最新版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆