如何将所有CPAN模块更新为最新版本? [英] How do I update all my CPAN modules to their latest versions?
问题描述
如何将所有CPAN模块更新为最新版本?
How do I update all my CPAN modules to their latest versions?
推荐答案
从默认CPAN shell使用upgrade
的另一种方法是使用 cpan-outdated
.
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存储库中找到有关cpanminus
和cpan-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屋!