20090120 reconfiguring cpan - plembo/onemoretech GitHub Wiki
title: Reconfiguring CPAN link: https://onemoretech.wordpress.com/2009/01/20/reconfiguring-cpan/ author: lembobro description: post_id: 395 created: 2009/01/20 21:28:26 created_gmt: 2009/01/20 21:28:26 comment_status: open post_name: reconfiguring-cpan status: publish post_type: post
Reconfiguring CPAN
Because we all know that once you configure CPAN, you’d never have to change anything :-)
The approved way to do this is to get into the CPAN shell (usually by invoking cpan
) and then issue a
cpan> o conf init
Of course for years I didn’t do it this way. Instead I would hunt around for Config.pm and just edit that manually. Where Config.pm (and it’s backup, Config.pm~) lives varies from platform to platform. On Red Hat based systems, like my current CentOS 5 server, it used to be in /usr/lib/perl5/5.8.8/CPAN. But on newer issues of Ubuntu you’ll find it under /etc/perl/CPAN. On one ancient Solaris 8 box the sunfreeware version sits in /usr/local/lib/perl5/5.6.1/CPAN. Because of this variation its really much easier just to get into the cpan shell and “do the needful” that way.
Copyright 2004-2019 Phil Lembo