It would seem like this would be a common operation, but I havn't seen it on google or here. Up to now, I've been downloading my modules manually, and doing the manual install process. I like to keep all my module sources in a single directory, so I can can quickly look thru them. So I have alot of modules to install when I upgrade to a new Perl version, or want to run multiple versions. I know that CPAN would make this easy, but for 2 reasons, I prefer not to use CPAN.
1. I don't like running semi-automatic scripts as root on the network. + I prefer to see the code in hand first. 2. I like a single directory for sources as opposed to the labrythn of + authors-directories which CPAN uses.
So my idea is to write a script which globs all the module source tarballs, and unpacks, perl Makefile.pl, make, make install, with a series of system commands. I know that I have all the dependencies I need, but I don't know if it will be easy to write a script to auto-check for dependencies, then search the local dir and install it first if it is needed by another package.

So before I try and do this, I wonder if there is a way already, which I'm not familiar with. Such as using CPAN, and feeding it a directory to install from, and a list of what to install, and let it automatically install dependencies when it finds them. Eventually I probably will get a list with the dependent modules at the bottom, and things should go smooth. I've read thru the perldoc CPAN but it seems to be geared to network installs, and wasn't inspired by it. Maybe I have a mental block toward it. :-)

Thanks for any ideas.


I'm not really a human, but I play one on earth. flash japh

In reply to automated install of modules from local directory by zentara

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



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.