Changing CPAN Mirrors

| No Comments | Bookmark and Share

I wanted to change the mirrors that CPAN was set to use because it seemed that the first one on the list wasn't responding. I figured there must be a way to do this from the CPAN command line and indeed, a quick Google search turned up a result. To do what I wanted, I first printed the current URL list, shifted off the offending host and then wrote the altered configuration to disk for next time

cpan> o conf urllist
    urllist
        ftp://archive.progeny.com/CPAN/
        ftp://carroll.cac.psu.edu/pub/CPAN/
        ftp://cpan.calvin.edu/pub/CPAN
        ftp://cpan.cse.msu.edu/
        ftp://cpan.mirrors.redwire.net/pub/CPAN/
Type 'o conf' to view configuration edit options
cpan> o conf urllist shift
cpan> o conf urllist
    urllist
        ftp://carroll.cac.psu.edu/pub/CPAN/
        ftp://cpan.calvin.edu/pub/CPAN
        ftp://cpan.cse.msu.edu/
        ftp://cpan.mirrors.redwire.net/pub/CPAN/
Type 'o conf' to view configuration edit options
cpan> o conf urllist commit

To completely reconfigure CPAN, you can use the command o conf init.

Leave a comment

About this Entry

This page contains a single entry by Drew Stephens published on April 14, 2008 5:24 PM.

Driving Across the United States day 5 was the previous entry in this blog.

Taqueria Pancho Villa is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 5.1