In cpan shell, only /regexp/ or all modules can be upgrade, if I want to upgrade modules only installed by CPAN,how to do?
Install App::cpanminus from CPAN (use: cpan App::cpanminus for this). Type cpanm --uninstall Module::Name (note the " m ") to uninstall the module with cpanminus.
To install Perl modules using CPAN, you need to use the cpan command-line utility. You can either run cpan with arguments from the command-line interface, for example, to install a module (e.g Geo::IP) use the -i flag as shown.
I suggest you using cpanm "family" script for perl modules management.
curl -L http://cpanmin.us | perl - --sudo App::cpanminus
cpanm
cpanm --self-upgrade --sudo
cpanm App::cpanoutdated
For example, only my notebook gives the result like:
marvin:~ jomo$ cpan-outdated
S/SM/SMUELLER/Attribute-Handlers-0.93.tar.gz
D/DR/DROLSKY/Class-Load-0.20.tar.gz
D/DR/DROLSKY/DateTime-TimeZone-1.47.tar.gz
... etc
cpan-outdated -p | cpanm
If you want see what is changed (Change-log), you can try install cpan-listchanges
cpanm App::cpanlistchanges
cpan-listchanges Plack
- too see what's changed in Plack between your local and the latest on CPAN
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With