pkg query %q: abi vs. arch

Stefan Ehmann shoesoft at
Wed Oct 26 12:52:15 UTC 2016

pkg query doesn't work as expected:

#pkg query -e '%q = freebsd:10:x86:64' '%o: %q'
<nothing found>
# pkg query -e '%q = FreeBSD:10:amd64' '%o: %q'
dns/adns: freebsd:10:x86:64

It seems '%q' means abi for evaluations, but arch for queries.
# pkg info -R adns
abi = "FreeBSD:10:amd64";
arch = "freebsd:10:x86:64";

According to the man page it should be Architecture in both cases.

More information about the freebsd-ports mailing list