'cpan' and 'cpanp' configuration questions
- A request for assistance.
At the Chicago Hackathon in November 2006, Michael Schwern helped me
get vastly improved results while using the 'cpan' shell on my
iBook. He adjusted some configurations such that, rather than having
to call 'sudo cpan' and run the entire process as superuser, I could
just call 'cpan', running the fetching and testing of distros as
myself, and only being prompted for my password when a particular
distribution was ready to be installed.
He also adjusted some settings so that some of the shell's output was
I was so amazed I didn't bother to record what he did. But I could
use that advice again. Due to a corruption in Software Update, I had
to do an "Archive and Install" on that very same iBook. Not
surprisingly, everything under /usr/local was wiped out. I've
rebuilt Perl, Python, reinstalled Subversion. So now I'm at the
point where I need to reinstall all the modules I installed from
CPAN. I'd like to do it the right way.
1. How can the cpan shell be configured so that I can run it without
'sudo cpan' -- but being prompted for may password only when it's
needed for install?
2. Can 'cpanp' -- the CPANPLUS shell -- be configured the same way?
- On Jun 7, 2008, at 5:02 PM, James E Keenan wrote:
>Well, I RTFM and the answers popped right out. I edited .cpan/CPAN/
> 1. How can the cpan shell be configured so that I can run it without
> 'sudo cpan' -- but being prompted for may password only when it's
> needed for install?
MyConfig.pm to add values for the 'colorize_output',
'make_install_make_command' and 'mbuild_install_build_command' commands.
> 2. Can 'cpanp' -- the CPANPLUS shell -- be configured the same way?Haven't explored this yet.