I'm about to lose my mind. How in the world do you tell CPAN to download via HTTP only? ...and NOT via a proxy.
Asked
Active
Viewed 1.9k times
5 Answers
3
Simplest way of having it not use FTP is to shove HTTP URLs on the front of your urllist - or replace it completely like sebastionopilla said. You can do it from inside the cpan shell too:
o conf urllist unshift http://some.cpan.mirror/here/
You can use
o conf urllist -
o conf urllist shift
to empty it first if you wish.
Use
o conf no_proxy 1
to turn off the proxy.
Use
o conf commit
to save the config
Altreus
- 131
- 2
1
Try putting only HTTP URLs in your CPAN's Config.pm file, like:
'urllist' => [q[http://cpan.cict.fr/], q[http://cpan.enstimac.fr/], q[http://mirrors4.kernel.org/cpan/]],
I routinely do this and as far as I can see there's no FTP traffic to any CPAN mirror.
Sebastiano Pilla
- 728
- 5
- 8
1
cpan[1]> o conf /proxy/
cpan[2]> o conf no_proxy 1
cpan[3]> o conf commit
Set proxy username and password:
cpan[4]> o conf proxy_user your_username
cpan[5]> o conf proxy_pass your_password
cpan[6]> o conf commit
Jim
- 11
- 1
0
If you don't want to use a cpan shell, you can also edit your cpan config file with a text editor, in unix systems it's here:
~/.cpan/CPAN/MyConfig.pm
Of course, the field to change in your particular question is 'http_proxy'.