Friday, April 10, 2015

Change CPAN Mirrors

 
#How to replace CPAN mirror
#Check the mirror list at http://www.cpan.org/SITES.html
#copy the ftp address that near your location

sudo cpan

#check current mirrors being used
o conf urllist

#add new mirror site
o conf urllist unshift ftp://ftp.nara.wide.ad.jp/pub/CPAN/

#commit the change
o conf commit

#quit the cpan shell
q