Newbie simple local mirror setup question
[email protected] (David Favor) Tue, 13 May 2008 09:04:12 -0500
| Newsgroups | perl.cpan.discuss |
|---|---|
| Message-ID | <[email protected]> |
I've setup rsync mirroring:
/usr/bin/rsync -av --delete ftp.funet.fi::CPAN /cpan-mirror/ >/var/log/cpan-mirror.log 2>&1
The following is in my CPANPLUS/Config/System.pm file:
$conf->set_conf( hosts => [
{
'path' => '/cpan-mirror',
'scheme' => 'file',
'host' => ''
}
] );
Tracking access to the mirror I see installs coming from the mirror:
net1#inotifywait -m -r -e create,open,delete --format '%e %f' /cpan-mirror
Setting up watches. Beware: since -r was given, this may take a while!
Watches established.
OPEN Thread-Suspend-1.17.tar.gz
OPEN CHECKSUMS
OPEN CHECKSUMS
Also 'x --update_source' works well.
My question is about how to best programmatically issue the following
CPANPLUS command sequence:
'x --update_source'
'o'
'i *'
Thanks.
- David
--
Love feeling your best ever, all day, every day?
Click http://RadicalHealth.com/join for the easy way.