Hi,
I'm not sure if this is possible, but I'm trying to create a way to build a set of CPAN modules of a specific version so that this build can be repeated (e.g. on another platform).
The approach I was hoping to take was:
- Have a list of modules (preferably, but distributions would be OK) with version numbers in a text file
- Have a script that reads the list of modules, and checks whether that specific module is already installed on this system
- If it's not, it downloads the specific version of that module from CPAN (assuming it's available) and builds and installs it, including all depedencies
- Ideally it should do nothing if the module is already installed
I was hoping CPAN.pm would help me, but it seems geared towards installing only the latest version of a module. i.e. there's no way to specify a specific version to download/install. You can give it a specific distribution name, but older versions won't be in the index, so you can't find out which modules they contain, and therefore can't find out if they've already been installed on the system.
In case it's not immediately obvious, the reason I need to do this is so that I can maintain a set of CPAN modules across multiple platforms (i.e. different OSes / CPUs) which may be added to at a later date, requiring the set of modules to be re-built. For paranoid reasons, the modules need to be the same versions as exist on the other platforms.
Anyone have any ideas how to solve this?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.