CPAN 미러 서버 변경
CPAN 모듈을 추가할때 다운로드할 미러링 서버가 느릴경우나 죽은경우 timeout 가 생기는데 이때 사용자가 수동으로 변경 해줄수 있습니다.
우선 cpan에 들어간 후 o conf init urllist 를 입력하면 자동으로 설정 된 미러 서버가 초기화 되면서 미러링 서버들을 선택 할수 있습니다.
[root@yongbok ~]# cpan
Terminal does not support AddHistory.
cpan shell — CPAN exploration and modules installation (v1.9402)
Enter ‘h’ for help.
cpan> o conf init urllist
Found /root/.cpan/sources/MIRRORED.BY as of Thu Feb 10 21:26:01 2011
I’d use that as a database of CPAN sites. If that is OK for you,
please answer ‘y’, but if you want me to get a new database from the
internet now, please answer ‘n’ to the following question.
Shall I use the local database in /root/.cpan/sources/MIRRORED.BY? [y]
원하는 지역을 지정합니다.
Now we need to know where your favorite CPAN sites are located. Push
a few sites onto the array (just in case the first on the array won’t
work). If you are mirroring CPAN to your local workstation, specify a
First, pick a nearby continent and country by typing in the number(s)
in front of the item(s) you want to select. You can pick several of
each, separated by spaces. Then, you will be presented with a list of
URLs of CPAN mirrors in the countries you selected, along with
previously selected URLs. Select some of those URLs, or just keep the
old list. Finally, you will be prompted for any extra URLs — file:,
ftp:, or http: — that host a CPAN mirror.
(3) Central America
(5) North America
(7) South America
Select your continent (or several nearby continents)  2
(3) Hong Kong
(11) Republic of Korea
(13) Saudi Arabia
1 more items, hit RETURN to show them
Select your country (or several nearby countries)  11
미러링 서버를 선택합니다.
Select as many URLs as you like (by number),
put them on one line, separated by blanks, hyphenated ranges allowed
e.g. ‘1 4 5’ or ‘7 1-4 8’  4
엔터를 누른 후 o conf commit 를 입력하면 모듈을 설치할때 사용자가 수동으로 지정한 미러 서버로부터 다운로드를 합니다.
Enter another URL or RETURN to quit: 
Please remember to call ‘o conf commit’ to make the config permanent!
cpan> o conf commit
commit: wrote ‘/usr/local/lib/perl5/5.10.1/CPAN/Config.pm’