Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Force reinstall of cpanm

by xorl (Deacon)
on Mar 13, 2013 at 15:55 UTC ( [id://1023243]=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1023243]
Approved by toolic
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-19 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found