Change FreeBSD package repo to LATEST

You have a FreeBSD server that never seems to want to update it’s packages. The issue the repo it uses is the QUARTERLY repo and it needs to be the LATEST repo. At some point in the past, FreeBSD switched the default install to use the QUARTERLY repo instead of LATEST.

mkdir -p /usr/local/etc/pkg/repos

vi /usr/local/etc/pkg/repos/FreeBSD.conf

FreeBSD-ports: { url: “pkg+https://pkg.FreeBSD.org/${ABI}/latest”, }

pkg update -f

pkg upgrade

FreeBSD – Upgrade Perl Version

To upgrade the version of Perl installed on a FreeBSD server:

vi /etc/make.conf

Add this line (adjust for Perl version):

DEFAULT_VERSIONS+=perl5=5.22

Execute on command line (adjust for Perl version):

pkg set -o lang/perl5.16:lang/perl5.22

Execute on command line (adjust for Perl version):

portupgrade -o lang/perl5.22 -f perl-5.16.\*

Execute on command line:

portupgrade -rf perl*