Marius van Witzenburg We fight for our survival, we fight!

8jun/100

How to upgrade Perl 5.8.x to 5.10.x on FreeBSD.

Posted by mariusvw

In the ports collection you can find /usr/ports/UPDATING. Here you can read how to upgrade Perl 5.8.x to the new release 5.10.x.

The description below is copied from the updating file.

Note: you might need to manually upgrade some ports after this. For example, I had to recompile APR, Apache and Subversion.

Portupgrade users:
0) Fix pkgdb.db (for safety):

pkgdb -Ff

1) Reinstall perl with new 5.10:

env DISABLE_CONFLICTS=1 portupgrade -o lang/perl5.10 -f perl-5.8.*

2) Reinstall everything that depends on Perl:

portupgrade -fr perl

Portmaster users:

env DISABLE_CONFLICTS=1 portmaster -o lang/perl5.10 lang/perl5.8
portmaster -r perl-

Note: If the "perl-" glob matches more than one port you will need to specify the name of the perl directory in /var/db/pkg explicitly.