CPAN-OUTDATED(1p)
π cpan-outdated β a little page from the perl manual, section 1p π
okay bestie, sit down, we're talking about cpan-outdated, and honestly? she's that girl. πΈ
β¨ NAME β¨
cpan-outdated β detect outdated CPAN modules in your environment π
β¨ SYNOPSIS β¨
# print a list of distributions that contain outdated modules
% cpan-outdated
# print a list of outdated modules in packages
% cpan-outdated -p
# verbose
% cpan-outdated --verbose
.
# ignore core modules (do not update dual life modules)
% cpan-outdated --exclude-core
# 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
yes, that lonely little . up there in the verbose block is literally in the original and we are keeping her, she's part of the family now π«Ά
β¨ DESCRIPTION β¨
so basically this script prints a list of outdated CPAN modules on your machine. that's it. that's the whole gig. β¨
it does the same thing as 'CPAN::Shell->r', except cpan-outdated is way faster and uses less memory. not me being dramatic, that's just the facts, no cap. π₯
and you can totally integrate this script with the cpanm command, which is the moment where it becomes iconic. π
β¨ PRINTING PACKAGES VS DISTRIBUTIONS β¨
by default this script prints the outdated distribution in the CPAN distro format, i.e:
A/AU/AUTHOR/Distribution-Name-0.10.tar.gz
so you can pipe it straight into CPAN installers. π but if you pass the -p option you can tweak it to print the module's package names instead. pick your fighter.
if you wanna manage a set of modules separately from your system perl installation β and you do not want to install newer versions of those "dual life modules" that ship with perl β then the --exclude-core option makes cpan-outdated ignore changes to core modules. pair it with tools like cpanm and its -L --local-lib-contained and --self-contained options, and boom: maintaining updates on standalone sets of modules is, like, facilitated. π¦
for some tools, such as cpanm, installing from packages could be a bit more useful, since you can track to see the old version number which you upgrade from. iykyk π
β¨ AUTHOR β¨
Tokuhiro Matsuno π
β¨ LICENSE β¨
Copyright (C) 2009 Tokuhiro Matsuno.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
yes bestie, same terms as Perl itself. respect the license, she's protecting everybody. π
β¨ SEE ALSO β¨
CPANApp::cpanminus
if you wanna see what's changed for modules that require upgrades, use cpan-listchanges. go, be curious, it's giving main character energy. π
and that's a wrap on the perl v5.34.0 era, dated 2022-06-05 β this page came from the User Contributed Perl Documentation, and honestly? she ate. periodt. π β¨
π¦ where this page comes from
- debian bookworm: cpanoutdated 0.32-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: cpanoutdated 0.32-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: cpanoutdated 0.32-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms