Web Hosting Talk







View Full Version : Safely upgrading perl 5.00503 to 5.6.1?


pmak0
07-14-2001, 02:36 PM
I manage a server running Red Hat Linux v6.1. I am thinking of upgrading perl from 5.00503 to 5.6.1.

I've upgraded perl in the past, but every time I did it, I had to reinstall all the modules from CPAN. But, I think there's supposed to be a way to install perl 5.6.1 without loosing all the modules from 5.00503 (when I install 5.6.1, it asks me if I want binary compatibility with 5.00503).

But how do I do that? I haven't been able to get it to work so far. This is a production server, so it would be bad if I broke all the currently installed modules; I'd have a hard time tracking down which ones need to be reinstalled.

allan
07-16-2001, 01:13 PM
Originally posted by pmak0

But how do I do that? I haven't been able to get it to work so far. This is a production server, so it would be bad if I broke all the currently installed modules; I'd have a hard time tracking down which ones need to be reinstalled.

I'm not sure about the safe upgrade path, but you can find all of the installed modules by typing the following command:

find `perl -e 'print "@INC"'` -name '*.pm' -print > somefile

This will find all the modules and write them to "somefile". I don't know that this helps much, but I too would like to see an answer to the safe upgrade question.