Created attachment 230168 [details] Fix Basically /usr/sbin/pkg add -f -y pkg-1.2.3.pkg works correctly, whereas /usr/sbin/pkg add -f -y /path/to/pkg-1.2.3.pkg does not, due to the way `pkg_is_pkg_pkg()` tests if package is ports-mgmt/pkg. This behaviour breaks nanobsd scripts, as well.
I think this was fixed in: https://cgit.freebsd.org/src/commit/?id=c96b4d87ba3336e6d4bea04c49d6abde158b7aae
(In reply to Jose Luis Duran from comment #1) I believe you're right. I've hit this in the past as well.