I use the ports system on FreeBSD. What is the easiest way to upgrade Perl using ports? I currently uninstall all of perl and it's dependencies. I'd think there would be a cool way to upgrade Perl and all it's dependencies. What would that be?
see /usr/ports/UPDATING the entry from 20120630 has detailed description how to do it with portmaster or portupgrade
Here's the .. more manual way to do it.
perl-after-upgrade is supposed to do the trick for most files (excepting binaries like irssi), however, I find it doesn't work so well anymore, so I just do everything by hand.
Before upgrading perl, I would shut down anything that depends on it, since those things are likely to break while the upgrade process is running. For me, that usually means turning off SpamAssassin, which really means I just shut down postfix for the few minutes it takes me.
I would also dump the current list of dependents on perl -
First, build and install the version of perl. All of your perl modules will be broken because they're still installed in the old perl directory. Use portmaster or portupgrade to force a rebuild of all perl modules:
Then go look for binaries that have dependencies on perl that are broken - I use libchk for this. Just run it and look for binaries that have unresolvable references to libperl.so. Use
You can probably start bringing back up your perl-based services, like SpamAssassin.
Then I go poke through the /usr/local/lib/perl5 directory, and see if any files are still there that shouldn't be.