Discussion:
How specify a specific version of module to "cpan" command?
(too old to reply)
nimectos
2012-12-19 09:01:32 UTC
Permalink
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
2012-12-19 13:49:12 UTC
Permalink
Hi!
Post by nimectos
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 <***@renormalist.net>
Perl benchmarks <http://perlformance.net>
Dresden Perl Mongers <http://dresden-pm.org/>
nimectos
2012-12-21 09:26:59 UTC
Permalink
Post by Steffen Schwigon
Hi!
Post by nimectos
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
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.

Continue reading on narkive:
Search results for 'How specify a specific version of module to "cpan" command?' (Questions and Answers)
5
replies
How to do FTP over SSL using secure certificates in PEM format using PERL?
started 2006-11-29 17:29:15 UTC
security
Loading...