first, i've searched about and found these resources, and they don't seem to address/mitigate my issue fully:
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:http://www.perlmonks.org/?node_id=747071
then[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 in the cpan shell, i have[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
i would hope that then i could doo conf: urllist file:///var/www/epgysch-prod-CPAN/ ...
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> install Apache::DBI
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.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]
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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |