Home  |  Linux  | Mysql  | PHP  | XML
From:David Favor Date:Tue May 13 08:04:12 2008
Subject:Newbie simple local mirror setup question
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.
Navigate in group perl.cpan.discuss at sever nntp.perl.org
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants