in reply to force install in cpan

I usually use this mess: perl -MCPAN -e "CPAN::Shell->force(qw(install IO::Socket::SSL));"

It's not exactly intuitive and there may be a better way... but it works. It also hints at a larger API (CPAN, CPAN::Shell), which appears to have grown rather organically IMO.

-Paul

Replies are listed 'Best First'.
Re^2: force install in cpan
by Anonymous Monk on Mar 27, 2007 at 15:27 UTC
    Wow.

    ... and quick too

    I am not worthy

      ... and quick too

      It's all a matter of how big your generic cut and paste repository is. I happened to remember where to cut and paste from really fast. That is all. Keep everything and keep it well sorted.

      -Paul

        it works..thank you so much!
        people save the darndest copy/pastes cpan -f -i -T Module
        $ perldoc cpan |ack "[-][fiT]" -f Force the specified action, when it normally would have failed +. Use option, -i is not optional for installing a module when you ne +ed to % cpan -f -i Module::Foo -i Install the specified modules. -T Do not test modules. Simply install them. # install modules ( sole -i is optional ) cpan -i Netscape::Booksmarks Business::ISBN # force install modules ( must use -i ) cpan -fi CGI::Minimal URI Japheth Cleaver added the bits to allow a forced install (-f).