mkdir -p /usr/local/etc/pkg/repos
nano /usr/local/etc/pkg/repos/FreeBSD.conf
FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
}
Most probably your machine is configured to obtain updates from the quarterly pkg repository. Try again after informing pkg to use the latest repository:
As user root do:
mkdir -p /usr/local/etc/pkg/repos
nano /usr/local/etc/pkg/repos/FreeBSD.conf
Then try again.Code:FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest", }
pkg: No packages available to install...
That's correct.I was under the impression that all versions on all architectures use the same ports tree.
That's a good question because it should be there. It's possible there have been build issues on the clusters. So it's always good to check that: http://portsmon.freebsd.org/portoverview.py?category=lang&portname=php71So, why is it that php7x is not available under 10.3?
Oh, checked pkg.freebsd.org and it's there: http://pkg.freebsd.org/FreeBSD:10:amd64/latest/All/php71-7.1.7.txz
But your mirror may be missing it. It's possible something went wrong during the sync causing the mirror to be incomplete.
pkg install
? pkg install
? Or can I change /etc/pkg/FreeBSD.conf to point at the other system?Just make sure they are from the same architecture.
i386 packages vs. amd64 packages.
uname -a
shows for Arch.Sure, just copy the txz files ( the ones with the <pkgname>-<some 10 character suffix>.txz, the <pkgname>.txz file is just a symlink) and runpkg add <filename>
pkg install pkgname from cache
since pkg install pkgname
is still trying to retrieve from the FreeBSD repository.pkg: wrong architecture: FreeBSD:11:amd64 instead of Freebsd:9:amd64