Just a quick note as I need to do this every time there's a TrueNAS update.
-
Enable the FreeBSD pkg repo (as root)
sed -i '' -e 's/enabled: no/enabled: yes/' /usr/local/etc/pkg/repos/FreeBSD.conf
-
Disable the local package repo:
sed -i '' -e 's/enabled: yes/enabled: no/' /usr/local/etc/pkg/repos/local.conf