greetings,

first, i've searched about and found these resources, and they don't seem to address/mitigate my issue fully:

http://www.perlmonks.org/?node_id=747071
My general problem is that I want a defined set of cpan mods of set version numbers to install on several production machines so I can control when/if mod updates occur (we recently had a code collision with an update to Class::Accessor for example.) I'm attempting then to make a private local cpan "mirror" (more a cpan "picture-of-dorian-gray" i suppose). Here are a sample set of commands used:
[root@trowel root]# MCPANI_CONFIG=/root/.mcpani/config mcpani -v --add + --module Apache::DBI --authorid PGOLLUCCI --modversion 1.07 --file / +root/.cpan/sources/authors/id/P/PG/PGOLLUCCI/Apache-DBI-1.07.tar.gz
then
[root@trowel root]# MCPANI_CONFIG=/root/.mcpani/config mcpani --inject + -v Injecting modules from /root/epgysch_prod_CPAN_repos /var/www/epgysch-prod-CPAN/authors/id/P/PG/PGOLLUCCI/Apache-DBI-1.07.t +ar.gz ... injected
Then in the cpan shell, i have
o conf: urllist file:///var/www/epgysch-prod-CPAN/ ...
i would hope that then i could do
cpan> install Apache::DBI
and get the module (version 1.07!) that i injected into the "mirror" at /var/www/epgysch-prod-CPAN/, but instead, cpan looks for this (version 1.08 under a different author id):
cpan[1]> install Apache::DBI CPAN: Storable loaded ok (v2.21) Going to read '/root/.cpan/Metadata' Database was generated on Tue, 23 Feb 2010 15:04:12 GMT Running install for module 'Apache::DBI' Running make for A/AB/ABH/Apache-DBI-1.08.tar.gz CPAN: LWP::UserAgent loaded ok (v5.829) CPAN: Time::HiRes loaded ok (v1.9717) CPAN: URI::URL loaded ok (v5.03) Could not find '/var/www/epgysch-prod-CPAN/authors/id/A/AB/ABH/Apache- +DBI-1.08.tar.gz' Fetching with LWP: file:///var/www/epgysch-prod-CPAN/authors/id/A/AB/ABH/Apache-DBI-1.0 +8.tar.gz LWP failed with code[404] message[File `/var/www/epgysch-prod-CPAN/aut +hors/id/A/AB/ABH/Apache-DBI-1.08.tar.gz' does not exist]
This is not surprising I suppose, since cpan is parsing and using /root/.cpan/Metadata which likely stores info from when I was working with a public cpan repository, but I only want it to look at what is in the local repository I am setting up. I suppose I could fiddle about more with local cpan configs, but I would hope there is a better, easier way to just tell cpan to go to forget about any history and just go to my local repository and see/get what's there.

Perhaps I am on a fool's errand here (or more likely, a fool on an errand), are there any suggestions on how to go about doing what I want, even if it is off in some other direction? And is what I am trying to do a reasonable thing to do, even? I think it is...

Thanks for any help,

Bruce


In reply to problem setting up local mod repository with mcpani by bruce_sears

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.