I am looking for a good way to make sure that I know what cpan is doing when I install a perl module. For example "cpan -i Titanium" will attempt to install quite a lot. When I tried it I was so horrified I restored from backup. So now my plan is:
I have a little script:
echo "/usr/bin/cpan -t $1 2>&1 >/root/reports/$1.log" | script /root/r
When I can run this without any errors I will proceed to do a real install. Can anyone improve on this?
Edit:I should say it was only when I saw the errors flying past, it occurred to me that the system did not have a compiler.