Re: deleting a mirror from CPAN.pm, was Re: CPAN
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Chris Devers) writes: Please use a more descriptive subject line. On Mon, 4 Oct 2004, Bob Gordon wrote: Anyone know how to remove a mirror from the list that CPAN uses? I would like to remove ftp://carroll.cac.psu.edu from the list as it keeps timing out Do you have a file at ~/.cpan/CPAN/MyConfig.pm ? [snip] All you have to do is find and edit the 'urllist' declaration line. It's intended to be easier than that. Assuming that the offending mirror is first in the list (or it would be unlikely for it to be a problem): perl -MCPAN -e shell o conf urllist shift # Optionally, replace it with another one via: o conf urllist unshift http://new.mirror.com/CPAN o conf commit q -- Peter Scott http://www.perldebugged.com/ *** NEW *** http://www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response
Re: deleting a mirror from CPAN.pm, was Re: CPAN
On Mon, 4 Oct 2004 19:04:09 -0400 (EDT), Chris Devers [EMAIL PROTECTED] wrote: Anyone know how to remove a mirror from the list that CPAN uses? I would like to remove ftp://carroll.cac.psu.edu from the list as it keeps timing out Do you have a file at ~/.cpan/CPAN/MyConfig.pm ? If so, it's a declaration like CPAN::Config hash $CPAN::Config = { 'build_cache' = q[10], 'build_dir' = q[/Users/Shared/.cpan/build], # ... several lines skipped ... 'urllist' = [q[ftp://ftp.cise.ufl.edu/pub/mirrors/CPAN/], q[ftp://ftp.cpanel.net/pub/CPAN/], q[ftp://ftp.cs.colorado.edu/pub/perl/CPAN/], q[ftp://ftp.dc.aleron.net/pub/CPAN/], q[ftp://ftp.duke.edu/pub/perl/]], 'wget' = q[], }; 1; All you have to do is find and edit the 'urllist' declaration line. Thanks.. Didn't find it there but I was able to locate it in /usr/local/lib/perl5/5.8.5/CPAN -- --==[ Bob Gordon ]==-- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response