Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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?


In reply to Installing specific versions of CPAN modules by Mutant

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 23:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found