xorl has asked for the wisdom of the Perl Monks concerning the following question:

I installed cpanm with:
wget -O- http://cpanmin.us | /usr/bin/perl - App::cpanminus

I then promptly broke it. I'd like to reinstall it. However doing that command again tells me that is is up to date and won't do anything.

Is there some way I modify that command it to reinstall even if it thinks everything is up to date?

Thanks in advance.

Update: McA's solution works. Thanks again!

Replies are listed 'Best First'.
Re: Force reinstall of cpanm
by McA (Priest) on Mar 13, 2013 at 16:39 UTC
    Try a
    wget -O- http://cpanmin.us | /usr/bin/perl - App::cpanminus --force

    Best regards
    McA

Re: Force reinstall of cpanm
by arnaud99 (Beadle) on Mar 13, 2013 at 16:42 UTC

    Hi

    You may have a .cpanm directory under your home directory. If this is the case you can always try to delete it and try your wget command.

    You can also get cpanm using cpan, instead of wget.

    I hope this helps.

    Arnaud