Para instalar una distribución con un número de versión específico hay que utilizar el identificador de distribución (Distribution id):
cpan[6]> d /Expect-Simple/ Distribution id = D/DJ/DJERIUS/Expect-Simple-0.04.tar.gz CPAN_USERID DJERIUS (Diab Jerius <djerius@cpan.org>) CONTAINSMODS Expect::Simple UPLOAD_DATE 2008-05-06La instalación de un módulo es manejada por el método install de la clase CPAN::Module mientras que el de una distribución lo es por la clase CPAN::Distribution :
cpan[7]> install D/DJ/DJERIUS/Expect-Simple-0.04.tar.gz Running make for D/DJ/DJERIUS/Expect-Simple-0.04.tar.gz Fetching with LWP: http://www.perl.org/CPAN/authors/id/D/DJ/DJERIUS/Expect-Simple-0.04.tar.gz CPAN: Digest::SHA loaded ok (v5.45) Checksum for /root/.cpan/sources/authors/id/D/DJ/DJERIUS/Expect-Simple-0.04.tar.gz ok Scanning cache /root/.cpan/build for sizes ............................................................................DONE Expect-Simple-0.04/ Expect-Simple-0.04/Makefile.PL Expect-Simple-0.04/MANIFEST.SKIP Expect-Simple-0.04/README Expect-Simple-0.04/META.yml Expect-Simple-0.04/Changes Expect-Simple-0.04/MANIFEST Expect-Simple-0.04/t/ Expect-Simple-0.04/t/testprog Expect-Simple-0.04/t/Expect-Simple.t Expect-Simple-0.04/LICENSE Expect-Simple-0.04/lib/ Expect-Simple-0.04/lib/Expect/ Expect-Simple-0.04/lib/Expect/Simple.pm Expect-Simple-0.04/ChangeLog CPAN: File::Temp loaded ok (v0.18) CPAN.pm: Going to build D/DJ/DJERIUS/Expect-Simple-0.04.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Expect::Simple cp lib/Expect/Simple.pm blib/lib/Expect/Simple.pm Manifying blib/man3/Expect::Simple.3pm DJERIUS/Expect-Simple-0.04.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" \ "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/Expect-Simple....ok All tests successful. Files=1, Tests=6, 0 wallclock secs ( 0.12 cusr + 0.03 csys = 0.15 CPU) DJERIUS/Expect-Simple-0.04.tar.gz /usr/bin/make test -- OK Running make install Installing /usr/local/share/perl/5.8.8/Expect/Simple.pm Installing /usr/local/man/man3/Expect::Simple.3pm Writing /usr/local/lib/perl/5.8.8/auto/Expect/Simple/.packlist Appending installation info to /usr/lib/perl/5.8/perllocal.pod DJERIUS/Expect-Simple-0.04.tar.gz /usr/bin/make install -- OK cpan[8]>
Casiano Rodríguez León