1-First execute this line in the putty:
ee /etc/pkg/FreeBSD.conf
2-This will appear on the screen:
# $FreeBSD$
#
# To disable this repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file:
#
# mkdir -p /usr/local/etc/pkg/repos
# echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#
FreeBSD: {
url: "pkg+[Hidden Content]",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
3-Move with the arrow keys to where the url is: "pkg+[Hidden Content]",
4-You change the URL to the one you need, for example I need freebsd12 amd64:
Freebsd 12 i386: [Hidden Content]
Freebsd 12 amd64: [Hidden Content]
Freebsd 13 i386: [Hidden Content]
Freebsd 13 amd64: [Hidden Content]
5-It would look like this:
# $FreeBSD$
#
# To disable this repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file:
#
# mkdir -p /usr/local/etc/pkg/repos
# echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#
FreeBSD: {
url: "pkg+[Hidden Content]",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
6-Finally, with the keyboard press ESC, "a" leave editor and to save the change "a" save changes
And finally you can install using the typical: pkg install mysql56-server or whatever you need .