How can I check the location of perl and CPAN files?

Posted by Rob on Server Fault See other posts from Server Fault or by Rob
Published on 2012-06-04T15:25:20Z Indexed on 2012/06/04 16:46 UTC
Read the original article Hit count: 227

Filed under:
|

I constantly have to set up new servers for an employer of mine for an exact purpose of his, and as such they all have to be set up in exactly the same way. So I've created a script in PHP that I run from my own box to automatically send over all the relevant files, compile everything, run updates, and everything else.

However, for some reason these brand new servers come with perl, which is fine, but they have perl installed in different locations. This makes it a pain for me to copy over Config.pm for CPAN without going in and finding the location manually.

Is there perhaps some command I'm unaware of that will hunt down the precise location?

If it helps, usually the servers are CentOS 5

© Server Fault or respective owner

Related posts about perl

Related posts about cpan