例子 :
- 模块的当前版本:
$pm-uninstall -V App::pmuninstall v0.15
- 再次安装模块:
$cpanm pm-uninstall ! Finding pm-uninstall on cpanmetadb failed. --> Working on pm-uninstall Fetching http://search.cpan.org/CPAN/authors/id/X/XA/XAICRON/App-pmuninstall-0.16.tar.gz ... OK Configuring App-pmuninstall-0.16 ... OK Building and testing App-pmuninstall-0.16 ... OK Successfully installed App-pmuninstall-0.16
- 并且模块升级:
$pm-uninstall -V App::pmuninstall v0.16
如果需要升级很多模块,
可以使用 App::cpanoutdated
安装 App::cpanoutdated
cpanm -v App::cpanoutdated
如何使用App::cpanoutdated
查看 App::cpanoutdated 的帮助
$cpan-outdated --help Usage: # print the list of distribution that contains outdated modules % cpan-outdated # print the list of outdated modules in packages % cpan-outdated -p # verbose % cpan-outdated --verbose # alternate mirrors % cpan-outdated --mirror file:///home/user/minicpan/ # additional module path(same as cpanminus) % cpan-outdated -l extlib/ % cpan-outdated -L extlib/ # install with cpan % cpan-outdated | xargs cpan -i # install with cpanm % cpan-outdated | cpanm % cpan-outdated -p | cpanm
升级一个或者几个 perl 模块
日期:2020-06-02 22:16:02 来源:oir作者:oir