http://qs1969.pair.com?node_id=514028

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

Fellow monks, I want to install Net::SSH::Perl, but the most current version. Is it posible to give an option to the install command to tell it which version I want to get install? Thanks.

Replies are listed 'Best First'.
Re: installing module via cpan...
by planetscape (Chancellor) on Dec 05, 2005 at 06:07 UTC

    Assuming you are doing perl -MCPAN -e shell; :

    And you have decided you want to install version Net-SSH-Perl-1.25 from January 19, 2004, you would then type (for example):

    install D/DR/DROLSKY/Net-SSH-Perl-1.25.tar.gz

    HTH,

    planetscape
Re: installing module via cpan...
by BUU (Prior) on Dec 05, 2005 at 02:57 UTC
    Yes, you can, but you have to specify the complete path to it. If you merely specify the module name, it installs the latest one.
Re: installing module via cpan...
by Happy-the-monk (Canon) on Dec 05, 2005 at 07:17 UTC

    I want to install ... the most current version.

    CPAN.pm fetches the current/most recent version for you from your cpan mirror of choice.

    This will do what you want, with only occasional delays of a few hours when some other cpan mirrors might already have a newer version than your mirror of choice. Most of the time that should not be worth the trouble, or am I mistaken?

    Cheers, Sören