Re: How specify a specific version of module to "cpan" command?

[email protected] (nimectos) Fri, 21 Dec 2012 01:26:59 -0800
Newsgroups perl.cpan.discuss
Message-ID <[email protected]>
Steffen Schwigon <[email protected]> wrote:

>Hi!
>
>nimectos <[email protected]> writes:
>> My question is, how can I specify the desired version to the 
>> "cpan" command?  I didn't see how in "man cpan" or in the 
>> cpan.org FAQ.
>
>You could give the last part of the download link consisting of the
>AUTHOR name and the versioned filename:
>
>  cpan SHLOMIF/XML-LibXML-2.0002.tar.gz
>
>Admittedly you need to find out this name in advance on (meta)cpan.org
>because the author might be different per version.
>
Thank you very much, that got me past the problem - it turned out that
there were a few other modules I had to treat similarly.

Is there some other method - a way to tell the cpan command "I know that
your downloaded module lists will show newer versions, but pretend that
these versions are the latest for these modules"? I like to feed the same
long module list to cpan a second time and see that everything is already
installed properly but that doesn't work with the method above, it always
installs it again even if already installed.