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

Is there a way to figure out what the required version of a CPAN tarball is to obtain a certain version of a module contained in it?

For example, if I need LWP::UserAgent version 2.033, how can I find out that version 5.803 of the libwww distribution satisfies this?

Replies are listed 'Best First'.
Re: CPAN Tarball version for a module version?
by diotalevi (Canon) on Mar 15, 2006 at 00:21 UTC

    You can process 02packages.details.txt.gz, a file available on CPAN. You should have a copy in ~/.cpan/sources/modules.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

      Well, that'll only show the latest mapping between the LWP::UserAgent and libwww versions.

      I was interested in the general case, mapping all possible versions of LWP::UserAgent to the versions of libwww that contain them.

        You'll need to download all the versions from CPAN then. Fetch a copy of the PAUSE source to see how it finds modules and their versions.

        ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊