Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, Does anyone know how to add the CPAN module repository using ppm? I want the URL to use as in "ppm> repository add cpan URL". What is the URL to use in this case? Thanks!

Replies are listed 'Best First'.
Re: CPAN Module URL for ppm
by thundergnat (Deacon) on May 05, 2005 at 23:40 UTC

    You can not directly access CPAN modules through ppm; ppm can only install precompiled ppm modules, which are not generally available through CPAN. If you have a compiler compatible with the one used to compile your Perl installation, you can use the CPAN module to install CPAN packages.

    The ActivePerl HTML docs for PPM lists several ppm repositories. There are quite a few about. One I've found useful for modules that Active doesn't carry is at http://www.bribes.org/perl/ppmdir.html.

Re: CPAN Module URL for ppm
by chas (Priest) on May 06, 2005 at 04:49 UTC
    And for just about everything about using ppm see 434813.
    chas
Re: CPAN Module URL for ppm
by dorko (Prior) on May 06, 2005 at 17:49 UTC
    Hello,

    You also might want to take a look at PPM::Repositories. It's pure Perl, so you can just add the Repositories.pm file to your perl\site\lib\PPM directory and then run the sample script listed in the "SYNOPSIS" section of the docs. (Uncommenting the appropriate section.) This sample script will add lots of useful repositories to your PPM installation, including the Bribes Repository mentioned in thundergnat's reply.

    Cheers,

    Brent

    -- Yeah, I'm a Delt.