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:
When I can run this without any errors I will proceed to do a real install. Can anyone improve on this?#!/bin/bash echo "/usr/bin/cpan -t $1 2>&1 >/root/reports/$1.log" | script /root/r +eports/$1.txt
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.
In reply to RFC: auditing cpan installs by SilasTheMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |