Description of problem: When reinstalling a perl module from CPAN using command line the force option does not have the expected effect. Version-Release number of selected component (if applicable): perl-5.8.8-14.el5 How reproducible: Always Steps to Reproduce: 1. perl -MCPAN -e 'force install "Scalar::Util"' 2. perl -MCPAN -e 'force install "Scalar::Util"' Actual results: Scalar::Util is up to date. Expected results: Scalar::Util is forced to be reinstalled despite being up to date. Additional info: The interactive way of force installing works fine: perl -MCPAN -e shell cpan> force install "Scalar::Util"
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
At least with CPAN v1.9402 it does work. In RHEL-5 we have v1.7602 which doesn't force install from shell, but force does work from cpan prompt.
I can reproduce it with CPAN 1.9402 from RHEL-6 (latest upstream version), so I conclude it's not yet fixed in upstream.
As pointed in upstream tracker: > > # perl -MCPAN -e 'force install "Scalar::Util"' > > What you write here is > force(install('Scalar::Util')) > > What you want is > force("install", "Scalar::Util") And that really works. The `force' function takes list of arguments no a scalar. Please use correct syntax: $ perl -MCPAN -e 'force("install", "Scalar::Util")'