Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

0 views
Skip to first unread message

nimectos

unread,
Dec 19, 2012, 4:01:32 AM12/19/12
to cpan-d...@perl.org
I am installing on CentOS 5.7 a list of modules via "cpan moduleA
moduleB" etc. I have done this before with the same list of
modules. Now the process is failing on XML::LibXML, apparently
due to a known problem per:

https://rt.cpan.org/Public/Bug/Display.html?id=81739

I can see that on previous successfully built units, the version
of that module was 2.0002. The one that CPAN gives me now is
2.0014.

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.


Steffen Schwigon

unread,
Dec 19, 2012, 8:49:12 AM12/19/12
to nimectos, cpan-d...@perl.org
Hi!

nimectos <tt4g...@dea.spamcon.org> 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.

Kind regards,
Steffen
--
Steffen Schwigon <s...@renormalist.net>
Perl benchmarks <http://perlformance.net>
Dresden Perl Mongers <http://dresden-pm.org/>

nimectos

unread,
Dec 21, 2012, 4:26:59 AM12/21/12
to cpan-d...@perl.org
Steffen Schwigon <s...@renormalist.net> wrote:

>Hi!
>
>nimectos <tt4g...@dea.spamcon.org> 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.


0 new messages