Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

installing module via cpan...

by perlknight (Pilgrim)
on Dec 05, 2005 at 02:37 UTC ( #514028=perlquestion: print w/replies, xml ) Need Help??

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


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. 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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2023-03-20 18:39 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (59 votes). Check out past polls.