On Wed, 15 Sep 2004, Ramprasad A Padmanabhan wrote: > I am installing some perlmodules using CPAN on commandline. Since I am > doing this on multiple machines of the same architecture , I want to > avoid "make tests" in CPAN , how can I do this ?
If you're trying to install the same thing on multiple machines, the best time saver may be to install things as normal on one machine, then copy the build directory to each of the other machines. Once that has been distributed around, you should be able to do a `sudo make install` on each of those to install the pre-compiled, pre-tested modules. If you take this approach, you probably can't use the CPAN shell on the clients, as you can't really cleanly skip to the `make install` step without first implicitly doing everything leading up to that. You'll have to go into each directory and do the `sudo make install` manually. On the other hand, if you pay attention to where things are going and the machines really are all homogenous, you could also just use rsync. That should be *much* faster than manually running a series of installs on a series of machines. You could wrap the installs in a shell script and rsync should still be faster. $ for box in machine1 machine2 machine3 machine4 > do > echo "working on $box" > rsync --recursive --verbose --update --progress --rsh=ssh \ > /path/to/perl/libs/ \ > [EMAIL PROTECTED]:/path/to/perl/libs > done Assuming the rsync command is valid, this should Just Work. The only thing you'll be asked for is the root password for each of the machines, and if ssh-agent is running then you may not even be asked for that. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>