mkdir -p /usr/local/etc/pkg/repos
echo 'FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest" }' > /usr/local/etc/pkg/repos/FreeBSD.conf
Yes, the file will get overwritten the next time you update the system. Use what tobik showed you.Would it be wrong if I just changed /etc/pkg/FreeBSD.conf file?